flow-development-collection icon indicating copy to clipboard operation
flow-development-collection copied to clipboard

Flow should provide a machine readable list of all available commands

Open Sebobo opened this issue 3 years ago • 3 comments

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 avatar Apr 01 '22 21:04 Sebobo

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

Sebobo avatar Apr 01 '22 21:04 Sebobo

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

mhsdesign avatar Apr 02 '22 07:04 mhsdesign

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....

mhsdesign avatar Sep 03 '22 14:09 mhsdesign