joselfonseca / laravel-tactician

Laravel Tactician is an implementation of the Command Bus Tactician by Ross Tuck.
MIT License
61 stars 12 forks source link

make:tactician file generation issue #10

Closed JunaidQadirB closed 5 years ago

JunaidQadirB commented 6 years ago

php artisan make:tactician /src/Commands/CommandName

creates the files in /app/CommandBus whereas I have clearly specified a root path.

Current Behavior

/app/CommandBus/Commands/CommandNameCommand /app/CommandBus/Handlers/CommandNameHandler

Expected behavior

at leaset

/src/Commands/Commands/CommandNameCommand /src/Commands/Handlers/CommandNameHandler

OR

/src/Commands/CommandNameCommand /src/Commands/CommandNameHandler

Also, It would be nicer if there were a flag like --bare to skip creating Commands and 'Handlers' folders.

joselfonseca commented 5 years ago

Sorry this took too long, I hope is still relevant but take a look at this, https://github.com/joselfonseca/laravel-tactician/commit/4a0f824ad4a5c992e40b365caa5f948c679b643c .Will tag it soon with support for laravel 6.