spiegel_podman/cmd/podman/system.go
baude 2e800d63aa podman-remote prune containers
enable the ability to prune containers from the remote-command.  this
also includes the system prune command.

Signed-off-by: baude <bbaude@redhat.com>
2019-04-26 10:15:09 -05:00

30 lines
572 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,
RunE: commandRunE(),
},
}
)
var systemCommands = []*cobra.Command{
_infoCommand,
_pruneSystemCommand,
}
func init() {
systemCommand.AddCommand(systemCommands...)
systemCommand.AddCommand(getSystemSubCommands()...)
systemCommand.SetUsageTemplate(UsageTemplate())
}