fix(cli): remove dev text values

This commit is contained in:
bergquist 2016-02-15 14:19:59 +01:00
parent d59beec354
commit 5adac86b43
3 changed files with 11 additions and 12 deletions

View File

@ -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),
},
}

View File

@ -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

View File

@ -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() {