summaryrefslogtreecommitdiff
path: root/cmd/podman/system.go
blob: 921d0c037a3fa60a8af4170930c913a8f35e505c (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
31
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,
			RunE:  commandRunE(),
		},
	}
)

var systemCommands = []*cobra.Command{
	_systemResetCommand,
	_infoCommand,
	_pruneSystemCommand,
}

func init() {
	systemCommand.AddCommand(systemCommands...)
	systemCommand.AddCommand(getSystemSubCommands()...)
	systemCommand.SetUsageTemplate(UsageTemplate())
}