Skip to content

Commit

Permalink
Fixing #8043 - adding long form commands and aliasing abbreviations (#…
Browse files Browse the repository at this point in the history
…8073)

# Description

Updated cmd line functions to use `environment` in place of `env` and
`initialize` in place of `init`. Both abbreviations are now aliased so
this is a non breaking change.

## Type of change

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).

Fixes: #8043 

Signed-off-by: Nick Beenham <[email protected]>
  • Loading branch information
superbeeny authored Nov 20, 2024
1 parent 654ce08 commit 728f64e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cmd/rad/cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ func init() {

func NewEnvironmentCommand() *cobra.Command {
return &cobra.Command{
Use: "env",
Short: "Manage Radius Environments",
Use: "environment",
Aliases: []string{"env"},
Short: "Manage Radius Environments",
Long: `Manage Radius Environments
Radius Environments are prepared “landing zones” for Radius Applications. Applications deployed to an environment will inherit the container runtime, configuration, and other settings from the environment.`,
}
Expand Down
5 changes: 3 additions & 2 deletions pkg/cli/cmd/radinit/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner) {
runner := NewRunner(factory)

cmd := &cobra.Command{
Use: "init",
Short: "Initialize Radius",
Use: "initialize",
Aliases: []string{"init"},
Short: "Initialize Radius",
Long: `
Interactively install the Radius control-plane and setup an environment.
Expand Down

0 comments on commit 728f64e

Please sign in to comment.