Skip to content

Commit cfd6a03

Browse files
authored
cmd: improve help wording for ECE specific commands (#169)
Adds "(for ECE installations only)" to the descriptions of the commands which are ECE-specific. In order to avoid complexity and still provide a good UX, the best course of action is to let the users know which commands will only work in ECE through the --help flag, and the documentation. Users will receive a 401 error if they attempt to run this command.
1 parent 411fb1d commit cfd6a03

File tree

65 files changed

+86
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+86
-86
lines changed

cmd/platform/allocator/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// Command represents the allocator command
2727
var Command = &cobra.Command{
2828
Use: "allocator",
29-
Short: "Manages allocators",
29+
Short: "Manages allocators (for ECE installations only)",
3030
PreRunE: cobra.MaximumNArgs(0),
3131
Run: func(cmd *cobra.Command, args []string) {
3232
cmd.Help()

cmd/platform/constructor/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
// Command represents the constructor command
3737
var Command = &cobra.Command{
3838
Use: "constructor",
39-
Short: "Manages constructors",
39+
Short: "Manages constructors (for ECE installations only)",
4040
PreRunE: cobra.MaximumNArgs(0),
4141
Run: func(cmd *cobra.Command, args []string) {
4242
cmd.Help()

cmd/platform/enrollment-token/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
// Command represents the enrollment-token subcomand.
3636
var Command = &cobra.Command{
3737
Use: "enrollment-token",
38-
Short: "Manages tokens",
38+
Short: "Manages tokens (for ECE installations only)",
3939
PreRunE: cobra.MaximumNArgs(0),
4040
Run: func(cmd *cobra.Command, args []string) {
4141
cmd.Help()

cmd/platform/instance-configuration/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
// Command is the top instance-config subcommand.
3333
var Command = &cobra.Command{
3434
Use: "instance-configuration",
35-
Short: "Manages instance configurations",
35+
Short: "Manages instance configurations (for ECE installations only)",
3636
PreRunE: cobra.MaximumNArgs(0),
3737
Run: func(cmd *cobra.Command, args []string) { cmd.Help() },
3838
}

cmd/platform/platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var Command = &cobra.Command{
4646

4747
var infoCmd = &cobra.Command{
4848
Use: "info",
49-
Short: "Shows information about the platform",
49+
Short: "Shows information about the platform (for ECE installations only)",
5050
PreRunE: cobra.MaximumNArgs(0),
5151
RunE: func(cmd *cobra.Command, args []string) error {
5252
p, err := platform.GetInfo(platform.GetInfoParams{

cmd/platform/proxy/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
// Command represents the proxy command
3636
var Command = &cobra.Command{
3737
Use: "proxy",
38-
Short: "Manages proxies",
38+
Short: "Manages proxies (for ECE installations only)",
3939
PreRunE: cobra.MaximumNArgs(0),
4040
Run: func(cmd *cobra.Command, args []string) {
4141
cmd.Help()

cmd/platform/repository/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
)
3333

3434
const (
35-
snapshotShortHelp = "Manages snapshot repositories"
35+
snapshotShortHelp = "Manages snapshot repositories (for ECE installations only)"
3636
snapshotCreateShortHelp = "Creates / updates a snapshot repository"
3737
)
3838

cmd/platform/role/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// Command is the top level role command.
2525
var Command = &cobra.Command{
2626
Use: "role",
27-
Short: "Manages platform roles",
27+
Short: "Manages platform roles (for ECE installations only)",
2828
PreRunE: cobra.MaximumNArgs(0),
2929
Run: func(cmd *cobra.Command, args []string) {
3030
cmd.Help()

cmd/platform/runner/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// Command is the top level runner command.
2525
var Command = &cobra.Command{
2626
Use: "runner",
27-
Short: "Manages platform runners",
27+
Short: "Manages platform runners (for ECE installations only)",
2828
PreRunE: cobra.MaximumNArgs(0),
2929
Run: func(cmd *cobra.Command, args []string) {
3030
cmd.Help()

cmd/platform/stack/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func listStackPacks(cmd *cobra.Command, args []string) error {
7676

7777
var stackUploadCmd = &cobra.Command{
7878
Use: "upload",
79-
Short: "Uploads an Elastic StackPack",
79+
Short: "Uploads an Elastic StackPack (for ECE installations only)",
8080
PreRunE: cobra.MinimumNArgs(1),
8181

8282
RunE: func(cmd *cobra.Command, args []string) error {
@@ -95,7 +95,7 @@ var stackUploadCmd = &cobra.Command{
9595

9696
var stackDeleteCmd = &cobra.Command{
9797
Use: "delete",
98-
Short: "Deletes an Elastic StackPack",
98+
Short: "Deletes an Elastic StackPack (for ECE installations only)",
9999
PreRunE: cobra.MinimumNArgs(1),
100100

101101
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)