mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
359 B
Go
21 lines
359 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/cmd/grafana-cli/log"
|
|
"github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
|
|
)
|
|
|
|
func listremoteCommand(c CommandLine) error {
|
|
plugin, err := services.ListAllPlugins()
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
for _, i := range plugin.Plugins {
|
|
log.Infof("id: %v version:\n", i.Id)
|
|
}
|
|
|
|
return nil
|
|
}
|