File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
7777 config .NewConfigCommand (dockerCli ),
7878 //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7979 node .NewNodeCommand (dockerCli ),
80+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
8081 secret .NewSecretCommand (dockerCli ),
8182 service .NewServiceCommand (dockerCli ),
8283 stack .NewStackCommand (dockerCli ),
Original file line number Diff line number Diff line change @@ -9,22 +9,28 @@ import (
99)
1010
1111// NewSecretCommand returns a cobra command for `secret` subcommands
12- func NewSecretCommand (dockerCli command.Cli ) * cobra.Command {
12+ //
13+ // Deprecated: Do not import commands directly. They will be removed in a future release.
14+ func NewSecretCommand (dockerCLI command.Cli ) * cobra.Command {
15+ return newSecretCommand (dockerCLI )
16+ }
17+
18+ func newSecretCommand (dockerCLI command.Cli ) * cobra.Command {
1319 cmd := & cobra.Command {
1420 Use : "secret" ,
1521 Short : "Manage Swarm secrets" ,
1622 Args : cli .NoArgs ,
17- RunE : command .ShowHelp (dockerCli .Err ()),
23+ RunE : command .ShowHelp (dockerCLI .Err ()),
1824 Annotations : map [string ]string {
1925 "version" : "1.25" ,
2026 "swarm" : "manager" ,
2127 },
2228 }
2329 cmd .AddCommand (
24- newSecretListCommand (dockerCli ),
25- newSecretCreateCommand (dockerCli ),
26- newSecretInspectCommand (dockerCli ),
27- newSecretRemoveCommand (dockerCli ),
30+ newSecretListCommand (dockerCLI ),
31+ newSecretCreateCommand (dockerCLI ),
32+ newSecretInspectCommand (dockerCLI ),
33+ newSecretRemoveCommand (dockerCLI ),
2834 )
2935 return cmd
3036}
You can’t perform that action at this time.
0 commit comments