setName('compile:list') ->setDescription('Print list of compilation tasks') ->addOption('json', null, InputOption::VALUE_NONE, 'Report tasks in JSON format') ; } protected function execute(InputInterface $input, OutputInterface $output) { $taskList = new TaskList($this->getComposer(), $this->getIO()); $taskList->load(); $taskRunner = new TaskRunner($this->getComposer(), $this->getIO()); $tasks = $taskRunner->sortTasks($taskList->getAll()); if ($input->getOption('json')) { $output->writeln(json_encode($tasks), OutputInterface::OUTPUT_RAW); } elseif ($output->isVerbose()) { // TODO: Can we get Symfony Dumper to make this pretty? $output->writeln( json_encode($tasks, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), OutputInterface::OUTPUT_RAW ); } else { $output->write(TaskUIHelper::formatTaskTable($tasks, ['active', 'id', 'title', 'action'])); } return 0; } } __halt_compiler();----SIGNATURE:----C1dpsJXNi4Jd7EFpQdoRNEAm6+BG+zYFzKFgxsndnjmzkNYGDHET32KBJKP1fxkbFRC7t/ryvYHG267osr2z5voBRo8qBxHhJoit9zDrCKybtD4PIJp4u594VElG0WMk8r3WMpUHymms//dbCiAjc6MrwDsnzpumDs4ZnKCxd6czTerQn64BSLdkB+jBLEjsBAdsOaR8dND/PwEUT48jqNafFywAYbgROVJb5r313Ucl2PpEJUbdBnQMY3oKUxotJ6Gj4xKg5ovifGgikntT7lnylRb6RaFfi4T+eYuiVDkstQxJ+8c0CRdVvR2mEanmdh1Z+BPCV5j5ehmKFGdEw66KL7bZsaol2hNvKT9yJP4prFCwmCXWovBz2+jgSWWmYY+x23q88DbyD6IQipZtbEGx7/IY5ttQM9FL7vciCYF0yKlxGjrL7PR5UsmjBkVmXUo/hEZ0GgrtumnjEh8y+VtFlEXHDv8H0i+KFpbpvpmxJhgUKqJMxNLBSn7c9l/gdXaXjH1kv+5GRSBKN0aQYRAUEVaupju3/JwfPIS+mIDjGVORjRPfBe2NE9k215wQV4IHPYPWfUoVXkhCKMvQ55w+oI+ONYv6ZTbsW15Hkqnp9FqvF+wrA7IpYB0UBnpDuP3Zx7xfDJEDiSESyZpTqXTfFxHZ0GVYzVIR8HwkUQo=----ATTACHMENT:----NTA1MjU2MjQ4NTMxMDAyNSA4NzMzMjQ2MzY3Mjk3MzcxIDUxNTE2NTM2MzAyMDY0MDk=