mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
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>
This commit is contained in:
@ -16,8 +16,9 @@ func getMainCommands() []*cobra.Command {
|
|||||||
_createCommand,
|
_createCommand,
|
||||||
_diffCommand,
|
_diffCommand,
|
||||||
_execCommand,
|
_execCommand,
|
||||||
generateCommand.Command,
|
_generateCommand,
|
||||||
_containerKubeCommand,
|
_containerKubeCommand,
|
||||||
|
_playCommand,
|
||||||
_psCommand,
|
_psCommand,
|
||||||
_loginCommand,
|
_loginCommand,
|
||||||
_logoutCommand,
|
_logoutCommand,
|
||||||
|
@ -5,17 +5,18 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var generateDescription = "Generate structured data based for a containers and pods"
|
var (
|
||||||
var generateCommand = cliconfig.PodmanCommand{
|
generateCommand cliconfig.PodmanCommand
|
||||||
|
generateDescription = "Generate structured data based for a containers and pods"
|
||||||
Command: &cobra.Command{
|
_generateCommand = &cobra.Command{
|
||||||
Use: "generate",
|
Use: "generate",
|
||||||
Short: "Generated structured data",
|
Short: "Generated structured data",
|
||||||
Long: generateDescription,
|
Long: generateDescription,
|
||||||
},
|
}
|
||||||
}
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
generateCommand.Command = _generateCommand
|
||||||
generateCommand.AddCommand(getGenerateSubCommands()...)
|
generateCommand.AddCommand(getGenerateSubCommands()...)
|
||||||
generateCommand.SetUsageTemplate(UsageTemplate())
|
generateCommand.SetUsageTemplate(UsageTemplate())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user