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

a couple minor tweaks to the command-specific completion logic in #185 #187

Merged
merged 3 commits into from
Jun 24, 2015

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Jun 23, 2015

I've made a couple minor tweaks to the command-specific-completion logic in #185

we now always look for the get-yargs-completions option, so yargs.completion() only needs to be called when registering a top-level command to generate a completion script.

@bcoe
Copy link
Member Author

bcoe commented Jun 23, 2015

@tschaub mind giving this branch a spin with your most up-to-date bash completion script? I think this solves my complaint about completion being recommended multiple times.

If things are looking good, we can cut a release candidate tomorrow yargs@next.

@tschaub
Copy link
Contributor

tschaub commented Jun 23, 2015

Nice solution @bcoe. This is working well for me.

I've got a follow up question regarding hidden commands, but I'll carry on with that in a fresh issue (see #188).

@bcoe
Copy link
Member Author

bcoe commented Jun 23, 2015

@tschaub, cool I'll get a release out tonight.

bcoe added a commit that referenced this pull request Jun 24, 2015
a couple minor tweaks to the command-specific completion logic in #185
@bcoe bcoe merged commit 8a2908b into master Jun 24, 2015
@bcoe bcoe deleted the command-completion branch June 24, 2015 04:02
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