优化curd临时生成对应到正式目录,方便IDE可直接定位打开

This commit is contained in:
augushong
2024-10-22 15:22:59 +08:00
parent ff8f2080d2
commit b3684b7521

View File

@@ -131,7 +131,13 @@ class CurdBase extends Command
}
$output->info('>>>>>>>>>>>>>>>');
foreach ($result as $vo) {
$output->info($vo);
$output_endfix = '';
if ($input->hasOption('runtime')) {
$base_path = str_replace($runtime_path, '', $vo);
$root_path = App::getRootPath();
$output_endfix = ' >> ' . $root_path . $base_path;
}
$output->info($vo . $output_endfix);
}
} catch (\Exception $e) {
$output->error($e->getMessage());