Skip to content

Commit

Permalink
Merge pull request #30808 from a-robinson/backport2.1-30747
Browse files Browse the repository at this point in the history
release-2.1: cli: Mark zone command deprecated so it doesn't show up in help text
  • Loading branch information
a-robinson authored Oct 1, 2018
2 parents 58024e5 + 743d2dc commit 123b1da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,6 @@ Available Commands:
sql open a sql shell
user get, set, list and remove users
zone get, set, list and remove zones
node list, inspect or remove nodes
dump dump sql tables
Expand Down
7 changes: 4 additions & 3 deletions pkg/cli/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ var zoneCmds = []*cobra.Command{
}

var zoneCmd = &cobra.Command{
Use: "zone",
Short: "get, set, list and remove zones",
RunE: usageAndErr,
Use: "zone",
Short: "get, set, list and remove zones",
RunE: usageAndErr,
Deprecated: "use SHOW ZONE and CONFIGURE ZONE commands in a SQL client instead.",
}

func init() {
Expand Down

0 comments on commit 123b1da

Please sign in to comment.