mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 09:25:43 +00:00
enable the ability to prune containers from the remote-command. this also includes the system prune command. Signed-off-by: baude <bbaude@redhat.com>
30 lines
572 B
Go
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())
|
|
}
|