mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:32:15 +08:00
feat(cli): make repo url a parameter
this is a quick hack to support repo url as parameter. Will refactor later
This commit is contained in:
@ -32,7 +32,7 @@ func upgradeAllCommand(c CommandLine) error {
|
||||
|
||||
localPlugins := s.GetLocalPlugins(pluginDir)
|
||||
|
||||
remotePlugins, err := s.ListAllPlugins()
|
||||
remotePlugins, err := s.ListAllPlugins(c.GlobalString("repo"))
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
@ -54,7 +54,7 @@ func upgradeAllCommand(c CommandLine) error {
|
||||
log.Infof("Upgrading %v \n", p.Id)
|
||||
|
||||
s.RemoveInstalledPlugin(pluginDir, p.Id)
|
||||
InstallPlugin(p.Id, pluginDir, "")
|
||||
InstallPlugin(p.Id, pluginDir, "", c.GlobalString("repo"))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user