setName('catch:cache') ->setDescription('cache routes, views, services of module'); } protected function execute(Input $input, Output $output) { CatchAdmin::cacheRoutes(); CatchAdmin::cacheServices(); CatchAdmin::cacheViews(); // 指令输出 $output->info('succeed!'); } }