Skip to content

Commit

Permalink
[console] Fix alias names. (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Jul 13, 2017
1 parent c1047f3 commit a3f6b7d
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/Command/Create/CommentsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.create.comments.options.time-range')
)->setAliases(['cc']);
)->setAliases(['crc']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Create/NodesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.create.nodes.options.language')
)->setAliases(['cn']);
)->setAliases(['crn']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Create/TermsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.create.terms.options.name-words')
)->setAliases(['ct']);
)->setAliases(['crt']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Create/UsersCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.create.users.options.time-range')
)->setAliases(['cu']);
)->setAliases(['cru']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Create/VocabulariesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.create.vocabularies.options.name-words')
)->setAliases(['cv']);
)->setAliases(['crv']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Cron/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function configure()
InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
$this->trans('commands.common.options.module')
)
->setAliases(['cex']);
->setAliases(['croe']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Cron/ReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function configure()
$this
->setName('cron:release')
->setDescription($this->trans('commands.cron.release.description'))
->setAliases(['cre']);
->setAliases(['cror']);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/Command/Features/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Field/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function configure()
null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.field.info.options.bundle')
)->setAliases(['fi']);
)->setAliases(['fii']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Module/DownloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function configure()
InputOption::VALUE_NONE,
$this->trans('commands.module.install.options.unstable')
)
->setAliases(['md']);
->setAliases(['mod']);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Module/InstallDependencyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -85,7 +85,7 @@ protected function configure()
'module',
InputArgument::IS_ARRAY,
$this->trans('commands.module.install.dependencies.arguments.module')
)->setAliases(['mdi']);
)->setAliases(['modi']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Module/PathCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Module/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function configure()
null,
InputOption::VALUE_NONE,
$this->trans('commands.module.update.options.simulate')
)->setAliases(['mu']);
)->setAliases(['mou']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Multisite/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function configure()
InputOption::VALUE_NONE,
$this->trans('commands.multisite.new.options.copy-default')
)
->setAliases(['mn']);
->setAliases(['mun']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Rest/DisableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Command/State/DeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function configure()
'name',
InputArgument::OPTIONAL,
$this->trans('commands.state.delete.arguments.name')
)->setAliases(['sd']);
)->setAliases(['std']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/State/OverrideCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function configure()
'value',
InputArgument::OPTIONAL,
$this->trans('commands.state.override.arguments.value')
)->setAliases(['so']);
)->setAliases(['sto']);
}
/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Test/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function configure()
InputOption::VALUE_REQUIRED,
$this->trans('commands.test.run.arguments.url')
)
->setAliases(['tr']);
->setAliases(['ter']);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Theme/DownloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function configure()
null,
InputOption::VALUE_NONE,
$this->trans('commands.theme.download.options.composer')
)->setAliases(['td']);
)->setAliases(['thd']);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Theme/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function configure()
null,
InputOption::VALUE_NONE,
$this->trans('commands.theme.install.options.set-default')
)->setAliases(['ti']);
)->setAliases(['thi']);
}

/**
Expand Down
9 changes: 5 additions & 4 deletions src/Command/Theme/PathCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down Expand Up @@ -104,7 +104,8 @@ protected function interact(InputInterface $input, OutputInterface $output)
}
}

protected function getThemeList(){
protected function getThemeList()
{
return array_keys($this->themeHandler->rebuildThemeData());
}
}
2 changes: 1 addition & 1 deletion src/Command/Theme/UninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function configure()
InputArgument::IS_ARRAY,
$this->trans('commands.theme.uninstall.options.module')
)
->setAliases(['tu']);
->setAliases(['thu']);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Command/Update/EntitiesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Update/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function configure()
InputArgument::OPTIONAL,
$this->trans('commands.update.execute.options.update-n')
)
->setAliases(['upe']);
->setAliases(['upex']);
}

/**
Expand Down

0 comments on commit a3f6b7d

Please sign in to comment.