mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
fix(cli): remove dev text values
This commit is contained in:
parent
d59beec354
commit
5adac86b43
@ -22,7 +22,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
|
||||
var Commands = []cli.Command{
|
||||
{
|
||||
Name: "install",
|
||||
Usage: "installs stuff",
|
||||
Usage: "installs a plugin",
|
||||
Action: runCommand(installCommand),
|
||||
}, {
|
||||
Name: "list-remote",
|
||||
@ -42,7 +42,7 @@ var Commands = []cli.Command{
|
||||
Action: runCommand(lsCommand),
|
||||
}, {
|
||||
Name: "remove",
|
||||
Usage: "removes stuff",
|
||||
Usage: "removes installed plugin",
|
||||
Action: runCommand(removeCommand),
|
||||
},
|
||||
}
|
||||
|
@ -77,10 +77,9 @@ func InstallPlugin(pluginName, pluginFolder, version string) error {
|
||||
res := services.ReadPlugin(pluginFolder, pluginName)
|
||||
|
||||
for _, v := range res.Dependency.Plugins {
|
||||
log.Infof("Depends on %s install!\n", v.Id)
|
||||
log.Infof("Installing Dependency: %s\n", v.Id)
|
||||
|
||||
//Todo: uncomment this code once the repo is more correct.
|
||||
//InstallPlugin(v.Id, pluginFolder, "")
|
||||
InstallPlugin(v.Id, pluginFolder, "")
|
||||
}
|
||||
|
||||
return err
|
||||
|
@ -11,14 +11,14 @@ import (
|
||||
)
|
||||
|
||||
func getGrafanaPluginPath() string {
|
||||
os := runtime.GOOS
|
||||
if os == "linux" {
|
||||
return "/var/lib/grafana/plugins"
|
||||
} else if os == "windows" {
|
||||
return "C:\\opt\\grafana\\plugins" // :&
|
||||
}
|
||||
//TODO: try to get path from os:env GF_PLUGIN_FOLDER
|
||||
|
||||
return "tmp_do/" //based on your OS!
|
||||
os := runtime.GOOS
|
||||
if os == "windows" {
|
||||
return "C:\\opt\\grafana\\plugins"
|
||||
} else {
|
||||
return "/var/lib/grafana/plugins"
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Loading…
Reference in New Issue
Block a user