nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.5k stars 954 forks source link

Add Confirmation Option for Command Execution #1863

Closed alissn closed 4 months ago

alissn commented 4 months ago

Hi,

In this pull request, I have added an option for confirmation before executing certain commands. Previously, the delete command ran without confirmation, which could lead to accidental and irreversible data loss.

I have also added an option to pass --force to delete without confirmation, allowing for the previous behavior when needed.

php artisan module:delete Foo --force

This change addresses issue #1859.

image

Thank you for reviewing this pull request.