mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +08:00
remove duplicate commands in main
kube was erronously being added as main subcommand multiple times. it should not be a subcommand as it should live under either play or generate. also removing the addition of the volume command from the commands.go to eliminate a duplicate. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -17,7 +17,6 @@ func getMainCommands() []*cobra.Command {
|
|||||||
_diffCommand,
|
_diffCommand,
|
||||||
_execCommand,
|
_execCommand,
|
||||||
_generateCommand,
|
_generateCommand,
|
||||||
_containerKubeCommand,
|
|
||||||
_playCommand,
|
_playCommand,
|
||||||
_psCommand,
|
_psCommand,
|
||||||
_loginCommand,
|
_loginCommand,
|
||||||
@ -39,7 +38,6 @@ func getMainCommands() []*cobra.Command {
|
|||||||
_topCommand,
|
_topCommand,
|
||||||
_umountCommand,
|
_umountCommand,
|
||||||
_unpauseCommand,
|
_unpauseCommand,
|
||||||
volumeCommand.Command,
|
|
||||||
_waitCommand,
|
_waitCommand,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,8 +52,6 @@ func init() {
|
|||||||
flags.BoolVarP(&playKubeCommand.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
|
flags.BoolVarP(&playKubeCommand.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
|
||||||
flags.StringVar(&playKubeCommand.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
|
flags.StringVar(&playKubeCommand.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
|
||||||
flags.BoolVar(&playKubeCommand.TlsVerify, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries (default: true)")
|
flags.BoolVar(&playKubeCommand.TlsVerify, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries (default: true)")
|
||||||
|
|
||||||
rootCmd.AddCommand(playKubeCommand.Command)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func playKubeYAMLCmd(c *cliconfig.KubePlayValues) error {
|
func playKubeYAMLCmd(c *cliconfig.KubePlayValues) error {
|
||||||
|
Reference in New Issue
Block a user