spatie / laravel-event-projector

Event sourcing for Artisans 📽

Home Page:https://docs.spatie.be/laravel-event-projector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add --force flags to commands

sebastiandedeyne opened this issue · comments

In dev, event-projector:rebuild will be used a lot, annoying that you always need to pass the confirmation now.

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.

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

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.