mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
change another table printer
This commit is contained in:
@@ -16,7 +16,7 @@ use Symfony\Component\Console\Input\InputOption;
|
|||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use ZM\Config\ZMConfig;
|
use ZM\Config\ZMConfig;
|
||||||
use ZM\Console\Console;
|
use ZM\Console\Console;
|
||||||
use ZM\Framework;
|
use ZM\Logger\TablePrinter;
|
||||||
use ZM\Store\ZMAtomic;
|
use ZM\Store\ZMAtomic;
|
||||||
use ZM\Utils\DataProvider;
|
use ZM\Utils\DataProvider;
|
||||||
use ZM\Utils\HttpUtil;
|
use ZM\Utils\HttpUtil;
|
||||||
@@ -55,7 +55,8 @@ class PureHttpCommand extends Command
|
|||||||
'web_root' => realpath($input->getArgument('dir') ?? '.'),
|
'web_root' => realpath($input->getArgument('dir') ?? '.'),
|
||||||
'index' => implode(',', $index),
|
'index' => implode(',', $index),
|
||||||
];
|
];
|
||||||
Framework::printProps($out, $tty_width);
|
$printer = new TablePrinter($out);
|
||||||
|
$printer->printAll();
|
||||||
$server = new Server($host, $port);
|
$server = new Server($host, $port);
|
||||||
$server->set(ZMConfig::get('global', 'swoole'));
|
$server->set(ZMConfig::get('global', 'swoole'));
|
||||||
Console::init(2, $server);
|
Console::init(2, $server);
|
||||||
|
|||||||
Reference in New Issue
Block a user