feat(cli): make all plugin commands subcommands

This commit is contained in:
bergquist
2016-03-21 10:01:07 +01:00
parent 273311eed2
commit 7f8643efde
2 changed files with 15 additions and 7 deletions

View File

@ -22,7 +22,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
}
}
var Commands = []cli.Command{
var pluginCommands = []cli.Command{
{
Name: "install",
Usage: "install <plugin name>",
@ -49,3 +49,11 @@ var Commands = []cli.Command{
Action: runCommand(removeCommand),
},
}
var Commands = []cli.Command{
{
Name: "plugins",
Usage: "Manage plugins for grafana",
Subcommands: pluginCommands,
},
}