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
@ -10,10 +10,11 @@ import (
|
|||||||
// NewBuilderCommand returns a cobra command for `builder` subcommands
|
// NewBuilderCommand returns a cobra command for `builder` subcommands
|
||||||
func NewBuilderCommand(dockerCli command.Cli) *cobra.Command {
|
func NewBuilderCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "builder",
|
Use: "builder",
|
||||||
Short: "Manage builds",
|
Short: "Manage builds",
|
||||||
Args: cli.NoArgs,
|
Args: cli.NoArgs,
|
||||||
RunE: command.ShowHelp(dockerCli.Err()),
|
RunE: command.ShowHelp(dockerCli.Err()),
|
||||||
|
Annotations: map[string]string{"version": "1.31"},
|
||||||
}
|
}
|
||||||
cmd.AddCommand(
|
cmd.AddCommand(
|
||||||
NewPruneCommand(dockerCli),
|
NewPruneCommand(dockerCli),
|
||||||
|
@ -10,10 +10,11 @@ import (
|
|||||||
// NewNetworkCommand returns a cobra command for `network` subcommands
|
// NewNetworkCommand returns a cobra command for `network` subcommands
|
||||||
func NewNetworkCommand(dockerCli command.Cli) *cobra.Command {
|
func NewNetworkCommand(dockerCli command.Cli) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "network",
|
Use: "network",
|
||||||
Short: "Manage networks",
|
Short: "Manage networks",
|
||||||
Args: cli.NoArgs,
|
Args: cli.NoArgs,
|
||||||
RunE: command.ShowHelp(dockerCli.Err()),
|
RunE: command.ShowHelp(dockerCli.Err()),
|
||||||
|
Annotations: map[string]string{"version": "1.21"},
|
||||||
}
|
}
|
||||||
cmd.AddCommand(
|
cmd.AddCommand(
|
||||||
newConnectCommand(dockerCli),
|
newConnectCommand(dockerCli),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user