mirror of
https://github.com/containers/podman.git
synced 2025-09-21 03:35:06 +08:00

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>
27 lines
542 B
Go
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,
|
|
}
|
|
)
|