src/Commands/Install.php
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;
	}
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;
	}
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 ; }
Check whether we should proceed with installation

@param  InputInterface  $input
@param  OutputInterface $output
@param  array           $config
@return boolean
Check whether we should proceed with installation