summaryrefslogtreecommitdiff
path: root/cmd/podman/volume.go
blob: 2a071d0c7a0b39719965fec3ec427e608905fbc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main

import (
	"github.com/containers/libpod/cmd/podman/cliconfig"
	"github.com/spf13/cobra"
)

var volumeDescription = `Volumes are created in and can be shared between containers.`

var volumeCommand = cliconfig.PodmanCommand{
	Command: &cobra.Command{
		Use:   "volume",
		Short: "Manage volumes",
		Long:  volumeDescription,
		RunE:  commandRunE(),
	},
}
var volumeSubcommands = []*cobra.Command{
	_volumeCreateCommand,
	_volumeLsCommand,
	_volumeRmCommand,
	_volumeInspectCommand,
	_volumePruneCommand,
}

func init() {
	volumeCommand.SetUsageTemplate(UsageTemplate())
	volumeCommand.AddCommand(volumeSubcommands...)
	rootCmd.AddCommand(volumeCommand.Command)
}