Check whether any CSS framework should be installed

@param  InputInterface  $input
@param  OutputInterface $output
@return string
322395
protected function shouldInstallCssFramework( InputInterface $input, OutputInterface $output ) {
		$helper = $this->getHelper( 'question' );

		$question = new ChoiceQuestion(
			'Please select a CSS framework:',
			['None', 'Normalize.css', 'Bootstrap', 'Bulma', 'Foundation', 'Tachyons', 'Tailwind CSS', 'Spectre.css'],
			0
		);

		$css_framework = $helper->ask( $input, $output, $question );
		$output->writeln( '' );

		return $css_framework;
	}
622603
protected function shouldProceedWithInstall( InputInterface $input, OutputInterface $output, $config ) {
		$helper = $this->getHelper( 'question' );

		$output->writeln( 'Configuration:' );

		$output->writeln(
			str_pad( 'Clean composer.json: ', 25 )  .
			( $config['remove_composer_author_information'] ? '<info>Yes</info>' : '<comment>No</comment>' )
		);

		$output->writeln(
			str_pad( 'Install Carbon Fields: ', 25 )  .
			( $config['install_carbon_fields'] ? '<info>Yes</info>' : '<comment>No</comment>' )
		);

		$output->writeln(
			str_pad( 'Install CSS Framework: ', 25 ) .
			'<info>' . $config['install_css_framework'] . '</info>'
		);

		$output->writeln(
			str_pad( 'Install Font Awesome: ', 25 ) .
			( $config['install_font_awesome'] ? '<info>Yes</info>' : '<comment>No</comment>' )
		);

		$output->writeln( '' );

		$question = new ConfirmationQuestion(
			'Proceed with installation? <info>[Y/n]</info> ',
			true
		);

		$proceed = $helper->ask( $input, $output, $question );
		$output->writeln( '' );

		return $proceed;
	}
1135012
protected function execute(InputInterface $input, OutputInterface $output)
  {
    $this->io = new StratumStyle($input, $output);

    $command = $this->getApplication()->find('constants');
    $ret     = $command->execute($input, $output);
    if ($ret!=0) return $ret;

    $command = $this->getApplication()->find('loader');
    $ret     = $command->execute($input, $output);
    if ($ret!=0) return $ret;

    $command = $this->getApplication()->find('wrapper');
    $ret     = $command->execute($input, $output);

    $this->io->writeln('');

    return $ret;
  }
258715
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $config = $this->container['config'];
        $table = new Table($output);

        $table
            ->setRows([
                ['<b>Build status</b>'],
                [' Last build time', $this->formatLastBuildStatus()],
                [' Last source modified', $this->getSourceLastModifiedTime()->diffForHumans()],
                [''],
                ['<b>Sources</b>'],
                [' Directory', $this->formatDirectoryState($config['source.directory'])],
                [' Git repository', $this->getSourceRepo()],
                [''],
                ['<b>Builds</b>'],
                [' Output directory', $this->formatDirectoryState($config['build.directory'])],
                [' Pipeline', implode(" | ", $config['build.pipeline'])],
                [''],
                ['<b>Deployment</b>'],
                [' Pushes to', $this->getDeploymentRepo()],
                [''],
                ['<b>Gulp</b>'],
                [' Binary', $config['gulp.bin']],
                [' Gulpfile', $config['source.directory'] . DIRECTORY_SEPARATOR . $config['gulp.file']],
                [''],
                ['<b>Server</b>'],
                [' Relative URL', $config['serve.subdirectory']],
                [''],
                ['<b>Extensions</b>'],
                [' Bootstrap classes', $config['bootstrap'] ?: '(none)']
            ])
        ;

        $table->render();
    }
