Add --force flags to commands
sebastiandedeyne opened this issue · comments
Sebastian De Deyne commented
In dev, event-projector:rebuild
will be used a lot, annoying that you always need to pass the confirmation now.
Miguel-Serejo commented
In this regard I'd like to see the --no-interaction
flag to be treated as a force flag. Doesn't really make much sense that running the command with a no interaction flag has no effect.
Sebastian De Deyne commented
Maybe both is the way to go, to be the same as Laravel's commands. For example, from php artisan help migrate
:
--force Force the operation to run when in production.
-n, --no-interaction Do not ask any interactive question
Miguel-Serejo commented
They seem to serve different purposes. A --no-interaction
may still fail to run if the app is in production, while --force
may still require some user input, but won't refuse to run in production.