helm repo subcommands aliases (#6589)

* helm repo subcommands aliases

Signed-off-by: Efrat19 <efrat890089@gmail.com>

* lint

Signed-off-by: Efrat19 <efrat890089@gmail.com>
pull/6591/head
Efrat Levitan 5 years ago committed by Martin Hickey
parent f35881d299
commit 98a33fb683

@ -35,8 +35,9 @@ type pluginUpdateOptions struct {
func newPluginUpdateCmd(out io.Writer) *cobra.Command {
o := &pluginUpdateOptions{}
cmd := &cobra.Command{
Use: "update <plugin>...",
Short: "update one or more Helm plugins",
Use: "update <plugin>...",
Aliases: []string{"up"},
Short: "update one or more Helm plugins",
PreRunE: func(cmd *cobra.Command, args []string) error {
return o.complete(args)
},

@ -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

Loading…
Cancel
Save