Skip to content

Commit 9422644

Browse files
Merge pull request #1717 from M0rgan01/add-channel-option-for-check-requirements-command
Add channel option for check requirements command
2 parents b007fb6 + 8d191f4 commit 9422644

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ node_modules/
2929

3030
## JS Tests
3131
_dev/coverage
32+
33+
## generated files on tests
34+
fixtures/config/*.var
35+
tests/autoupgrade/*.var
36+
tests/unit/autoupgrade/*.var

classes/Commands/CheckRequirementsCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function configure(): void
4848
->setDescription('Check all prerequisites for an update.')
4949
->setHelp('This command allows you to check the prerequisites necessary for the proper functioning of an update.')
5050
->addOption('config-file-path', null, InputOption::VALUE_REQUIRED, 'Configuration file location for update.')
51+
->addOption('channel', null, InputOption::VALUE_REQUIRED, "Selects what update to run ('" . UpgradeConfiguration::CHANNEL_LOCAL . "' / '" . UpgradeConfiguration::CHANNEL_ONLINE_RECOMMENDED . "' / '" . UpgradeConfiguration::CHANNEL_ONLINE . "')")
5152
->addOption('zip', null, InputOption::VALUE_REQUIRED, 'Sets the archive zip file for a local update.')
5253
->addOption('xml', null, InputOption::VALUE_REQUIRED, 'Sets the archive xml file for a local update.')
5354
->addArgument('admin-dir', InputArgument::REQUIRED, 'The admin directory name.');
@@ -66,6 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
6667
$options = [
6768
UpgradeConfiguration::ARCHIVE_ZIP => 'zip',
6869
UpgradeConfiguration::ARCHIVE_XML => 'xml',
70+
UpgradeConfiguration::CHANNEL => 'channel',
6971
];
7072
foreach ($options as $configKey => $optionName) {
7173
$optionValue = $input->getOption($optionName);

0 commit comments

Comments
 (0)