Skip to content

Commit 6c19521

Browse files
authored
Update CLI help output (#1398)
1 parent 83a44ba commit 6c19521

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cli/cmd/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func addAWSCredentials(cmd *cobra.Command) {
112112

113113
var _clusterCmd = &cobra.Command{
114114
Use: "cluster",
115-
Short: "manage a cluster",
115+
Short: "manage clusters (contains subcommands)",
116116
}
117117

118118
var _upCmd = &cobra.Command{

cli/cmd/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func envInit() {
5656

5757
var _envCmd = &cobra.Command{
5858
Use: "env",
59-
Short: "manage environments",
59+
Short: "manage cli environments (contains subcommands)",
6060
}
6161

6262
var _envConfigureCmd = &cobra.Command{

cli/cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@ func Execute() {
146146
cobra.EnableCommandSorting = false
147147

148148
_rootCmd.AddCommand(_deployCmd)
149-
_rootCmd.AddCommand(_refreshCmd)
150149
_rootCmd.AddCommand(_getCmd)
151150
_rootCmd.AddCommand(_logsCmd)
151+
_rootCmd.AddCommand(_refreshCmd)
152152
_rootCmd.AddCommand(_predictCmd)
153153
_rootCmd.AddCommand(_deleteCmd)
154154

155155
_rootCmd.AddCommand(_clusterCmd)
156-
_rootCmd.AddCommand(_versionCmd)
157156

158157
_rootCmd.AddCommand(_envCmd)
158+
_rootCmd.AddCommand(_versionCmd)
159159
_rootCmd.AddCommand(_completionCmd)
160160

161161
updateRootUsage()
@@ -178,7 +178,7 @@ func updateRootUsage() {
178178
usage = strings.Replace(usage, "Usage:\n cortex [command]\n\nAliases:\n cortex, cx\n\n", "", 1)
179179
usage = strings.Replace(usage, "Available Commands:", "api commands:", 1)
180180
usage = strings.Replace(usage, "\n cluster", "\n\ncluster commands:\n cluster", 1)
181-
usage = strings.Replace(usage, "\n configure", "\n\nother commands:\n configure", 1)
181+
usage = strings.Replace(usage, "\n env ", "\n\nother commands:\n env ", 1)
182182
usage = strings.Replace(usage, "\n\nUse \"cortex [command] --help\" for more information about a command.", "", 1)
183183

184184
cmd.Print(usage)

0 commit comments

Comments
 (0)