mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 22:02:17 +08:00
feat(cli): make all plugin commands subcommands
This commit is contained in:
@ -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,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user