feat(cli): adds some colors to ls command

This commit is contained in:
bergquist
2016-03-16 14:07:20 +01:00
parent 740478344b
commit a12f5376b5
203 changed files with 108309 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package commands
import (
"errors"
"fmt"
"github.com/fatih/color"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
m "github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
s "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
@@ -42,7 +43,7 @@ func lsCommand(c CommandLine) error {
}
for _, plugin := range plugins {
log.Infof("%s @ %s \n", plugin.Id, plugin.Info.Version)
log.Infof("%s %s %s \n", plugin.Id, color.YellowString("@"), plugin.Info.Version)
}
return nil