To be call after execute the command.

@param  Input $input
@param  Output $output
@return boolean|string
428310
public function handle(Input $input, Output $output)
    {
        $command = $input->getArgument('_command');

        try {
            if (!preg_match("/^[A-Z]\w*$/", $command)) throw new \Exception("Error: Invalid command name. It must be Characters and PascalCase.", 1);
            if (file_exists(app_path("Commands/{$command}.php"))) throw new \Exception("Error: The command name is already created.", 1);

            $output->writeln($this->makeTemplate($command) ?
                            "Successfully created." :
                            "File not created. Check the file path.");
        } catch (\Exception $e) {
            $output->writeln($e->getMessage());
        }
    }
1225427
protected function execute(InputInterface $input, OutputInterface $output) : int
    {
        return !is_null($this->exitCode) ? $this->exitCode : 0;
    }
1131188
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('Looking for updates...');

        $manager         = $this->createManager($output);
        $version         = $input->getArgument('version')
            ? $input->getArgument('version')
            : $this->getApplication()->getVersion();
        $allowMajor      = $input->getOption('major');
        $allowPreRelease = $input->getOption('pre');

        if (strpos($version, 'v') === 0) {
            // strip v tag from phar version for self-update
            $version = str_replace('v', '', $version);
        }

        $this->updateCurrentVersion($manager, $version, $allowMajor, $allowPreRelease, $output);

        return 0;
    }
99220
protected function execute(Input $input, Output $output)
    {
        $command = $this->container->get($this->serviceId);

        return $command($input, $output);
    }
275388
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->startCommand($output, false);
        $project = $this->createProjectByInput($input);
        $project->sort();
        $project->save();

        $this
            ->printMessage(
                $output,
                'Trans Server',
                'Your translations have been sorted successfuly'
            );

        $this->finishCommand($output);
    }
1297387
protected function execute($input, $output)
    {
        $output->aList([
            'support coroutine?' => Helper::isSupportCoroutine() ? 'Y' : 'N',
            'open coroutine running?' => self::isCoroutine() ? 'Y' : 'N',
            'running in coroutine?' => Helper::inCoroutine() ? 'Y' : 'N',
        ], 'some information');
    }
715205
public function handle(Input $input, Output $output)
    {
        $path = base_path('.env');
        $old_key = config('app.key');

        $helper = $this->getHelper('question');

        try {
            if (!file_exists($path)) throw new \Exception(".env file is not exist.", 1);

            $is_create_new_app_key = true;
            if (!empty($old_key))
            {
                $is_create_new_app_key = $helper->ask($input, $output, $this->question);
            }

            if ($is_create_new_app_key)
            {
                $new_key = $this->generateKey();
                file_put_contents($path, str_replace("APP_KEY={$old_key}", "APP_KEY=" . $new_key, file_get_contents($path)));
                $output->writeln("APP_KEY is now " . $new_key);
            }
        } catch (\Exception $e) {
            $output->writeln($e->getMessage());
        }
    }
239355
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->requireConfig();

        $output->writeln('Starting <fg=blue>Magallanes</>');
        $output->writeln('');

        $output->writeln(sprintf('<comment>%s</comment>', var_export($this->runtime->getConfiguration(), true)));

        $output->writeln('');
        $output->writeln('Finished <fg=blue>Magallanes</>');

        return 0;
    }
869287
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->startCommand($output);
        $plugins = $this
            ->pluginRepository
            ->findAll();

        /**
         * @var Plugin $plugin
         */
        foreach ($plugins as $plugin) {
            $this->printMessage(
                $output,
                'Plugin',
                $plugin->getNamespace() . ' - [Hash : ' . $plugin->getHash() . ']'
            );
        }

        $this->finishCommand($output);
    }
496129
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $created = $this->scaffold(
            'ajax',
            [
                'CLASSNAME' => $input->getArgument('name'),
            ],
            [
                'ACTION' => $input->getOption('action'),
            ]
        );

        if ($created === true) {
            $output->writeln("<info>{$input->getArgument('name')} was created successfully</info>");
        } else {
            $output->writeln("<error>{$input->getArgument('name')} could not be created</error>");
        }
    }
319055
public function run(InputInterface $input = null, OutputInterface $output = null)
    {
        $this->setAutoExit(false);
        $this->getContainer()->boot();
        $this->setDispatcher($this->getContainer()['dispatcher']);
        $this->getContainer()['dispatcher']->dispatch(ConsoleEvents::INIT, new ConsoleEvent($this));
        $this->getContainer()->flush();
        $exitCode = parent::run($input, $output);
        $this->getContainer()->terminate(new Request(), new Response());

        return $exitCode;
    }
419662
public function execute(InputInterface $input, OutputInterface $output)
    {
        $argument = $input->getArgument($this->argumentName);
        $path = $this->basePath.'/'.$argument.'.php';

        if ($input->hasOption('restful') && $input->getOption('restful') == true) {
            $this->restful = true;
        } else {
            $this->restful = false;
        }

        $response = $this->runFileGeneratorCommand($path, $argument);

        if ($response === true) {
            $this->type ?: $this->type = 'Command';
            $output->writeln(ucfirst($this->type).' created successfully');

            return;
        }
        $output->writeln($response);
    }
53704
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->before($input, $output);
        $this->runTransient($input, $output);
        $this->after($input, $output);
    }
1372739
protected function waitForUserInput(InputInterface $input, OutputInterface $output)
    {
        $helper   = $this->getHelper('question');
        $question = new Question('<info>You > </info>');

        $message = $helper->ask($input, $output, $question);

        $this->listenForConsoleCommands($input, $output, $message);

        $this->getBotResponse($input, $output, $message);
    }
305470
public function execute(InputInterface $input, OutputInterface $output)
    {
        $host = $input->getArgument('host');
        $ip = $input->getArgument('ip');

        $this->hostFile->add($host, $ip);

        $output->writeLn("\"$ip $host\" was added to file.");
    }
632971
private function setInputAndOutput(InputInterface $input, OutputInterface $output)
    {
        if (is_null($this->assistant)) {
            $this->assistant = new CommandAssistant();
            $this->assistant->setQuestionHelper($this->getQuestionHelper());
            $this->assistant->setKernel($this->getApplication()->getKernel());
        }
        $this->assistant->setOutput($output);
        $this->assistant->setInput($input);
    }
1363351
protected function execute(InputInterface $input, OutputInterface $output)
  {
    $controller = $input->getArgument('name');
    $model = $input->getOption('model');

    if ($input->getOption('resource') == "true") $this->resource = true;

    if ($model == null || $model == '') {
      if ($this->add($controller, 'controller') == true) {
        return $output->writeln('<info>Controller "' . $controller . '" has been successfully created.</info>');
      }

      return $output->writeln('Controller "' . $controller . '" already exists.');
    }

    if ($this->add($controller, 'controller', true)) {
      return $output->writeln('Controller "' . $controller . '" already exists.');
    } else if ($this->add($model, 'model', true)) {
      return $output->writeln('Model "' . $model . '" or Group "' . $model . 'Group" already exists.');
    }
    else {
      $this->add($controller, 'controller');
      $this->add($model, 'model');
      return $output->writeln('<info>Controller "' . $controller . '" has been successfully created with Model "' . $model . '".</info>');
    }
  }