Skip to content

Commit

Permalink
Merge pull request #698 from renan-campos/ms_alias
Browse files Browse the repository at this point in the history
adding new alias for managed service commands
  • Loading branch information
openshift-merge-robot committed May 5, 2022
2 parents 4963d13 + 6f1b4d8 commit fbd1c77
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
6 changes: 3 additions & 3 deletions cmd/create/service/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ import (
var args ocm.CreateManagedServiceArgs

var Cmd = &cobra.Command{
Use: "service",
Aliases: []string{"appliance"},
Use: "managed-service",
Aliases: []string{"appliance", "service"},
Short: "Creates a managed service.",
Long: ` Managed Services are OpenShift clusters that provide a specific function.
Use this command to create managed services.`,
Example: ` # Create a Managed Service of type service1.
rosa create service --type=service1 --name=clusterName`,
rosa create managed-service --type=service1 --name=clusterName`,
Run: run,
Hidden: true,
DisableFlagParsing: true,
Expand Down
12 changes: 6 additions & 6 deletions cmd/describe/service/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ import (
var args ocm.DescribeManagedServiceArgs

var Cmd = &cobra.Command{
Use: "service",
Aliases: []string{"appliance"},
Short: "Show details of a service",
Long: "Show details of a service",
Example: ` # Describe a service with id aaabbbccc"
rosa describe service --id=aaabbbccc`,
Use: "managed-service",
Aliases: []string{"appliance", "service"},
Short: "Show details of a managed-service",
Long: "Show details of a managed-service",
Example: ` # Describe a managed-service with id aaabbbccc"
rosa describe managed-service --id=aaabbbccc`,
Run: run,
Hidden: true,
}
Expand Down
11 changes: 6 additions & 5 deletions cmd/dlt/service/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ var args struct {
}

var Cmd = &cobra.Command{
Use: "service",
Short: "Deletes a service",
Long: "Deletes a service.",
Example: ` # Delete a service with ID "aabbcc"
rosa delete service --id=aabbcc`,
Use: "managed-service",
Aliases: []string{"appliance", "service"},
Short: "Deletes a managed-service",
Long: "Deletes a managed-service.",
Example: ` # Delete a managed-service with ID "aabbcc"
rosa delete managed-service --id=aabbcc`,
Run: run,
Hidden: true,
}
Expand Down
14 changes: 8 additions & 6 deletions cmd/list/service/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ import (
)

var Cmd = &cobra.Command{
Use: "services",
Aliases: []string{"service", "appliance", "appliances"},
Short: "List managed services",
Long: "List managed services.",
Example: ` # List all managed services
rosa list services`,
Use: "managed-services",
Aliases: []string{"service", "services",
"appliance", "appliances",
"managed-service"},
Short: "List managed-services",
Long: "List managed-services.",
Example: ` # List all managed-services
rosa list managed-services`,
Args: cobra.NoArgs,
Run: run,
Hidden: true,
Expand Down

0 comments on commit fbd1c77

Please sign in to comment.