浏览代码

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

bergquist 9 年之前
父节点
当前提交
2123fbdf9b
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      pkg/cmd/grafana-cli/commands/commands.go

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

@@ -48,13 +48,10 @@ var pluginCommands = []cli.Command{
 		Usage:  "list all installed plugins",
 		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),
 	},
 }