mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
Merge pull request #2419 from rhatdan/play
Fix play to show up in podman help
This commit is contained in:
@ -16,8 +16,9 @@ func getMainCommands() []*cobra.Command {
|
||||
_createCommand,
|
||||
_diffCommand,
|
||||
_execCommand,
|
||||
generateCommand.Command,
|
||||
_generateCommand,
|
||||
_containerKubeCommand,
|
||||
_playCommand,
|
||||
_psCommand,
|
||||
_loginCommand,
|
||||
_logoutCommand,
|
||||
|
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user