listremote_command.go 359 B

1234567891011121314151617181920
  1. package commands
  2. import (
  3. "github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
  4. "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
  5. )
  6. func listremoteCommand(c CommandLine) error {
  7. plugin, err := services.ListAllPlugins()
  8. if err != nil {
  9. return err
  10. }
  11. for _, i := range plugin.Plugins {
  12. log.Infof("id: %v version:\n", i.Id)
  13. }
  14. return nil
  15. }