mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
add list title
This commit is contained in:
@@ -32,6 +32,7 @@ class PluginListCommand extends PluginCommand
|
|||||||
}
|
}
|
||||||
$table = new Table($this->output);
|
$table = new Table($this->output);
|
||||||
$table->setColumnMaxWidth(2, 27);
|
$table->setColumnMaxWidth(2, 27);
|
||||||
|
$table->setHeaderTitle('插件列表');
|
||||||
$table->setHeaders(['名称', '版本', '简介', '类型']);
|
$table->setHeaders(['名称', '版本', '简介', '类型']);
|
||||||
foreach ($all as $k => $v) {
|
foreach ($all as $k => $v) {
|
||||||
$table->addRow([$k, $v->getVersion(), $v->getDescription(), $this->getTypeDisplayName($v->getPluginType())]);
|
$table->addRow([$k, $v->getVersion(), $v->getDescription(), $this->getTypeDisplayName($v->getPluginType())]);
|
||||||
|
|||||||
Reference in New Issue
Block a user