Enhance display
llaville opened this issue · comments
Laurent Laville commented
Hello @overtrue
I've in mind to propose soon (probably tomorrow) a new version that will :
- avoid hard-coded values in console input / options
- enhance display with PHP runtime / config file used and options like that
Are you agree ?
安正超 commented
Wow it's a great idea! Thank you for the contribution.
Laurent Laville commented
Laurent Laville commented
安正超 commented
It's beautiful!
Laurent Laville commented
Very few line of code
if ($verbosity >= OutputInterface::VERBOSITY_DEBUG) {
$output->writeln('Options :');
foreach ($options as $name => $value) {
$output->writeln(\sprintf("<comment>%13s</comment> > <info>%s</info>", $name, \json_encode($value, \JSON_UNESCAPED_SLASHES)));
}
}
Laurent Laville commented
Available in latest releases 3.3.1, 4.4.0, 5.4.1 and 6.0.3