stecman / symfony-console-completion

Automatic tab-key completion for Symfony console application options, arguments and parameters
MIT License
420 stars 26 forks source link

Disable completion for hidden commands #74

Closed Programie closed 7 years ago

Programie commented 7 years ago

I'm building a command line application with various commands. Some commands are hidden from the command list.

I would expect that my application does not complete commands which are hidden. Currently only the _complete command won't be completed.

aik099 commented 7 years ago

Completely agree. I don't think that _complete command is marked as hidden currently, because it's shown everywhere in docs.

Please send a PR with a change:

  1. marking _complete command as hidden
  2. ignoring hidden commands during auto-complete
  3. updated test suite to cover that

For the reference: http://symfony.com/doc/current/console/hide_commands.html