From 98a33fb683509c37ac416a223d4f7e17a20f21c4 Mon Sep 17 00:00:00 2001 From: Efrat Levitan <41479945+Efrat19@users.noreply.github.com> Date: Mon, 7 Oct 2019 11:57:20 +0300 Subject: [PATCH] helm repo subcommands aliases (#6589) * helm repo subcommands aliases Signed-off-by: Efrat19 * lint Signed-off-by: Efrat19 --- cmd/helm/plugin_update.go | 5 +++-- cmd/helm/repo_list.go | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/helm/plugin_update.go b/cmd/helm/plugin_update.go index e2f6ad460..64e8bd6c7 100644 --- a/cmd/helm/plugin_update.go +++ b/cmd/helm/plugin_update.go @@ -35,8 +35,9 @@ type pluginUpdateOptions struct { func newPluginUpdateCmd(out io.Writer) *cobra.Command { o := &pluginUpdateOptions{} cmd := &cobra.Command{ - Use: "update ...", - Short: "update one or more Helm plugins", + Use: "update ...", + Aliases: []string{"up"}, + Short: "update one or more Helm plugins", PreRunE: func(cmd *cobra.Command, args []string) error { return o.complete(args) }, diff --git a/cmd/helm/repo_list.go b/cmd/helm/repo_list.go index 5abc73c09..b0050682a 100644 --- a/cmd/helm/repo_list.go +++ b/cmd/helm/repo_list.go @@ -31,9 +31,10 @@ import ( func newRepoListCmd(out io.Writer) *cobra.Command { var output string cmd := &cobra.Command{ - Use: "list", - Short: "list chart repositories", - Args: require.NoArgs, + Use: "list", + Aliases: []string{"ls"}, + Short: "list chart repositories", + Args: require.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { // validate the output format first so we don't waste time running a // request that we'll throw away