grafana-cli: update plugins ls command (#63492)

This commit is contained in:
Andres Martinez Gotor
2023-02-22 09:24:13 +01:00
committed by GitHub
parent b069fd81b2
commit 45e478182b
6 changed files with 25 additions and 6 deletions
+1 -4
View File
@@ -4,7 +4,6 @@ import (
"fmt"
"strings"
"github.com/fatih/color"
"github.com/urfave/cli/v2"
"github.com/grafana/grafana/pkg/bus"
@@ -99,8 +98,6 @@ func runPluginCommand(command func(commandLine utils.CommandLine) error) func(co
if err := command(cmd); err != nil {
return err
}
logger.Info(color.GreenString("Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.\n\n"))
return nil
}
}
@@ -139,7 +136,7 @@ var pluginCommands = []*cli.Command{
Action: runPluginCommand(cmd.upgradeAllCommand),
}, {
Name: "ls",
Usage: "list all installed plugins",
Usage: "list installed plugins (excludes core plugins)",
Action: runPluginCommand(cmd.lsCommand),
}, {
Name: "uninstall",