grafana-cli: Upgrade to urfave/cli v2 (#22402)

* grafana-cli: Upgrade to urfave/cli v2
This commit is contained in:
Arve Knudsen
2020-02-26 12:27:31 +01:00
committed by GitHub
parent 6bc369629d
commit eb98d9c15b
84 changed files with 10503 additions and 4755 deletions

View File

@@ -16,14 +16,14 @@ func validateVersionInput(c utils.CommandLine) error {
return nil
}
func listversionsCommand(c utils.CommandLine) error {
func (cmd Command) listVersionsCommand(c utils.CommandLine) error {
if err := validateVersionInput(c); err != nil {
return err
}
pluginToList := c.Args().First()
plugin, err := c.ApiClient().GetPlugin(pluginToList, c.GlobalString("repo"))
plugin, err := cmd.Client.GetPlugin(pluginToList, c.String("repo"))
if err != nil {
return err
}