From a3f6b7d009b4aa8a3858a691146916a1b598597d Mon Sep 17 00:00:00 2001 From: Jesus Manuel Olivas Date: Thu, 13 Jul 2017 01:25:06 -0700 Subject: [PATCH] [console] Fix alias names. (#3429) --- src/Command/Create/CommentsCommand.php | 2 +- src/Command/Create/NodesCommand.php | 2 +- src/Command/Create/TermsCommand.php | 2 +- src/Command/Create/UsersCommand.php | 2 +- src/Command/Create/VocabulariesCommand.php | 2 +- src/Command/Cron/ExecuteCommand.php | 2 +- src/Command/Cron/ReleaseCommand.php | 2 +- src/Command/Features/ImportCommand.php | 3 ++- src/Command/Field/InfoCommand.php | 2 +- src/Command/Module/DownloadCommand.php | 2 +- src/Command/Module/InstallDependencyCommand.php | 8 ++++---- src/Command/Module/PathCommand.php | 2 +- src/Command/Module/UpdateCommand.php | 2 +- src/Command/Multisite/NewCommand.php | 2 +- src/Command/Rest/DisableCommand.php | 2 +- src/Command/State/DeleteCommand.php | 2 +- src/Command/State/OverrideCommand.php | 2 +- src/Command/Test/RunCommand.php | 2 +- src/Command/Theme/DownloadCommand.php | 2 +- src/Command/Theme/InstallCommand.php | 2 +- src/Command/Theme/PathCommand.php | 9 +++++---- src/Command/Theme/UninstallCommand.php | 2 +- src/Command/Update/EntitiesCommand.php | 4 +++- src/Command/Update/ExecuteCommand.php | 2 +- 24 files changed, 34 insertions(+), 30 deletions(-) diff --git a/src/Command/Create/CommentsCommand.php b/src/Command/Create/CommentsCommand.php index c919e16b5..ec8e310a5 100644 --- a/src/Command/Create/CommentsCommand.php +++ b/src/Command/Create/CommentsCommand.php @@ -72,7 +72,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.create.comments.options.time-range') - )->setAliases(['cc']); + )->setAliases(['crc']); } /** diff --git a/src/Command/Create/NodesCommand.php b/src/Command/Create/NodesCommand.php index 2c8d6f09e..0fd33f93f 100644 --- a/src/Command/Create/NodesCommand.php +++ b/src/Command/Create/NodesCommand.php @@ -95,7 +95,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.create.nodes.options.language') - )->setAliases(['cn']); + )->setAliases(['crn']); } /** diff --git a/src/Command/Create/TermsCommand.php b/src/Command/Create/TermsCommand.php index 95fe45fe1..96cc757f7 100644 --- a/src/Command/Create/TermsCommand.php +++ b/src/Command/Create/TermsCommand.php @@ -80,7 +80,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.create.terms.options.name-words') - )->setAliases(['ct']); + )->setAliases(['crt']); } /** diff --git a/src/Command/Create/UsersCommand.php b/src/Command/Create/UsersCommand.php index 908bb7002..89e91f299 100644 --- a/src/Command/Create/UsersCommand.php +++ b/src/Command/Create/UsersCommand.php @@ -82,7 +82,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.create.users.options.time-range') - )->setAliases(['cu']); + )->setAliases(['cru']); } /** diff --git a/src/Command/Create/VocabulariesCommand.php b/src/Command/Create/VocabulariesCommand.php index 707996188..65087d2f1 100644 --- a/src/Command/Create/VocabulariesCommand.php +++ b/src/Command/Create/VocabulariesCommand.php @@ -59,7 +59,7 @@ protected function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.create.vocabularies.options.name-words') - )->setAliases(['cv']); + )->setAliases(['crv']); } /** diff --git a/src/Command/Cron/ExecuteCommand.php b/src/Command/Cron/ExecuteCommand.php index 497398d6b..6e6edb636 100644 --- a/src/Command/Cron/ExecuteCommand.php +++ b/src/Command/Cron/ExecuteCommand.php @@ -76,7 +76,7 @@ protected function configure() InputArgument::IS_ARRAY | InputArgument::OPTIONAL, $this->trans('commands.common.options.module') ) - ->setAliases(['cex']); + ->setAliases(['croe']); } /** diff --git a/src/Command/Cron/ReleaseCommand.php b/src/Command/Cron/ReleaseCommand.php index 63d450f65..a4a0ff067 100644 --- a/src/Command/Cron/ReleaseCommand.php +++ b/src/Command/Cron/ReleaseCommand.php @@ -53,7 +53,7 @@ protected function configure() $this ->setName('cron:release') ->setDescription($this->trans('commands.cron.release.description')) - ->setAliases(['cre']); + ->setAliases(['cror']); } /** diff --git a/src/Command/Features/ImportCommand.php b/src/Command/Features/ImportCommand.php index 275859fb1..e315b9d90 100644 --- a/src/Command/Features/ImportCommand.php +++ b/src/Command/Features/ImportCommand.php @@ -49,7 +49,8 @@ protected function configure() 'packages', InputArgument::IS_ARRAY, $this->trans('commands.features.import.arguments.packages') - ); + )->setAliases(['fei']); + ; } protected function execute(InputInterface $input, OutputInterface $output) diff --git a/src/Command/Field/InfoCommand.php b/src/Command/Field/InfoCommand.php index 7637429b0..002359d48 100644 --- a/src/Command/Field/InfoCommand.php +++ b/src/Command/Field/InfoCommand.php @@ -75,7 +75,7 @@ public function configure() null, InputOption::VALUE_OPTIONAL, $this->trans('commands.field.info.options.bundle') - )->setAliases(['fi']); + )->setAliases(['fii']); } /** diff --git a/src/Command/Module/DownloadCommand.php b/src/Command/Module/DownloadCommand.php index c6ebf70f2..8640f4027 100644 --- a/src/Command/Module/DownloadCommand.php +++ b/src/Command/Module/DownloadCommand.php @@ -138,7 +138,7 @@ protected function configure() InputOption::VALUE_NONE, $this->trans('commands.module.install.options.unstable') ) - ->setAliases(['md']); + ->setAliases(['mod']); } /** diff --git a/src/Command/Module/InstallDependencyCommand.php b/src/Command/Module/InstallDependencyCommand.php index 492436086..884a2be7b 100644 --- a/src/Command/Module/InstallDependencyCommand.php +++ b/src/Command/Module/InstallDependencyCommand.php @@ -55,10 +55,10 @@ class InstallDependencyCommand extends Command /** * InstallCommand constructor. * - * @param Site $site - * @param Validator $validator + * @param Site $site + * @param Validator $validator * @param ModuleInstallerInterface $moduleInstaller - * @param ChainQueue $chainQueue + * @param ChainQueue $chainQueue */ public function __construct( Site $site, @@ -85,7 +85,7 @@ protected function configure() 'module', InputArgument::IS_ARRAY, $this->trans('commands.module.install.dependencies.arguments.module') - )->setAliases(['mdi']); + )->setAliases(['modi']); } /** diff --git a/src/Command/Module/PathCommand.php b/src/Command/Module/PathCommand.php index 8ce3adae7..a32f6cf42 100644 --- a/src/Command/Module/PathCommand.php +++ b/src/Command/Module/PathCommand.php @@ -53,7 +53,7 @@ protected function configure() null, InputOption::VALUE_NONE, $this->trans('commands.module.path.options.absolute') - )->setAliases(['mp']); + )->setAliases(['mop']); } protected function execute(InputInterface $input, OutputInterface $output) diff --git a/src/Command/Module/UpdateCommand.php b/src/Command/Module/UpdateCommand.php index 60cbaccfe..349c51417 100644 --- a/src/Command/Module/UpdateCommand.php +++ b/src/Command/Module/UpdateCommand.php @@ -68,7 +68,7 @@ protected function configure() null, InputOption::VALUE_NONE, $this->trans('commands.module.update.options.simulate') - )->setAliases(['mu']); + )->setAliases(['mou']); } /** diff --git a/src/Command/Multisite/NewCommand.php b/src/Command/Multisite/NewCommand.php index ecb9d4168..008bb09c2 100644 --- a/src/Command/Multisite/NewCommand.php +++ b/src/Command/Multisite/NewCommand.php @@ -74,7 +74,7 @@ public function configure() InputOption::VALUE_NONE, $this->trans('commands.multisite.new.options.copy-default') ) - ->setAliases(['mn']); + ->setAliases(['mun']); } /** diff --git a/src/Command/Rest/DisableCommand.php b/src/Command/Rest/DisableCommand.php index a13477167..a2778574b 100644 --- a/src/Command/Rest/DisableCommand.php +++ b/src/Command/Rest/DisableCommand.php @@ -64,7 +64,7 @@ protected function configure() InputArgument::OPTIONAL, $this->trans('commands.rest.debug.arguments.resource-id') ) - ->setAliases(['redi']); + ->setAliases(['red']); } protected function execute(InputInterface $input, OutputInterface $output) diff --git a/src/Command/State/DeleteCommand.php b/src/Command/State/DeleteCommand.php index a99ee38a4..5c3bf1596 100644 --- a/src/Command/State/DeleteCommand.php +++ b/src/Command/State/DeleteCommand.php @@ -56,7 +56,7 @@ protected function configure() 'name', InputArgument::OPTIONAL, $this->trans('commands.state.delete.arguments.name') - )->setAliases(['sd']); + )->setAliases(['std']); } /** diff --git a/src/Command/State/OverrideCommand.php b/src/Command/State/OverrideCommand.php index edda1aff8..dc1f88d99 100644 --- a/src/Command/State/OverrideCommand.php +++ b/src/Command/State/OverrideCommand.php @@ -69,7 +69,7 @@ protected function configure() 'value', InputArgument::OPTIONAL, $this->trans('commands.state.override.arguments.value') - )->setAliases(['so']); + )->setAliases(['sto']); } /** * {@inheritdoc} diff --git a/src/Command/Test/RunCommand.php b/src/Command/Test/RunCommand.php index 0539ad0e6..492bb1e30 100644 --- a/src/Command/Test/RunCommand.php +++ b/src/Command/Test/RunCommand.php @@ -93,7 +93,7 @@ protected function configure() InputOption::VALUE_REQUIRED, $this->trans('commands.test.run.arguments.url') ) - ->setAliases(['tr']); + ->setAliases(['ter']); } /* diff --git a/src/Command/Theme/DownloadCommand.php b/src/Command/Theme/DownloadCommand.php index 315602701..0f01f2c37 100644 --- a/src/Command/Theme/DownloadCommand.php +++ b/src/Command/Theme/DownloadCommand.php @@ -82,7 +82,7 @@ protected function configure() null, InputOption::VALUE_NONE, $this->trans('commands.theme.download.options.composer') - )->setAliases(['td']); + )->setAliases(['thd']); } /** diff --git a/src/Command/Theme/InstallCommand.php b/src/Command/Theme/InstallCommand.php index 61d348ae6..77ce74796 100644 --- a/src/Command/Theme/InstallCommand.php +++ b/src/Command/Theme/InstallCommand.php @@ -71,7 +71,7 @@ protected function configure() null, InputOption::VALUE_NONE, $this->trans('commands.theme.install.options.set-default') - )->setAliases(['ti']); + )->setAliases(['thi']); } /** diff --git a/src/Command/Theme/PathCommand.php b/src/Command/Theme/PathCommand.php index 0ce12c09f..131c16525 100644 --- a/src/Command/Theme/PathCommand.php +++ b/src/Command/Theme/PathCommand.php @@ -35,8 +35,8 @@ class PathCommand extends Command /** * PathCommand constructor. * - * @param Manager $extensionManager - * @param ThemeHandler $themeHandler + * @param Manager $extensionManager + * @param ThemeHandler $themeHandler */ public function __construct(Manager $extensionManager, ThemeHandler $themeHandler) { @@ -60,7 +60,7 @@ protected function configure() null, InputOption::VALUE_NONE, $this->trans('commands.theme.path.options.absolute') - )->setAliases(['tp']); + )->setAliases(['thp']); } protected function execute(InputInterface $input, OutputInterface $output) @@ -104,7 +104,8 @@ protected function interact(InputInterface $input, OutputInterface $output) } } - protected function getThemeList(){ + protected function getThemeList() + { return array_keys($this->themeHandler->rebuildThemeData()); } } diff --git a/src/Command/Theme/UninstallCommand.php b/src/Command/Theme/UninstallCommand.php index fdadd2cb8..f553b6df2 100644 --- a/src/Command/Theme/UninstallCommand.php +++ b/src/Command/Theme/UninstallCommand.php @@ -65,7 +65,7 @@ protected function configure() InputArgument::IS_ARRAY, $this->trans('commands.theme.uninstall.options.module') ) - ->setAliases(['tu']); + ->setAliases(['thu']); } /** diff --git a/src/Command/Update/EntitiesCommand.php b/src/Command/Update/EntitiesCommand.php index 85b5007a4..bf28b81f0 100644 --- a/src/Command/Update/EntitiesCommand.php +++ b/src/Command/Update/EntitiesCommand.php @@ -67,7 +67,9 @@ protected function configure() { $this ->setName('update:entities') - ->setDescription($this->trans('commands.update.entities.description')); + ->setDescription($this->trans('commands.update.entities.description')) + ->setAliases(['upe']); + ; } /** diff --git a/src/Command/Update/ExecuteCommand.php b/src/Command/Update/ExecuteCommand.php index 7181012ac..82d102f37 100644 --- a/src/Command/Update/ExecuteCommand.php +++ b/src/Command/Update/ExecuteCommand.php @@ -110,7 +110,7 @@ protected function configure() InputArgument::OPTIONAL, $this->trans('commands.update.execute.options.update-n') ) - ->setAliases(['upe']); + ->setAliases(['upex']); } /**