690883
protected function execute(InputInterface $input, OutputInterface $output)
  {
    $searchDir = Config::get('app.dir') . (substr(Config::get('view.compiled'), 0, 1) == DIRECTORY_SEPARATOR ? substr(Config::get('view.compiled'), 1) : Config::get('view.compiled')) . DIRECTORY_SEPARATOR;
    $extension = config('view.extension');
    $views     = glob($searchDir . '*@*' . $extension);

    if (count($views) < 1) {
      return $output->writeln('Nothing to remove');
    }

    foreach($views as $view) {
      try {
        Filesystem::delete($view);
      } catch (\Exception $e) {
        return $output->writeln($e->getMessage());
      }
    }

    return $output->writeln('<info>Cleared views</info>');
  }
584800
protected function execute(InputInterface $input, OutputInterface $output)
  {
    $results = Cache::flush();

    if ($results) return $output->writeln('<info>Cleared cache!</info>');

    return $output->writeln('Nothing to clear');
  }
694970
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $files = $input->getArgument('files');
        $fileSuffix = ' -f ' . implode(' -f ', $files);

        $command = sprintf('%s stop -d', $fileSuffix);
        $response = $this->getFacade()->runDockerCompose($command);

        if ($output->isVerbose()) {
            $output->writeln($response);
        }
    }
537063
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $themeName = $input->getArgument('theme');
        $kernel = $this->getContainer()->get('kernel');
        $dir = $kernel->locateResource('@' . $themeName);
        $namespace = $kernel
            ->getBundle($themeName)
            ->getNamespace()
        ;

        // @codeCoverageIgnoreStart
        if (null === $this->templateParser) {
            $this->templateParser = new TemplateParser($this->getContainer()->get('templating.locator'), $this->getContainer()->get('templating.name_parser'));
        }

        if (null === $this->templateGenerator) {
            $this->templateGenerator = new TemplateGenerator();
        }

        if (null === $this->slotsGenerator) {
            $this->slotsGenerator = new SlotsGenerator();
        }

        if (null === $this->extensionGenerator) {
            $this->extensionGenerator = new ExtensionGenerator();
        }
        // @codeCoverageIgnoreEnd

        $parsedTemplates = $this->templateParser->parse($dir . 'Resources/views/Theme', $kernel->getRootDir(), $themeName);
        $this->addOption('template-name', '', InputOption::VALUE_NONE, '');
        $templates = $parsedTemplates["templates"];
        foreach ($templates as $templateAttributes) {
            $templateFileName = $templateAttributes["name"];
            $templateName = basename($templateFileName, '.html.twig');
            $message = $this->templateGenerator->generateTemplate($dir . 'Resources/config/templates', $themeName, $templateName, $templateAttributes["slots"]);
            $output->writeln($message);
        }

        $message = $this->slotsGenerator->generateSlots($dir . 'Resources/config/slots', $themeName, $parsedTemplates["slots"]);
        $output->writeln($message);

        $message = $this->extensionGenerator->generateExtension($namespace, $dir . 'DependencyInjection', $themeName, $templates);
        $output->writeln($message);
    }
136572
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $start = microtime(true);
        $style = new SymfonyStyle($input, $output);
        $style->setDecorated(true);
        $style->title($this->description);

        $util = new Util();
        $source = $util->checkSource($input);
        if ($input->getOption('diff')) {
            $source = $util->getDiffSource();
        }

        $sources = $this->getAllFiles(explode(' ', $source));
        $exitCode = 0;
        $columnSize = 80;
        $errors = '';
        foreach ($sources as $line => $source) {
            if (($line % $columnSize) == 0) {
                $style->newLine();
            }

            $cmd = 'php -l '.$source;
            $process = new Process($cmd);
            $process->setTimeout(3600)->run(function ($type, $buffer) use ($style, &$errors) {
                if (strpos($buffer, 'No syntax errors') !== false || Process::ERR == $type) {
                    $style->write('.');

                    return;
                }

                $style->write('<error>E</>');
                $errors = $buffer;
            });

            if (!$exitCode) {
                $exitCode = $process->getExitCode();
            }
        }

        $end = microtime(true);
        $time = round($end - $start);

        $style->newLine();
        $output->write($errors);
        $style->newLine();

        $style->section('Results');
        $output->writeln('<info>Command: php -l FILE</>');
        $output->writeln('<info>Files: '.count($sources).'</>');
        $output->writeln('<info>Time: '.$time.' seconds</>');
        $style->newLine();

        return $exitCode;
    }
