Merge pull request #1648 from thaJeztah/hide_builder_and_network
Hide "builder" and "network" commands on old API versions
This commit is contained in:
commit
d21d1ce675
@ -14,6 +14,7 @@ func NewBuilderCommand(dockerCli command.Cli) *cobra.Command {
|
||||
Short: "Manage builds",
|
||||
Args: cli.NoArgs,
|
||||
RunE: command.ShowHelp(dockerCli.Err()),
|
||||
Annotations: map[string]string{"version": "1.31"},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
NewPruneCommand(dockerCli),
|
||||
|
@ -14,6 +14,7 @@ func NewNetworkCommand(dockerCli command.Cli) *cobra.Command {
|
||||
Short: "Manage networks",
|
||||
Args: cli.NoArgs,
|
||||
RunE: command.ShowHelp(dockerCli.Err()),
|
||||
Annotations: map[string]string{"version": "1.21"},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
newConnectCommand(dockerCli),
|
||||
|
Loading…
x
Reference in New Issue
Block a user