Files
podman/cmd/podman/volume.go
umohnani8 4c70b8a94b Add "podman volume" command
Add support for podman volume and its subcommands.
The commands supported are:
	podman volume create
	podman volume inspect
	podman volume ls
	podman volume rm
	podman volume prune

This is a tool to manage volumes used by podman. For now it only handle
named volumes, but eventually it will handle all volumes used by podman.

Signed-off-by: umohnani8 <umohnani@redhat.com>
2018-12-06 10:17:16 +00:00

27 lines
542 B
Go

package main
import (
"github.com/urfave/cli"
)
var (
volumeDescription = `Manage volumes.
Volumes are created in and can be shared between containers.`
volumeSubCommands = []cli.Command{
volumeCreateCommand,
volumeLsCommand,
volumeRmCommand,
volumeInspectCommand,
volumePruneCommand,
}
volumeCommand = cli.Command{
Name: "volume",
Usage: "Manage volumes",
Description: volumeDescription,
UseShortOptionHandling: true,
Subcommands: volumeSubCommands,
}
)