github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/cmd/podman/volume.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/containers/libpod/cmd/podman/cliconfig"
     5  	"github.com/spf13/cobra"
     6  )
     7  
     8  var volumeDescription = `Volumes are created in and can be shared between containers.`
     9  
    10  var volumeCommand = cliconfig.PodmanCommand{
    11  	Command: &cobra.Command{
    12  		Use:   "volume",
    13  		Short: "Manage volumes",
    14  		Long:  volumeDescription,
    15  		RunE:  commandRunE(),
    16  	},
    17  }
    18  var volumeSubcommands = []*cobra.Command{
    19  	_volumeCreateCommand,
    20  	_volumeLsCommand,
    21  	_volumeRmCommand,
    22  	_volumeInspectCommand,
    23  	_volumePruneCommand,
    24  }
    25  
    26  func init() {
    27  	volumeCommand.SetUsageTemplate(UsageTemplate())
    28  	volumeCommand.AddCommand(volumeSubcommands...)
    29  	rootCmd.AddCommand(volumeCommand.Command)
    30  }