Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Bash completion #71

Open
hjwylde opened this issue Dec 8, 2015 · 2 comments
Open

Bash completion #71

hjwylde opened this issue Dec 8, 2015 · 2 comments

Comments

@hjwylde
Copy link
Owner

hjwylde commented Dec 8, 2015

https://github.com/pcapriotti/optparse-applicative/wiki/Bash-Completion

@hjwylde
Copy link
Owner Author

hjwylde commented Dec 10, 2015

Spent a while on this one... Best bet for --operate-on ref completion was git rev-parse --symbolic --branches --remotes --tags. Unfortunately auto complete was not easy to do using optparse-applicative. It fails to auto complete for git's special macro, i.e., it won't auto complete on git fmt <TAB>.

Further, I couldn't get the completer working properly with prefixes for --operate-on. It seems that it didn't handle forward slashes well inside the options. It kept trying to auto complete origin/ straight to the final element, e.g., origin/0.1.0 rather than origin/release/0.1.0.

@hjwylde
Copy link
Owner Author

hjwylde commented Dec 10, 2015

I'll merge what I have, but leave this issue open to try find a new way to include Bash completion.

@hjwylde hjwylde removed their assignment May 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant