mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-24 01:07:53 +00:00
Subcommands should not be showing the global flags. This causes the important information to scroll off the screen. Also fixed a typo on runCommmand (Too many 'm's) Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
28 lines
525 B
Go
28 lines
525 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
systemDescription = "Manage podman"
|
|
|
|
systemCommand = cliconfig.PodmanCommand{
|
|
Command: &cobra.Command{
|
|
Use: "system",
|
|
Short: "Manage podman",
|
|
Long: systemDescription,
|
|
},
|
|
}
|
|
)
|
|
|
|
var systemCommands = []*cobra.Command{
|
|
_infoCommand,
|
|
}
|
|
|
|
func init() {
|
|
systemCommand.AddCommand(systemCommands...)
|
|
systemCommand.AddCommand(getSystemSubCommands()...)
|
|
systemCommand.SetUsageTemplate(UsageTemplate())
|
|
}
|