summaryrefslogtreecommitdiff
path: root/cmd/podman/exists.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-07 13:47:55 -0800
committerGitHub <noreply@github.com>2019-03-07 13:47:55 -0800
commit94e89fc6cac0ac67db9228967f0340b60235bed8 (patch)
tree980c7dec92a361532a18c601f3fb34767e99b0f4 /cmd/podman/exists.go
parent1b253cf73a360557196213684cec63b37407ed7c (diff)
parent9a39c60e46d927489efa0ef5d4ece7c76fceceb7 (diff)
downloadpodman-94e89fc6cac0ac67db9228967f0340b60235bed8.tar.gz
podman-94e89fc6cac0ac67db9228967f0340b60235bed8.tar.bz2
podman-94e89fc6cac0ac67db9228967f0340b60235bed8.zip
Merge pull request #2564 from rhatdan/cleanup
Fix help commands to show short and long description.
Diffstat (limited to 'cmd/podman/exists.go')
-rw-r--r--cmd/podman/exists.go18
1 files changed, 6 insertions, 12 deletions
diff --git a/cmd/podman/exists.go b/cmd/podman/exists.go
index 109831e74..8a2f78c88 100644
--- a/cmd/podman/exists.go
+++ b/cmd/podman/exists.go
@@ -16,21 +16,12 @@ var (
containerExistsCommand cliconfig.ContainerExistsValues
podExistsCommand cliconfig.PodExistsValues
- imageExistsDescription = `
- podman image exists
+ imageExistsDescription = `If the named image exists in local storage, podman image exists exits with 0, otherwise the exit code will be 1.`
- Check if an image exists in local storage
-`
- containerExistsDescription = `
- podman container exists
+ containerExistsDescription = `If the named container exists in local storage, podman container exists exits with 0, otherwise the exit code will be 1.`
- Check if a container exists in local storage
-`
- podExistsDescription = `
- podman pod exists
+ podExistsDescription = `If the named pod exists in local storage, podman pod exists exits with 0, otherwise the exit code will be 1.`
- Check if a pod exists in local storage
-`
_imageExistsCommand = &cobra.Command{
Use: "exists IMAGE",
Short: "Check if an image exists in local storage",
@@ -75,12 +66,15 @@ var (
func init() {
imageExistsCommand.Command = _imageExistsCommand
imageExistsCommand.DisableFlagsInUseLine = true
+ imageExistsCommand.SetHelpTemplate(HelpTemplate())
imageExistsCommand.SetUsageTemplate(UsageTemplate())
containerExistsCommand.Command = _containerExistsCommand
containerExistsCommand.DisableFlagsInUseLine = true
+ containerExistsCommand.SetHelpTemplate(HelpTemplate())
containerExistsCommand.SetUsageTemplate(UsageTemplate())
podExistsCommand.Command = _podExistsCommand
podExistsCommand.DisableFlagsInUseLine = true
+ podExistsCommand.SetHelpTemplate(HelpTemplate())
podExistsCommand.SetUsageTemplate(UsageTemplate())
}