mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 06:52:13 +08:00
CLI: Add command to migrate all datasources to use encrypted password fields (#17118)
closes: #17107
This commit is contained in:

committed by
Carl Bergquist

parent
b9181df212
commit
151b24b95f
@ -5,9 +5,10 @@ import (
|
||||
|
||||
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
|
||||
s "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
|
||||
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
|
||||
)
|
||||
|
||||
func validateVersionInput(c CommandLine) error {
|
||||
func validateVersionInput(c utils.CommandLine) error {
|
||||
arg := c.Args().First()
|
||||
if arg == "" {
|
||||
return errors.New("please specify plugin to list versions for")
|
||||
@ -16,7 +17,7 @@ func validateVersionInput(c CommandLine) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func listversionsCommand(c CommandLine) error {
|
||||
func listversionsCommand(c utils.CommandLine) error {
|
||||
if err := validateVersionInput(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user