Skip to content

Commit c071c96

Browse files
authored
Merge pull request #249 from stronk7/self-update-updates
Add back the selfupdate command (interim mode)
2 parents fca1d11 + 5ed10dc commit c071c96

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
"psr/log": "^1.1.4",
7474
"nikic/php-parser": "^4.14",
7575
"marcj/topsort": "^2.0.0",
76-
"phpcompatibility/php-compatibility": "dev-develop#0a17f9ed"
76+
"phpcompatibility/php-compatibility": "dev-develop#0a17f9ed",
77+
"laravel-zero/phar-updater": "^1.0.0"
7778
},
7879
"require-dev": {
7980
"phpunit/phpunit": "^9.6",

composer.lock

Lines changed: 56 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Command/SelfUpdateCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class SelfUpdateCommand extends Command
2525
protected function configure(): void
2626
{
2727
$this->setName('selfupdate')
28+
->setAliases(['self-update'])
2829
->setDescription('Updates moodle-plugin-ci')
2930
->addOption('rollback', 'r', InputOption::VALUE_NONE, 'Rollback to the last version')
3031
->addOption('preview', null, InputOption::VALUE_NONE, 'Update to pre-release version')

0 commit comments

Comments
 (0)