setName('config-list')
->setDescription('Show runtime-configurable PsySH settings and their current values.');
}
public function asText(): string
{
return \implode("\n", [
'Usage:',
' config list',
'',
'Help:',
' Show runtime-configurable PsySH settings and their current values.',
]);
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$table = $this->getTable($output);
foreach ($this->getOptions() as $option) {
$table->addRow([
$this->formatOptionName($option['name']),
$this->formatValue($option['getter']()),
]);
}
$table->render();
return 0;
}
}