diff --git a/app/Commands/Install.php b/app/Commands/Install.php index 0afc19d..a41f925 100644 --- a/app/Commands/Install.php +++ b/app/Commands/Install.php @@ -23,7 +23,10 @@ public function handle(): int return Command::FAILURE; } - if (! File::exists(Whisky::cwd('whisky.json'))) { + if ( + ! File::exists(Whisky::cwd('whisky.json')) || + $this->ask('overwrite existing whisky.json?', 'no') + ) { $this->info('Creating whisky.json in project root...'); File::put( Whisky::cwd('whisky.json'),