Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | protected function execute(InputInterface $input, OutputInterface $output) |
||
23 | { |
||
24 | $planner = $this->getTaskPlanner($input->getArgument('path')); |
||
25 | $dueTasks = $planner->getDueTasks(); |
||
26 | |||
27 | $planner->flagForTesting(); |
||
28 | $commands = $planner->runDueTasks(); |
||
29 | |||
30 | $this->listTasks($output, $dueTasks); |
||
31 | $output->writeln("\nAnd the commands run are: "); |
||
32 | |||
33 | /** @var array $commands */ |
||
34 | foreach ($commands as $command) { |
||
35 | $output->writeln($command); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |
Let’s take a look at an example: