Compare commits

..

6 commits

View file

@ -11,7 +11,7 @@ import (
)
func NewRestoreCommand(c *config.Config) *cobra.Command {
backupCmd := &cobra.Command{
restoreCmd := &cobra.Command{
Use: "restore",
Short: "Restore the dashboards from a git repository to grafana.",
Long: "Restore the dashboards from a git repository to grafana.",
@ -35,9 +35,9 @@ func NewRestoreCommand(c *config.Config) *cobra.Command {
},
}
backupCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
restoreCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check")
return backupCmd
return restoreCmd
}
func restore(ctx context.Context, cfg *config.Config) error {