CLI: Allow installing custom binary plugins (#17551)

Make sure all data is sent to API to be able to select correct archive version.
This commit is contained in:
Andrej Ocenas
2019-07-29 10:44:58 +02:00
committed by GitHub
parent 64828e017c
commit 8c49d27705
19 changed files with 684 additions and 244 deletions

View File

@@ -4,7 +4,6 @@ import (
"errors"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
s "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
)
@@ -24,7 +23,7 @@ func listversionsCommand(c utils.CommandLine) error {
pluginToList := c.Args().First()
plugin, err := s.GetPlugin(pluginToList, c.GlobalString("repo"))
plugin, err := c.ApiClient().GetPlugin(pluginToList, c.GlobalString("repo"))
if err != nil {
return err
}