File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ var indexListCmd = &cobra.Command{
48
48
49
49
This command prints a list of indexes. It shows the name and the remote URL for
50
50
each configured index in table format.` ,
51
- Args : cobra .NoArgs ,
51
+ Aliases : []string {"ls" },
52
+ Args : cobra .NoArgs ,
52
53
RunE : func (_ * cobra.Command , _ []string ) error {
53
54
indexes , err := indexoperations .ListIndexes (paths )
54
55
if err != nil {
@@ -95,8 +96,9 @@ It is only safe to remove indexes without installed plugins. Removing an index
95
96
while there are plugins installed will result in an error, unless the --force
96
97
option is used (not recommended).` ,
97
98
98
- Args : cobra .ExactArgs (1 ),
99
- RunE : indexDelete ,
99
+ Aliases : []string {"rm" },
100
+ Args : cobra .ExactArgs (1 ),
101
+ RunE : indexDelete ,
100
102
}
101
103
102
104
func indexDelete (_ * cobra.Command , args []string ) error {
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ Remarks:
39
39
Redirecting the output of this command to a program or file will only print
40
40
the names of the plugins installed. This output can be piped back to the
41
41
"install" command.` ,
42
+ Aliases : []string {"ls" },
42
43
RunE : func (cmd * cobra.Command , args []string ) error {
43
44
receipts , err := installation .GetInstalledPluginReceipts (paths .InstallReceiptsPath ())
44
45
if err != nil {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Remarks:
54
54
},
55
55
PreRunE : checkIndex ,
56
56
Args : cobra .MinimumNArgs (1 ),
57
- Aliases : []string {"remove" },
57
+ Aliases : []string {"remove" , "rm" },
58
58
}
59
59
60
60
func unsafePluginNameErr (n string ) error { return errors .Errorf ("plugin name %q not allowed" , n ) }
You can’t perform that action at this time.
0 commit comments