MCPcopy Index your code
hub / github.com/docker/cli / newVolumeCommand

Function newVolumeCommand

cli/command/volume/cmd.go:15–34  ·  view source on GitHub ↗

newVolumeCommand returns a cobra command for `volume` subcommands

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

13
14// newVolumeCommand returns a cobra command for `volume` subcommands
15func newVolumeCommand(dockerCLI command.Cli) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "volume COMMAND",
18 Short: "Manage volumes",
19 Args: cli.NoArgs,
20 RunE: command.ShowHelp(dockerCLI.Err()),
21 Annotations: map[string]string{"version": "1.21"},
22
23 DisableFlagsInUseLine: true,
24 }
25 cmd.AddCommand(
26 newCreateCommand(dockerCLI),
27 newInspectCommand(dockerCLI),
28 newListCommand(dockerCLI),
29 newRemoveCommand(dockerCLI),
30 newPruneCommand(dockerCLI),
31 newUpdateCommand(dockerCLI),
32 )
33 return cmd
34}

Callers

nothing calls this directly

Calls 7

newCreateCommandFunction · 0.70
newInspectCommandFunction · 0.70
newListCommandFunction · 0.70
newRemoveCommandFunction · 0.70
newPruneCommandFunction · 0.70
newUpdateCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…