neos / flow-development-collection

The unified repository containing the Flow core packages, used for Flow development.
https://flow.neos.io/
MIT License
137 stars 188 forks source link

Flow should provide a machine readable list of all available commands #2811

Open Sebobo opened 2 years ago

Sebobo commented 2 years ago

This would make implementing autocompletion for various shells much easier. Currently the output of flow help needs to be parsed.

There should be an additional command that would output all commands and their arguments, description, etc. as JSON or other format. I'm not sure what the best practice for this is.

Example: ZSH autocomplete by @skurfuerst

I started implementing an autocompletion for https://fig.io and it's a bit cumbersome to parse all commands and create a nice output.

fig-flow
Sebobo commented 2 years ago

I would implement this, but would love to have some input by people who might already have put some thought into it.

mhsdesign commented 2 years ago

i know also of: https://github.com/webandco/neos-dev-tools#flow-commandline-bash-autocomplete

mhsdesign commented 2 years ago

I would be in favor for deep nested and structured json, which holds all informations for each command and argument.

Maybe we can solve somehow that the api responses faster no matter the state of the cache (by using pure php?) ... currently using the zsh plugin will take some time on empty cache....