|
|
@@ -1,9 +1,10 @@
|
|
|
package commands
|
|
|
|
|
|
import (
|
|
|
+ "os"
|
|
|
+
|
|
|
"github.com/codegangsta/cli"
|
|
|
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
|
|
|
- "os"
|
|
|
)
|
|
|
|
|
|
func runCommand(command func(commandLine CommandLine) error) func(context *cli.Context) {
|
|
|
@@ -32,13 +33,15 @@ var pluginCommands = []cli.Command{
|
|
|
Usage: "list remote available plugins",
|
|
|
Action: runCommand(listremoteCommand),
|
|
|
}, {
|
|
|
- Name: "upgrade",
|
|
|
- Usage: "upgrade <plugin id>",
|
|
|
- Action: runCommand(upgradeCommand),
|
|
|
+ Name: "update",
|
|
|
+ Usage: "update <plugin id>",
|
|
|
+ Aliases: []string{"upgrade"},
|
|
|
+ Action: runCommand(upgradeCommand),
|
|
|
}, {
|
|
|
- Name: "upgrade-all",
|
|
|
- Usage: "upgrades all your installed plugins",
|
|
|
- Action: runCommand(upgradeAllCommand),
|
|
|
+ Name: "update-all",
|
|
|
+ Aliases: []string{"upgrade-all"},
|
|
|
+ Usage: "update all your installed plugins",
|
|
|
+ Action: runCommand(upgradeAllCommand),
|
|
|
}, {
|
|
|
Name: "ls",
|
|
|
Usage: "list all installed plugins",
|