You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
713 B
30 lines
713 B
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\command;
|
|
|
|
use app\job\transfer\schedule\CourseScheduleJob;
|
|
use app\job\transfer\schedule\ResourceAutoAllocation;
|
|
use think\console\Command;
|
|
use think\console\Input;
|
|
use think\console\input\Argument;
|
|
use think\console\input\Option;
|
|
use think\console\Output;
|
|
|
|
class TestCommand extends Command
|
|
{
|
|
protected function configure()
|
|
{
|
|
// 指令配置
|
|
$this->setName('testcommand')
|
|
->setDescription('the testcommand command');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
{
|
|
// 指令输出
|
|
$obj = new CourseScheduleJob();
|
|
$obj->doJob();
|
|
$output->writeln('testcommand');
|
|
}
|
|
}
|
|
|