newPluginCommand returns a cobra command for `plugin` subcommands
(dockerCLI command.Cli)
| 13 | |
| 14 | // newPluginCommand returns a cobra command for `plugin` subcommands |
| 15 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…