mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-25 09:47:56 +00:00
* ps now on main command * sign is no longer on main commmand * ls, list no longer are valid main aliases for images * ls, list does work for podman image Signed-off-by: baude <bbaude@redhat.com>
30 lines
735 B
Go
30 lines
735 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var containerDescription = "Manage containers"
|
|
var containerCommand = cliconfig.PodmanCommand{
|
|
Command: &cobra.Command{
|
|
Use: "container",
|
|
Short: "Manage Containers",
|
|
Long: containerDescription,
|
|
TraverseChildren: true,
|
|
},
|
|
}
|
|
|
|
// Commands that are universally implemented.
|
|
var containerCommands = []*cobra.Command{
|
|
_containerExistsCommand,
|
|
_inspectCommand,
|
|
}
|
|
|
|
func init() {
|
|
containerCommand.AddCommand(containerCommands...)
|
|
containerCommand.AddCommand(getContainerSubCommands()...)
|
|
containerCommand.SetUsageTemplate(UsageTemplate())
|
|
|
|
rootCmd.AddCommand(containerCommand.Command)
|
|
}
|