cake icon indicating copy to clipboard operation
cake copied to clipboard

arguments for tasks?

Open sam0x17 opened this issue 6 years ago • 5 comments

This would be really nice to have.

sam0x17 avatar Aug 15 '19 19:08 sam0x17

Hi @sam0x17 Arguments should to be accessible via ARGV const

axvm avatar Aug 16 '19 10:08 axvm

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.

axvm avatar Aug 16 '19 10:08 axvm

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.

sam0x17 avatar Aug 18 '19 08:08 sam0x17

ARGV comes up empty when read from within a task -- I'm guessing it is consumed by the cake binary

sam0x17 avatar May 19 '20 21:05 sam0x17

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

axvm avatar May 19 '20 21:05 axvm