Skip to content
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

Permit autocomplete options #295

Merged
merged 2 commits into from
Feb 5, 2018

Conversation

AdrieanKhisbe
Copy link
Contributor

So far user defined autocomplete function will not be called when trying to complete the arguments of a given options.

In case of allowUnknownOptions, it would be useful that the autocomplete function takes care of the flags completion.

This is the need I have for building vorpal-shell to have in cli completion of options.

Maybe other design option can be considered such as a property handlesOption in the autocomplete option along with the function data. I'm open to that :)

@milesj milesj merged commit 2073ad9 into dthree:master Feb 5, 2018
@AdrieanKhisbe
Copy link
Contributor Author

Great @milesj ! Thanks à lot !

Do you think it can be shipped on a minor or patch version ?
Or should i wait thé major 2.0 to Land? :)

@milesj
Copy link
Contributor

milesj commented Feb 8, 2018

Not sure. I don't have access to publish.

@AdrieanKhisbe
Copy link
Contributor Author

Ah ok 😕
Do you think you could do something @dthree ? 😃

@AdrieanKhisbe AdrieanKhisbe deleted the permit-autocomplete-options branch February 10, 2018 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants