Skip to content

Commit

Permalink
Followup to #2456: update examples, add trust
Browse files Browse the repository at this point in the history
- belatedly incorporate review feedback from baude
- add usage synopsis for trust-set and trust-show

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Feb 27, 2019
1 parent 4e553cf commit 9a3a59c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/podman/exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var (
imageExistsCommand.GlobalFlags = MainGlobalOpts
return imageExistsCmd(&imageExistsCommand)
},
Example: `podman image exists imageID`,
Example: `podman image exists alpine || podman pull alpine`,
}

_containerExistsCommand = &cobra.Command{
Expand All @@ -53,7 +53,7 @@ var (
return containerExistsCmd(&containerExistsCommand)

},
Example: `podman container exists containerID`,
Example: `podman container exists myctr || podman run --name myctr [etc...]`,
}

_podExistsCommand = &cobra.Command{
Expand All @@ -65,7 +65,7 @@ var (
podExistsCommand.GlobalFlags = MainGlobalOpts
return podExistsCmd(&podExistsCommand)
},
Example: `podman pod exists podID`,
Example: `podman pod exists mypod || podman pod create --name mypod`,
}
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/podman/trust_set_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
showTrustCommand cliconfig.ShowTrustValues
setTrustDescription = "Set default trust policy or add a new trust policy for a registry"
_setTrustCommand = &cobra.Command{
Use: "set",
Use: "set [flags] REGISTRY",
Short: "Set default trust policy or a new trust policy for a registry",
Long: setTrustDescription,
Example: "",
Expand All @@ -36,7 +36,7 @@ var (

showTrustDescription = "Display trust policy for the system"
_showTrustCommand = &cobra.Command{
Use: "show",
Use: "show [flags] [REGISTRY]",
Short: "Display trust policy for the system",
Long: showTrustDescription,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 9a3a59c

Please sign in to comment.