-
Notifications
You must be signed in to change notification settings - Fork 187
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
feature request: add completions for interface names #302
Comments
I'd like to give this a shot |
Here is my first pass at it in patch format. |
Thanks @wwalker , the sample you provided definitely helps me understand how completions work. I believe it's only doing completions for bash, yes? While doing some research on this I've came across clap_complete, which this repo appears to be using. If I understand the situation correctly, if I implement this behavior with clap_complete, clap should generate all the relevant shell files without us manually having to do work for each one. That said, I'm not sure how I will actually implement this yet :) |
It seems clap_complete doesn't support dynamic completions yet, huh. It's being tracked here: Does it make sense (from a code cleanliness point) to add these completions manually? Or should we wait for clap_complete to implement this feature? |
Since it has been 6 years since clap-rs/clap#1232 was opened, with no actual attempt to implement it (just opening other tickets), I would argue against waiting on them. |
Possibly open a new github repo where you run |
When one gets here, it would be nice to include the known
innernet
interfaces to the results of the completion:I.e.:
The text was updated successfully, but these errors were encountered: