mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
added 新增自动构建脚本
This commit is contained in:
parent
c2ddf0ebb5
commit
99b49e2d7b
@ -14,9 +14,20 @@ class AutoBuildFile extends Command {
|
||||
$this->setName('apiadmin:autoBuild')->setDescription('ApiAdmin自动构建文件');
|
||||
}
|
||||
|
||||
/**
|
||||
* 自动构建
|
||||
* @param Input $input
|
||||
* @param Output $output
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
protected function execute(Input $input, Output $output): void {
|
||||
$config = $this->parseConfig($output);
|
||||
(new AutoBuild())->run($config);
|
||||
|
||||
$output->info('Build files successful');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user