Skip to content

Commit

Permalink
chore: suggest init force when config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed May 25, 2024
1 parent 56033b5 commit d92ab2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ var (
func Run(ctx context.Context, fsys afero.Fs, createVscodeSettings, createIntellijSettings *bool, params utils.InitParams) error {
// 1. Write `config.toml`.
if err := utils.InitConfig(params, fsys); err != nil {
if errors.Is(err, os.ErrExist) {
utils.CmdSuggestion = fmt.Sprintf("Run %s to overwrite existing config file.", utils.Aqua("supabase init --force"))
}
return err
}

Expand Down

0 comments on commit d92ab2a

Please sign in to comment.