Added --pluginUrl option to grafana-cli for local network plugin installation

This commit is contained in:
THIERRY SALLE
2017-09-15 20:34:08 +02:00
parent 442f625a4e
commit e978bfc368
5 changed files with 42 additions and 20 deletions
@@ -19,6 +19,7 @@ type CommandLine interface {
PluginDirectory() string
RepoDirectory() string
PluginURL() string
}
type contextCommandLine struct {
@@ -44,3 +45,7 @@ func (c *contextCommandLine) PluginDirectory() string {
func (c *contextCommandLine) RepoDirectory() string {
return c.GlobalString("repo")
}
func (c *contextCommandLine) PluginURL() string {
return c.GlobalString("pluginUrl")
}