From 728f64e7edd73af6a9ed1dcdca4f92c88690f5e5 Mon Sep 17 00:00:00 2001 From: Nick Beenham <1985327+superbeeny@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:01:33 -0500 Subject: [PATCH] Fixing #8043 - adding long form commands and aliasing abbreviations (#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 --- cmd/rad/cmd/env.go | 5 +++-- pkg/cli/cmd/radinit/init.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/rad/cmd/env.go b/cmd/rad/cmd/env.go index 415392a446..aca7ee0eae 100644 --- a/cmd/rad/cmd/env.go +++ b/cmd/rad/cmd/env.go @@ -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.`, } diff --git a/pkg/cli/cmd/radinit/init.go b/pkg/cli/cmd/radinit/init.go index ce7e6df3d4..dc623db825 100644 --- a/pkg/cli/cmd/radinit/init.go +++ b/pkg/cli/cmd/radinit/init.go @@ -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.