You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
axvm commentedon Aug 16, 2019
Hi @sam0x17
Arguments should to be accessible via
ARGVconstaxvm commentedon Aug 16, 2019
Also I propose to you use ENV to define arguments like in rails.
i.e.
SOMEARG=123 cake :task_readinv_envThis 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.
sam0x17 commentedon Aug 18, 2019
my use case is migrating to particular migration numbers, and a
cake execcommand that executes the input string as crystal code within the app environment and prints the result.sam0x17 commentedon May 19, 2020
ARGVcomes up empty when read from within a task -- I'm guessing it is consumed by thecakebinaryaxvm commentedon May 19, 2020