Skip to content

Commit

Permalink
Merge pull request #2419 from rhatdan/play
Browse files Browse the repository at this point in the history
Fix play to show up in podman help
  • Loading branch information
openshift-merge-robot authored Feb 24, 2019
2 parents 53b147d + 3642ce8 commit 553ac80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion cmd/podman/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ func getMainCommands() []*cobra.Command {
_createCommand,
_diffCommand,
_execCommand,
generateCommand.Command,
_generateCommand,
_containerKubeCommand,
_playCommand,
_psCommand,
_loginCommand,
_logoutCommand,
Expand Down
13 changes: 7 additions & 6 deletions cmd/podman/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

0 comments on commit 553ac80

Please sign in to comment.