| @@ 12-27 (lines=16) @@ | ||
| 9 | * Class RunDueCommand |
|
| 10 | * @package Mistletoe\Application\Commands |
|
| 11 | */ |
|
| 12 | class RunAllCommand extends AbstractCommand |
|
| 13 | { |
|
| 14 | protected function configure() |
|
| 15 | { |
|
| 16 | $this |
|
| 17 | ->setName('run:all') |
|
| 18 | ->setDescription('Run all registered tasks') |
|
| 19 | ->addArgument('path', InputArgument::OPTIONAL, "Where is your Mistletoe Project File?"); |
|
| 20 | } |
|
| 21 | ||
| 22 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 23 | { |
|
| 24 | $planner = $this->getTaskPlanner($input->getArgument('path')); |
|
| 25 | $planner->runAllTasks(); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| @@ 12-27 (lines=16) @@ | ||
| 9 | * Class RunDueCommand |
|
| 10 | * @package Mistletoe\Application\Commands |
|
| 11 | */ |
|
| 12 | class RunDueCommand extends AbstractCommand |
|
| 13 | { |
|
| 14 | protected function configure() |
|
| 15 | { |
|
| 16 | $this |
|
| 17 | ->setName('run') |
|
| 18 | ->setDescription('Run all due tasks') |
|
| 19 | ->addArgument('path', InputArgument::OPTIONAL, "Where is your Mistletoe Project File?"); |
|
| 20 | } |
|
| 21 | ||
| 22 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 23 | { |
|
| 24 | $planner = $this->getTaskPlanner($input->getArgument('path')); |
|
| 25 | $planner->runDueTasks(); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||