Enhance display
llaville opened this issue · 6 comments
llaville 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 ?
overtrue commented
Wow it's a great idea! Thank you for the contribution.
llaville commented
llaville commented
overtrue commented
It's beautiful!
llaville 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)));
}
}
llaville commented
Available in latest releases 3.3.1, 4.4.0, 5.4.1 and 6.0.3