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
We've had an issue with the CLI in the past where just running lucky -h required your app to compile so it could list out all of the custom tasks you've defined in your app. In the case of some of my apps, running lucky -h would takes upwards of 3+ minutes in development.
To fix this I moved over to using OptionParser #771 and now you can just run lucky -h and get a quick help right away. If you want to see all of your tasks, you'd run lucky tasks. The downside here was #816 where running lucky some.task -h would print out the lucky -h help menu instead. The Crystal OptionParser doesn't have any way to do a "wildcard" type handler. So when you run lucky some.task, the OptionParser really doesn't know what that means. Then passing any flags to it, the parser tries to pull those in.
We can hack around this by using -- to tell the parser to stop parsing, but I think using a built tool might give us more options and flexibility. Athena console comes with tab complletion, and that alone might be worth adding it in. Will need to investigate if it'll be a viable option with how LuckyTask tasks work.
The text was updated successfully, but these errors were encountered:
Related: #796
Ref: #816
We've had an issue with the CLI in the past where just running
lucky -h
required your app to compile so it could list out all of the custom tasks you've defined in your app. In the case of some of my apps, runninglucky -h
would takes upwards of 3+ minutes in development.To fix this I moved over to using OptionParser #771 and now you can just run
lucky -h
and get a quick help right away. If you want to see all of your tasks, you'd runlucky tasks
. The downside here was #816 where runninglucky some.task -h
would print out thelucky -h
help menu instead. The Crystal OptionParser doesn't have any way to do a "wildcard" type handler. So when you runlucky some.task
, the OptionParser really doesn't know what that means. Then passing any flags to it, the parser tries to pull those in.We can hack around this by using
--
to tell the parser to stop parsing, but I think using a built tool might give us more options and flexibility. Athena console comes with tab complletion, and that alone might be worth adding it in. Will need to investigate if it'll be a viable option with how LuckyTask tasks work.The text was updated successfully, but these errors were encountered: