Task #49016

TYPO3 Flow Base Distribution - Task #51183: CLI improvements

Use Symfony.Console for Output + Interaction in CommandController

Added by Marc Neuhaus over 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-06-11
Due date:
% Done:

100%

Estimated time:
Sprint:
PHP Version:
Has patch:
No
Complexity:

Description

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.

Also available in: Atom PDF