Skip to content

Commit 99b49e2

Browse files
author
zhaoxiang
committed
added 新增自动构建脚本
1 parent c2ddf0e commit 99b49e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/command/AutoBuildFile.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@ protected function configure() {
1414
$this->setName('apiadmin:autoBuild')->setDescription('ApiAdmin自动构建文件');
1515
}
1616

17+
/**
18+
* 自动构建
19+
* @param Input $input
20+
* @param Output $output
21+
* @throws \think\db\exception\DataNotFoundException
22+
* @throws \think\db\exception\DbException
23+
* @throws \think\db\exception\ModelNotFoundException
24+
* @author zhaoxiang <zhaoxiang051405@gmail.com>
25+
*/
1726
protected function execute(Input $input, Output $output): void {
1827
$config = $this->parseConfig($output);
1928
(new AutoBuild())->run($config);
29+
30+
$output->info('Build files successful');
2031
}
2132

2233
/**

0 commit comments

Comments
 (0)