cake
cake copied to clipboard
arguments for tasks?
This would be really nice to have.
Hi @sam0x17
Arguments should to be accessible via ARGV const
Also I propose to you use ENV to define arguments like in rails.
i.e. SOMEARG=123 cake :task_readinv_env
This way is much better cuz it gives to user ability to chain tasks without passingthru args.
But if you believe it shoud to be different - looking forward for your opinion. Im open for discussion about cake functionality.
my use case is migrating to particular migration numbers, and a cake exec command that executes the input string as crystal code within the app environment and prints the result.
ARGV comes up empty when read from within a task -- I'm guessing it is consumed by the cake binary
Hi,
Thank you for interest to cake. I’ll investigate the issue. Might be a bug
ср, 20 мая 2020 г. в 2:04, Sam Johnson [email protected]:
ARGV comes up empty when read from within a task -- I'm guessing it is consumed by the cake binary