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

Removing Commands from Completion Generator #102

Open
paco3346 opened this issue May 4, 2017 · 3 comments
Open

Removing Commands from Completion Generator #102

paco3346 opened this issue May 4, 2017 · 3 comments

Comments

@paco3346
Copy link
Contributor

paco3346 commented May 4, 2017

Is there a way make commands not show up in the shell completion scripts?

@c9s
Copy link
Owner

c9s commented May 4, 2017

There is a hidden property in the command class. I think we can use that flag to update the completion generator

@paco3346
Copy link
Contributor Author

paco3346 commented May 4, 2017

I've done some poking around without much luck. I noticed the hidden property you're talking about but it's really only ever used by the aggregate() method on the CommandBase class.

In the generateCommandCompletionRecursively() method of BashGenerator I tried skipping any commands (such as what's in the dev group) but they're still autocompleting. After doing this my completion script is definitely missing commands such as compile and archive but yet they're still autocompleting.

There's nothing that happens real time for auto completion, is there? As in does the script inspect the .phar file on the fly to determine available commands?

@c9s
Copy link
Owner

c9s commented May 5, 2017 via email

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

No branches or pull requests

2 participants