From 58043d8657d7b5e1c8a23bdc16dc025e7227226f Mon Sep 17 00:00:00 2001 From: Efrat19 Date: Sun, 6 Oct 2019 21:47:20 +0300 Subject: [PATCH] helm plugin subcommands aliases Signed-off-by: Efrat19 --- cmd/helm/plugin_list.go | 3 ++- cmd/helm/plugin_remove.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/helm/plugin_list.go b/cmd/helm/plugin_list.go index eccc54e2d..eb1cc88ef 100644 --- a/cmd/helm/plugin_list.go +++ b/cmd/helm/plugin_list.go @@ -25,7 +25,8 @@ import ( func newPluginListCmd(out io.Writer) *cobra.Command { cmd := &cobra.Command{ - Use: "list", + Use: "list", + Aliases: []string{"ls"}, Short: "list installed Helm plugins", RunE: func(cmd *cobra.Command, args []string) error { debug("pluginDirs: %s", settings.PluginsDirectory) diff --git a/cmd/helm/plugin_remove.go b/cmd/helm/plugin_remove.go index b632ab396..0879bd65e 100644 --- a/cmd/helm/plugin_remove.go +++ b/cmd/helm/plugin_remove.go @@ -35,6 +35,7 @@ func newPluginRemoveCmd(out io.Writer) *cobra.Command { o := &pluginRemoveOptions{} cmd := &cobra.Command{ Use: "remove ...", + Aliases: []string{"rm"}, Short: "remove one or more Helm plugins", PreRunE: func(cmd *cobra.Command, args []string) error { return o.complete(args)