Browse Source

feat(cli): make remove command an alias for uninstall

bergquist 9 năm trước cách đây
mục cha
commit
2123fbdf9b

+ 4 - 7
pkg/cmd/grafana-cli/commands/commands.go

@@ -48,13 +48,10 @@ var pluginCommands = []cli.Command{
 		Usage:  "list all installed plugins",
 		Usage:  "list all installed plugins",
 		Action: runCommand(lsCommand),
 		Action: runCommand(lsCommand),
 	}, {
 	}, {
-		Name:   "uninstall",
-		Usage:  "uninstall <plugin id>",
-		Action: runCommand(removeCommand),
-	}, {
-		Name:   "remove",
-		Usage:  "remove <plugin id>",
-		Action: runCommand(removeCommand),
+		Name:    "uninstall",
+		Aliases: []string{"remove"},
+		Usage:   "uninstall <plugin id>",
+		Action:  runCommand(removeCommand),
 	},
 	},
 }
 }