Skip to content

Investigate using Athena Console for CLI #818

@jwoertink

Description

@jwoertink

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, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions