mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(cli): adds some colors to ls command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user