add list title

This commit is contained in:
crazywhalecc 2023-02-28 23:30:25 +08:00 committed by Jerry
parent 7f26dd6edd
commit d2836de241

View File

@ -32,6 +32,7 @@ class PluginListCommand extends PluginCommand
}
$table = new Table($this->output);
$table->setColumnMaxWidth(2, 27);
$table->setHeaderTitle('插件列表');
$table->setHeaders(['名称', '版本', '简介', '类型']);
foreach ($all as $k => $v) {
$table->addRow([$k, $v->getVersion(), $v->getDescription(), $this->getTypeDisplayName($v->getPluginType())]);