protected function execute(InputInterface $input, OutputInterface $output)
{
$this->checkStorage();
$action = $input->getArgument('action');
$this->bulkCount = $input->getArgument('bulk-count');
if (!isset($this->actionSet[$action])) {
throw new RuntimeException("Action '{$action}' is not supported, use one of: " . implode(', ', array_keys($this->actionSet)));
}
if ($action === 'full' || $action === 'backup-custom') {
$this->backupCustomLocationAliases();
}
if ($action === 'full' || $action === 'backup-global') {
$this->backupGlobalAliases();
}
if ($action === 'full' || $action === 'autogenerate') {
$this->generateLocationAliases();
}
if ($action === 'full' || $action === 'restore-custom') {
$this->restoreCustomLocationAliases();
}
if ($action === 'full' || $action === 'restore-global') {
$this->restoreGlobalAliases();
}
}