-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell completions #10
Comments
I have been looking at how The only thing that I'm not sure about is how it handles (if at all) the generation and installation of the completion script. My plan is to implement a combinator that adds two
The author of a program using Does that look like a sensible plan? Any other suggestions? |
Sounds good. Not sure why you'd need to update the script with the parser though, if it's just calling to |
Yeah, you're right. The script would actually only depend on the name of the program, so maybe there's no need for the |
That flag is still nice because you can have a bashrc like, |
Bash completion is done. There are still a few missing details, but the basic functionality is there. Full details here. |
Cool stuff! Would it be difficult to make it possible to pass in things to be accessible from a I suppose in the worst case I could make a global IORef, but would be nice to be able to avoid such hacks. |
I'm not sure I understand what the problem is exactly. Assuming your initialization code comes after If you're running the initialization code before |
Uh, of course. Not sure what I was thinking there. ☺ |
You said it was planned, so why not have an issue filed for it? ☺
The
cmdargs
package supports Bash and ZSH completions and seems to do so by providing different "formats" to render help pages in: System.Console.CmdArgs.Explicit / Displaying helpThe text was updated successfully, but these errors were encountered: