Skip to content

Commit

Permalink
Fixing radius-project#8043 - adding long form commands and aliasing a…
Browse files Browse the repository at this point in the history
…bbreviations (radius-project#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: radius-project#8043 

Signed-off-by: Nick Beenham <Nicholas_Beenham@cable.comcast.com>
  • Loading branch information
superbeeny committed Nov 21, 2024
1 parent 52d0fd5 commit 056a814
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 056a814

Please sign in to comment.