3 namespace Drupal\{{ machine_name }}\Command;
5 use Drupal\Console\Command\Shared\{{ command_trait }};
6 use Drupal\Console\Style\DrupalStyle;
7 use Symfony\Component\Console\Command\Command;
8 use Symfony\Component\Console\Input\InputInterface;
9 use Symfony\Component\Console\Output\OutputInterface;
12 * Implements {{ command_name }} command.
14 class {{ class }} extends Command {
16 use {{ command_trait }};
21 protected function configure() {
23 ->setName('{{ command_name }}')
24 ->setDescription('{{ description }}');
30 protected function execute(InputInterface $input, OutputInterface $output) {
31 $io = new DrupalStyle($input, $output);
33 $io->info('It works!');