setName('complete') ->setDescription($this->trans('commands.complete.description')); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $commands = array_keys($this->getApplication()->all()); asort($commands); $output->writeln($commands); return 0; } }