friends-of-presta / fop_console

Prestashop Module providing a set of shell/terminal commands for developers (PrestaShop 1.7.5+)
Academic Free License v3.0
85 stars 35 forks source link

fop:add-hook simplier syntax #106

Open SebSept opened 3 years ago

SebSept commented 3 years ago

The command is really verbose and not fun to use.

My first attempt to use this command are always : ./bin/console fop:add-hook MyNewHook But that's not correct the expected syntax is ./bin/console fop:add-hook --name MyNewHook --title 'who cares?' --description 'not me' This is long, I have the feelling to loose time providing this information I judge useless.

./bin/console fop:add-hook --name MyNewHook or ./bin/console fop:add-hook --name MyNewHook --no-interaction (currently fails)

I suggest to ask for description and title only when no parameters at all are provided.

tom-combet commented 1 year ago

I strongly agree with that, I'll probably do a PR soon.