diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-23 16:15:58 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-23 16:16:41 -0500 |
commit | 3642ce837f9307a6724d3fe863e6a55f2b3acf9b (patch) | |
tree | 20e365d96fa4635bc65013f9b89466f6cc7d7206 /cmd | |
parent | 0969d725a3b302d9baa0616a204f7fc824404973 (diff) | |
download | podman-3642ce837f9307a6724d3fe863e6a55f2b3acf9b.tar.gz podman-3642ce837f9307a6724d3fe863e6a55f2b3acf9b.tar.bz2 podman-3642ce837f9307a6724d3fe863e6a55f2b3acf9b.zip |
Fix play to show up in podman help
Also change generate cli calls to match other commands.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/commands.go | 3 | ||||
-rw-r--r-- | cmd/podman/generate.go | 13 |
2 files changed, 9 insertions, 7 deletions
diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go index d8fc44c2f..e3dc97573 100644 --- a/cmd/podman/commands.go +++ b/cmd/podman/commands.go @@ -16,8 +16,9 @@ func getMainCommands() []*cobra.Command { _createCommand, _diffCommand, _execCommand, - generateCommand.Command, + _generateCommand, _containerKubeCommand, + _playCommand, _psCommand, _loginCommand, _logoutCommand, diff --git a/cmd/podman/generate.go b/cmd/podman/generate.go index 66cb7a465..773d625ee 100644 --- a/cmd/podman/generate.go +++ b/cmd/podman/generate.go @@ -5,17 +5,18 @@ import ( "github.com/spf13/cobra" ) -var generateDescription = "Generate structured data based for a containers and pods" -var generateCommand = cliconfig.PodmanCommand{ - - Command: &cobra.Command{ +var ( + generateCommand cliconfig.PodmanCommand + generateDescription = "Generate structured data based for a containers and pods" + _generateCommand = &cobra.Command{ Use: "generate", Short: "Generated structured data", Long: generateDescription, - }, -} + } +) func init() { + generateCommand.Command = _generateCommand generateCommand.AddCommand(getGenerateSubCommands()...) generateCommand.SetUsageTemplate(UsageTemplate()) } |