diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go index 72ed201..20d307d 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -11,7 +11,7 @@ import ( ) func NewRestoreCommand(c *config.Config) *cobra.Command { - restoreCmd := &cobra.Command{ + backupCmd := &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 { }, } - restoreCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check") + backupCmd.PersistentFlags().BoolVar(&c.ForceCommits, "force", false, "Force dashboards / ignore existence check") - return restoreCmd + return backupCmd } func restore(ctx context.Context, cfg *config.Config) error {