Merge pull request #20180 from jackgris/fix-links-readme

[CI:BUILD] fix: typos in links, path and code example
This commit is contained in:
OpenShift Merge Robot 2023-09-28 09:19:29 -04:00 committed by GitHub
commit c2a8ed19c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -5,18 +5,18 @@ This is example code, the production code has additional error checking and the
See items below for details on building, installing, contributing to Podman: See items below for details on building, installing, contributing to Podman:
- [Readme](README.md) - [Readme](README.md)
- [Contributing](CONTRIBUTING.md) - [Contributing](../../CONTRIBUTING.md)
- [Podman Usage](transfer.md) - [Podman Usage](../../transfer.md)
- [Trouble Shooting](troubleshooting.md) - [Trouble Shooting](../../troubleshooting.md)
- [Code Of Conduct](CODE-OF-CONDUCT.md) - [Code Of Conduct](../../CODE-OF-CONDUCT.md)
## Adding a new command `podman manifest` ## Adding a new command `podman manifest`
```shell script ```shell script
$ mkdir -p $GOPATH/src/github.com/containers/podman/cmd/podmanV2/manifests $ mkdir -p $GOPATH/src/github.com/containers/podman/cmd/podman/manifest
``` ```
Create the file ```$GOPATH/src/github.com/containers/podman/cmd/podmanV2/manifests/manifest.go``` Create the file ```$GOPATH/src/github.com/containers/podman/cmd/podman/manifest/manifest.go```
```go ```go
package manifests package manifest
import ( import (
"github.com/containers/podman/cmd/podman/registry" "github.com/containers/podman/cmd/podman/registry"
@ -44,17 +44,17 @@ func init() {
}) })
} }
``` ```
To "wire" in the `manifest` command, edit the file ```$GOPATH/src/github.com/containers/podman/cmd/podmanV2/main.go``` to add: To "wire" in the `manifest` command, edit the file ```$GOPATH/src/github.com/containers/podman/cmd/podman/main.go``` to add:
```go ```go
package main package main
import _ "github.com/containers/podman/cmd/podman/manifests" import _ "github.com/containers/podman/cmd/podman/manifest"
``` ```
## Adding a new sub command `podman manifests list` ## Adding a new sub command `podman manifest list`
Create the file ```$GOPATH/src/github.com/containers/podman/cmd/podmanV2/manifests/inspect.go``` Create the file ```$GOPATH/src/github.com/containers/podman/cmd/podman/manifest/inspect.go```
```go ```go
package manifests package manifest
import ( import (
"github.com/containers/podman/cmd/podman/registry" "github.com/containers/podman/cmd/podman/registry"