diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go index 20d307d..72ed201 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -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 {