@@ -29,8 +29,11 @@ import (
2929func AddCommands (cmd * cobra.Command , dockerCli command.Cli ) {
3030 cmd .AddCommand (
3131 // commonly used shorthands
32+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
3233 container .NewRunCommand (dockerCli ),
34+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
3335 container .NewExecCommand (dockerCli ),
36+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
3437 container .NewPsCommand (dockerCli ),
3538 image .NewBuildCommand (dockerCli ),
3639 image .NewPullCommand (dockerCli ),
@@ -49,6 +52,7 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
4952 builder .NewBuilderCommand (dockerCli ),
5053 //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
5154 checkpoint .NewCheckpointCommand (dockerCli ),
55+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
5256 container .NewContainerCommand (dockerCli ),
5357 context .NewContextCommand (dockerCli ),
5458 image .NewImageCommand (dockerCli ),
@@ -69,25 +73,45 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
6973 swarm .NewSwarmCommand (dockerCli ),
7074
7175 // legacy commands may be hidden
76+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7277 hide (container .NewAttachCommand (dockerCli )),
78+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7379 hide (container .NewCommitCommand (dockerCli )),
80+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7481 hide (container .NewCopyCommand (dockerCli )),
82+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7583 hide (container .NewCreateCommand (dockerCli )),
84+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7685 hide (container .NewDiffCommand (dockerCli )),
86+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7787 hide (container .NewExportCommand (dockerCli )),
88+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7889 hide (container .NewKillCommand (dockerCli )),
90+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
7991 hide (container .NewLogsCommand (dockerCli )),
92+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
8093 hide (container .NewPauseCommand (dockerCli )),
94+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
8195 hide (container .NewPortCommand (dockerCli )),
96+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
8297 hide (container .NewRenameCommand (dockerCli )),
98+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
8399 hide (container .NewRestartCommand (dockerCli )),
100+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
84101 hide (container .NewRmCommand (dockerCli )),
102+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
85103 hide (container .NewStartCommand (dockerCli )),
104+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
86105 hide (container .NewStatsCommand (dockerCli )),
106+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
87107 hide (container .NewStopCommand (dockerCli )),
108+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
88109 hide (container .NewTopCommand (dockerCli )),
110+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
89111 hide (container .NewUnpauseCommand (dockerCli )),
112+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
90113 hide (container .NewUpdateCommand (dockerCli )),
114+ //nolint:staticcheck // TODO: Remove when migration to cli/internal/commands.Register is complete. (see #6283)
91115 hide (container .NewWaitCommand (dockerCli )),
92116 hide (image .NewHistoryCommand (dockerCli )),
93117 hide (image .NewImportCommand (dockerCli )),
0 commit comments