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

Function newPluginCommand

cli/command/plugin/cmd.go:15–39  ·  view source on GitHub ↗

newPluginCommand returns a cobra command for `plugin` subcommands

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

13
14// newPluginCommand returns a cobra command for `plugin` subcommands
15func newPluginCommand(dockerCLI command.Cli) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "plugin",
18 Short: "Manage plugins",
19 Args: cli.NoArgs,
20 RunE: command.ShowHelp(dockerCLI.Err()),
21 Annotations: map[string]string{"version": "1.25"},
22
23 DisableFlagsInUseLine: true,
24 }
25
26 cmd.AddCommand(
27 newDisableCommand(dockerCLI),
28 newEnableCommand(dockerCLI),
29 newInspectCommand(dockerCLI),
30 newInstallCommand(dockerCLI),
31 newListCommand(dockerCLI),
32 newRemoveCommand(dockerCLI),
33 newSetCommand(dockerCLI),
34 newPushCommand(dockerCLI),
35 newCreateCommand(dockerCLI),
36 newUpgradeCommand(dockerCLI),
37 )
38 return cmd
39}

Callers

nothing calls this directly

Calls 11

newDisableCommandFunction · 0.85
newEnableCommandFunction · 0.85
newInstallCommandFunction · 0.85
newSetCommandFunction · 0.85
newUpgradeCommandFunction · 0.85
newInspectCommandFunction · 0.70
newListCommandFunction · 0.70
newRemoveCommandFunction · 0.70
newPushCommandFunction · 0.70
newCreateCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…