Closed rquadling closed 6 years ago
I made a PR to do this https://github.com/bamarni/symfony-console-autocomplete/pull/34. It'll keep the descriptions the same format, zsh format supports them
The PR was accepted and merged. Now waiting on a release. Hopefully @bamarni will pick this up soon.
Currently, the autocomplete generator runs my app over 60 times (once for the list of commands, and then once per command).
Capturing what is actually run ...
But all that data is available via 1 command:
Here's an edited snippet of the output (matching the list of calls above) ...
The only minor difference is that the descriptions are still with their styling. (e.g.
<fire>[ DEVELOPMENT ONLY ]</fire>
)But (at least for bash), the descriptions aren't used anywhere in
$(brew --prefix)/etc/bash_completion.d/wu
, so maybe that's a non-issue.If this is also true for the other shells, then calling the application once rather than n+1 times results in a nicer experience and means keeping the autocomplete uptodate isn't as long as it currently is.