On 10/07/2014 22:24, sri wrote: > >> >> I noticed that there is no command to generate a command. It could be >> great to have >> /script/myapp generate command Foo >> >> or something like that which generate the command MyApp::Command::Foo in >> the good directory. >> Would it be possible to add it ? > > > What "good directory"? Would it generate an application specific command? > Something in the Mojolicious::Command namespace? A CPAN distribution like > the plugin generator? You leave out way too much information for me to give > a real answer.
I meaned lib/MyApp/Command/foo.pm with the MyApp::Command namespace. It's not for CPAN distribution like the plugin generator but a helper to create commands easily. I often create commands for cron tasks, it is very handy since it's easy for my colleagues to understand their aims (and if they don't understand, they can use the command with help and they're ok). > Perhaps you should release something to CPAN first under a different name > (leaving the Mojolicious::Command::generate::command namespace for core), > to see if there is demand. -- Luc http://www.fiat-tux.fr/ Internet n'est pas compliqué, Internet est ce que vous en faites.
signature.asc
Description: OpenPGP digital signature
