aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/container.go
blob: 338bb005cf8d92741d556cc64082d95ba51ea086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
}