1231524
protected function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);
        if (($input->hasOption('dev'))) {
            if (($input->getOption('dev'))) {
                $this->installDev = true;
            }
        }
    }
665111
protected function verifyArguments(InputInterface $input, OutputInterface $output)
    {
        $type       = $input->getArgument('type');
        $validTypes = $this->getValidTypes();
        if ($type === null) {
            // ask a question and default $type='all'
            $helper   = $this->getHelper('question');
            $question = new ConfirmationQuestion('Do you want to clear all cache? [N] ', false);

            if (!$helper->ask($input, $output, $question)) {
                return false;
            }

            $type = 'all';
        }

        if (!in_array($type, $validTypes)) {
            $output->writeln(
                sprintf(
                    '<error>Type "%s" does not exist. Valid type are: %s.</error>',
                    $type,
                    implode(', ', $validTypes)
                )
            );

            return false;
        }

        if ($type === 'provider' && !$input->hasArgument('service')) {
            $output->writeln(
                '<error>When using type "provider" you must specify a service id for that provider.</error>'
            );
            $output->writeln('<error>Usage: php app/console cache:flush provider cache.provider.acme</error>');

            return false;
        }

        return $type;
    }
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;
    }
462347
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configurationPath = $input->getOption('configurationPath');
        $deploymentName = $input->getArgument('deploymentName');
        $basePath = $this->factory->getDeploymentsBasePath($configurationPath);

        $deploymentFileName = $basePath . '/' . $deploymentName . '.php';

        $legacyMap = require __DIR__ . '/../../Migrations/Code/LegacyClassMap.php';
        $fileContent = file_get_contents($deploymentFileName);
        foreach ($legacyMap as $identifier => $className) {
            if ($fileContent !== str_ireplace($identifier, str_replace('\\', '\\\\', $className), $fileContent)) {
                $output->writeln(sprintf('<warning>Legacy deployment task name or task option "%s" found!</warning>', $identifier));
                $fileContent = str_ireplace($identifier, str_replace('\\', '\\\\', $className), $fileContent);
            }
        }
        file_put_contents($deploymentFileName, $fileContent);
        $output->writeln('<info>Migrated deployment definition "' . $deploymentName . '"</info>');
    }
1240028
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('<bg=cyan;fg=white> Parsing project </>');

        return $this->parse($this->sami['project']);
    }
1133146
public function run(InputInterface $input, OutputInterface $output)
    {
        return parent::run(
            $this->input = $input, $this->output = new OutputStyle($input, $output)
        );
    }
1313910
protected function isUpdateNeeded(InputInterface $input, OutputInterface $output)
    {
        if ('@warning_time@' !== Tenside::WARNING_TIME) {
            $commandName = '';
            if ($name = $this->getCommandName($input)) {
                try {
                    $commandName = $this->find($name)->getName();
                } catch (\InvalidArgumentException $e) {
                    // Swallow the exception.
                }
            }
            if ($commandName !== 'self-update' && $commandName !== 'selfupdate') {
                if (time() > Tenside::WARNING_TIME) {
                    $output->writeln(
                        sprintf(
                            '<warning>Warning: This development build is over 30 days old. ' .
                            'It is recommended to update it by running "%s self-update" to get the latest version.' .
                            '</warning>',
                            $_SERVER['PHP_SELF']
                        )
                    );

                    return true;
                }
            }
        }

        return false;
    }
489985
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $finder     = new Finder();
        $filesystem = new Filesystem();
        $filesystem->remove($finder->directories()->in($this->getLanguageBasePath()));
    }