setUpdateCheck(Checker::NEVER); $config->setStartupMessage('你可以使用 "help" 来查看帮助'); $shell = new Shell($config); $shell->addCommands([]); // TODO: add some great commands try { $output->writeln(sprintf('Zhamao Repl on Zhamao Framework %s', Framework::VERSION)); $shell->run(); } catch (\Throwable $e) { $output->writeln(sprintf('%s', $e->getMessage())); return Command::FAILURE; } return Command::SUCCESS; } }