mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
fix: typos in links, path and code example
[NO NEW TESTS NEEDED] Signed-off-by: Gabriel Pozo <jackgris2@gmail.com>
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user