From d8dcf9e5ceb1375c81242534caa79f69ebdf2367 Mon Sep 17 00:00:00 2001 From: Ivan Klimchuk Date: Thu, 30 May 2019 01:24:19 +0300 Subject: [PATCH] Improve visualization of default value in questions --- src/Command/InitCommand.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Command/InitCommand.php b/src/Command/InitCommand.php index 71f0ee8..2bd580e 100644 --- a/src/Command/InitCommand.php +++ b/src/Command/InitCommand.php @@ -96,7 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output) */ $dataTypes = array(); - $question = new ConfirmationQuestion('Would you like to include Contexts? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Contexts? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['contexts'] = array( 'class' => 'modContext', @@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Template Variables? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Template Variables? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['template_variables'] = array( 'class' => 'modTemplateVar', @@ -120,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Content? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Content? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['content'] = array( 'type' => 'content', @@ -129,7 +129,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Categories? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Categories? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['categories'] = array( 'class' => 'modCategory', @@ -138,7 +138,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Templates? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Templates? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['templates'] = array( 'class' => 'modTemplate', @@ -147,7 +147,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Chunks? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Chunks? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['chunks'] = array( 'class' => 'modChunk', @@ -156,7 +156,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Snippets? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Snippets? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['snippets'] = array( 'class' => 'modSnippet', @@ -165,7 +165,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Plugins? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Plugins? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['plugins'] = array( 'class' => 'modPlugin', @@ -182,7 +182,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Namespaces, Extension Packages and System Settings? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Namespaces, Extension Packages and System Settings? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['namespaces'] = array( 'class' => 'modNamespace', @@ -200,7 +200,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Form Customization? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Form Customization? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['fc_sets'] = array( 'class' => 'modFormCustomizationSet', @@ -232,7 +232,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } - $question = new ConfirmationQuestion('Would you like to include Dashboards? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include Dashboards? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $dataTypes['dashboards'] = array( 'class' => 'modDashboard', @@ -251,7 +251,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $data['data'] = $dataTypes; if (file_exists(GITIFY_WORKING_DIR . 'config.core.php')) { - $question = new ConfirmationQuestion('Would you like to include a list of Currently Installed Packages? (Y/N) ', true); + $question = new ConfirmationQuestion('Would you like to include a list of Currently Installed Packages? (Y/n) ', true); if ($helper->ask($input, $output, $question)) { $modx = false; try { @@ -307,7 +307,7 @@ protected function execute(InputInterface $input, OutputInterface $output) */ if (!file_exists(GITIFY_WORKING_DIR . 'config.core.php')) { - $question = new ConfirmationQuestion('No MODX installation found in the current directory. Would you like to install the latest stable version? (Y/N) ', false); + $question = new ConfirmationQuestion('No MODX installation found in the current directory. Would you like to install the latest stable version? (y/N) ', false); if ($helper->ask($input, $output, $question)) { $command = $this->getApplication()->find('modx:install');