TYPO3 Flow Base Distribution - Task #51183: CLI improvements
Use Symfony.Console for Output + Interaction in CommandController
I think we should make use of the Smfony.Console component for output and interaction. It offers anything someone writing a command might wish for:
- easy output coloring through "<error>Warning!</error>"
- TableHelper to render a formatted table
- ProgressHelper to render and advance and progress bar
- DialogHelper with numerous types of questions like: select, ask, confirm, askHidden, etc
I already tested to use it inside an ActionController yesterday, which worked quite easily.
Another thing i testet yesterday was, to ask the user for missing arguments instead of failing with "Required argument "foo" is not set.":
./flow kickstart:model Please specify the required argument "packageKey": My.Package Please specify the required argument "modelName":
This change would add a dependency for Symfony/Console, but in most cases it is there already because Doctrine depends on it.