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

[Feature] Autocomplete argument and option names in commands #454

Closed
stof opened this issue Mar 10, 2015 · 3 comments
Closed

[Feature] Autocomplete argument and option names in commands #454

stof opened this issue Mar 10, 2015 · 3 comments

Comments

@stof
Copy link
Contributor

stof commented Mar 10, 2015

It would be great to autocomplete argument and option names in $input->getArgument('...') and $input->getOption('...') inside columns, by reading the command definition to know them.

@stof
Copy link
Contributor Author

stof commented Apr 3, 2015

2 things to check for your implementation (I cannot tell whether it is supported just by reading the code):

  • does setDefinition() properly reset arguments/options which might have been added earlier ?
  • does it work with inheritance when the parent code configuring some options and arguments gets called ?

@Haehnchen
Copy link
Owner

  • setDefinition() reset: its too complex code interpreting for this simple completion context
    • good catch on inheritance, used in some symfoy2 core commands

@Haehnchen
Copy link
Owner

parent implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants