Skip to content

Commit

Permalink
Validate the stack argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Aug 8, 2022
1 parent 3fc804a commit 9000ad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ public function handle()
return $this->installInertiaReactStack();
} elseif ($this->argument('stack') === 'api') {
return $this->installApiStack();
} else {
} elseif ($this->argument('stack') === 'blade') {
return $this->installBladeStack();
}

$this->components->error('The stack must be blade, react, vue, or api.');

return 1;
}

/**
Expand Down

0 comments on commit 9000ad1

Please sign in to comment.