@@ -7,26 +7,33 @@ import (
77)
88
99// NewPluginCommand returns a cobra command for `plugin` subcommands
10- func NewPluginCommand (dockerCli command.Cli ) * cobra.Command {
10+ //
11+ // Deprecated: Do not import commands directly. They will be removed in a future release.
12+ func NewPluginCommand (dockerCLI command.Cli ) * cobra.Command {
13+ return newPluginCommand (dockerCLI )
14+ }
15+
16+ // newPluginCommand returns a cobra command for `plugin` subcommands
17+ func newPluginCommand (dockerCLI command.Cli ) * cobra.Command {
1118 cmd := & cobra.Command {
1219 Use : "plugin" ,
1320 Short : "Manage plugins" ,
1421 Args : cli .NoArgs ,
15- RunE : command .ShowHelp (dockerCli .Err ()),
22+ RunE : command .ShowHelp (dockerCLI .Err ()),
1623 Annotations : map [string ]string {"version" : "1.25" },
1724 }
1825
1926 cmd .AddCommand (
20- newDisableCommand (dockerCli ),
21- newEnableCommand (dockerCli ),
22- newInspectCommand (dockerCli ),
23- newInstallCommand (dockerCli ),
24- newListCommand (dockerCli ),
25- newRemoveCommand (dockerCli ),
26- newSetCommand (dockerCli ),
27- newPushCommand (dockerCli ),
28- newCreateCommand (dockerCli ),
29- newUpgradeCommand (dockerCli ),
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 ),
3037 )
3138 return cmd
3239}
0 commit comments