29 lines
660 B
Go
29 lines
660 B
Go
package volumes
|
|
|
|
import (
|
|
"github.com/containers/podman/v4/cmd/podman/registry"
|
|
"github.com/containers/podman/v4/cmd/podman/validate"
|
|
"github.com/containers/podman/v4/pkg/util"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
// Pull in configured json library
|
|
json = registry.JSONLibrary()
|
|
|
|
// Command: podman _volume_
|
|
volumeCmd = &cobra.Command{
|
|
Use: "volume",
|
|
Short: "Manage volumes",
|
|
Long: "Volumes are created in and can be shared between containers",
|
|
RunE: validate.SubCommandExists,
|
|
}
|
|
containerConfig = util.DefaultContainerConfig()
|
|
)
|
|
|
|
func init() {
|
|
registry.Commands = append(registry.Commands, registry.CliCommand{
|
|
Command: volumeCmd,
|
|
})
|
|
}
|