File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
pkg/cmd/grafana-cli/commands Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ List installed plugins
28
28
grafana-cli plugins ls
29
29
```
30
30
31
- Upgrade all installed plugins
31
+ Update all installed plugins
32
32
```
33
- grafana-cli plugins upgrade -all
33
+ grafana-cli plugins update -all
34
34
```
35
35
36
- Upgrade one plugin
36
+ Update one plugin
37
37
```
38
- grafana-cli plugins upgrade <plugin-id>
38
+ grafana-cli plugins update <plugin-id>
39
39
```
40
40
41
41
Remove one plugin
Original file line number Diff line number Diff line change 1
1
package commands
2
2
3
3
import (
4
+ "os"
5
+
4
6
"github.com/codegangsta/cli"
5
7
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
6
- "os"
7
8
)
8
9
9
10
func runCommand (command func (commandLine CommandLine ) error ) func (context * cli.Context ) {
@@ -32,13 +33,15 @@ var pluginCommands = []cli.Command{
32
33
Usage : "list remote available plugins" ,
33
34
Action : runCommand (listremoteCommand ),
34
35
}, {
35
- Name : "upgrade" ,
36
- Usage : "upgrade <plugin id>" ,
37
- Action : runCommand (upgradeCommand ),
36
+ Name : "update" ,
37
+ Usage : "update <plugin id>" ,
38
+ Aliases : []string {"upgrade" },
39
+ Action : runCommand (upgradeCommand ),
38
40
}, {
39
- Name : "upgrade-all" ,
40
- Usage : "upgrades all your installed plugins" ,
41
- Action : runCommand (upgradeAllCommand ),
41
+ Name : "update-all" ,
42
+ Aliases : []string {"upgrade-all" },
43
+ Usage : "update all your installed plugins" ,
44
+ Action : runCommand (upgradeAllCommand ),
42
45
}, {
43
46
Name : "ls" ,
44
47
Usage : "list all installed plugins" ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func upgradeAllCommand(c CommandLine) error {
51
51
}
52
52
53
53
for _ , p := range pluginsToUpgrade {
54
- log .Infof ("Upgrading %v \n " , p .Id )
54
+ log .Infof ("Updating %v \n " , p .Id )
55
55
56
56
s .RemoveInstalledPlugin (pluginsDir , p .Id )
57
57
InstallPlugin (p .Id , "" , c )
You can’t perform that action at this time.
0 commit comments