From 77f93886dab15434e7a772022a9c5574710d9cfe Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 1 Mar 2016 10:55:59 +0100 Subject: [PATCH] fix(cli): add latest version to list-remote command closes #4205 --- pkg/cmd/grafana-cli/commands/listremote_command.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/grafana-cli/commands/listremote_command.go b/pkg/cmd/grafana-cli/commands/listremote_command.go index cf535a0498e..7cb3d650c55 100644 --- a/pkg/cmd/grafana-cli/commands/listremote_command.go +++ b/pkg/cmd/grafana-cli/commands/listremote_command.go @@ -13,7 +13,12 @@ func listremoteCommand(c CommandLine) error { } for _, i := range plugin.Plugins { - log.Infof("id: %v version:\n", i.Id) + pluginVersion := "" + if len(i.Versions) > 0 { + pluginVersion = i.Versions[0].Version + } + + log.Infof("id: %v version: %s\n", i.Id, pluginVersion) } return nil