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
I've never really looked into it in earnest, but it feels like it could be cool to generate a bash autocomplete file from a supplied com.monovore.decline.Command. This functionality feels like it would be a separate module though.
The text was updated successfully, but these errors were encountered:
Indeed! I think this would be a pretty natural fit.
I imagine this could mostly be done in a seperate module, like you suggest, just by inspecting the command. The one thing that might be tricky is allowing tab-completion for values... given a Opts.option[Path](...) it really feels like you should be able to tab-complete files, but we don't hang on to enough information to thread that through to a bash autocomplete file. One path might be to: figure out a small ADT to represent completions, add a field to the Opts types that have arguments, and add another method to Argument to set a default value.
I'm unlikely to implement this myself anytime soon, but I'd be happy to review contributions of this shape if you / someone else is interested!
I've never really looked into it in earnest, but it feels like it could be cool to generate a bash autocomplete file from a supplied
com.monovore.decline.Command
. This functionality feels like it would be a separate module though.The text was updated successfully, but these errors were encountered: