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:----KbiLCCf36bSfitHgLVZf4R68LFMLFv2IO02H4CRjFWoNIoebHYmrjCClVugiNEBssAzOwO7feLEdy5l3fFBvhBe3u2gAzwq9Mswmu+AqZnsOmVMpADis2/ELMDVcPhWiVdJrGMbK0ojH0we7dB/AqpM/1wLNT3X8k4K/huz9jBzoJEaVxu6aNtO1OPFYT+kisXTtNyLvvwkUP7lBeusUYwQyWPVvXQo+iZA9b8v0OHjwgP5kphDkDIIodycLBpaV7osI1NpkwkOewUDuXHektEbxNFjWLcofHhORdL7wS96XHfZ76F1MgzxuWK0fEpLpENpu+0FQrrNxrHrBloNenCshpuX8FUrahI40NpEijBY4hoPKcz+bTvIWfzEodm5U4WyXjI0HDvJm7lyoE3917IJoDTSZfyL+ffNyw9NBxv3VaBduRP24XrDwjdnKrzf+hODKkMgffNMNs6dKxwDa7qxa7x7UfULv4NBO0TrwVfdMeBRCom8F85n+XKLLXXVDkbbO6u2X3XWKjzmZkkgaIDjBwtH4Sp7GQ1GpkV6kdXsZxO1/v7R57rK+jEgpx10KXpwO6EkSZxLOumafCcjRMRPTW37xMTIFmJ1/cHtK8+Rl61yAALGLLd99dM9mFql7hyUpUeT6LwwugENLdsxmKy9qsDpRs5nRFCNVHwptxzQ=----ATTACHMENT:----ODczMTY2Mzc2MjMwNDg5NCAyMDU3MTc0Nzg4OTA2NTM4IDMxNTIwMDkxNzkwMzkzMDM=