mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-25 17:57:54 +00:00
allow users to remotely prune volumes. this is the last volume command for remote enablement. as such, the volume commands are being folded back into main because they are supported for both local and remote clients. also, enable all volume tests that do not use containers as containers are not enabled for the remote client yet. Signed-off-by: baude <bbaude@redhat.com>
31 lines
669 B
Go
31 lines
669 B
Go
package main
|
|
|
|
import (
|
|
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var volumeDescription = `Manage volumes.
|
|
|
|
Volumes are created in and can be shared between containers.`
|
|
|
|
var volumeCommand = cliconfig.PodmanCommand{
|
|
Command: &cobra.Command{
|
|
Use: "volume",
|
|
Short: "Manage volumes",
|
|
Long: volumeDescription,
|
|
},
|
|
}
|
|
var volumeSubcommands = []*cobra.Command{
|
|
_volumeCreateCommand,
|
|
_volumeLsCommand,
|
|
_volumeRmCommand,
|
|
_volumeInspectCommand,
|
|
_volumePruneCommand,
|
|
}
|
|
|
|
func init() {
|
|
volumeCommand.SetUsageTemplate(UsageTemplate())
|
|
volumeCommand.AddCommand(volumeSubcommands...)
|
|
rootCmd.AddCommand(volumeCommand.Command)
|
|
}
|