Skip to content

Commit

Permalink
Merge pull request #249 from stronk7/self-update-updates
Browse files Browse the repository at this point in the history
Add back the selfupdate command (interim mode)
  • Loading branch information
stronk7 authored Oct 11, 2023
2 parents fca1d11 + 5ed10dc commit c071c96
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"psr/log": "^1.1.4",
"nikic/php-parser": "^4.14",
"marcj/topsort": "^2.0.0",
"phpcompatibility/php-compatibility": "dev-develop#0a17f9ed"
"phpcompatibility/php-compatibility": "dev-develop#0a17f9ed",
"laravel-zero/phar-updater": "^1.0.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
Expand Down
57 changes: 56 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Command/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SelfUpdateCommand extends Command
protected function configure(): void
{
$this->setName('selfupdate')
->setAliases(['self-update'])
->setDescription('Updates moodle-plugin-ci')
->addOption('rollback', 'r', InputOption::VALUE_NONE, 'Rollback to the last version')
->addOption('preview', null, InputOption::VALUE_NONE, 'Update to pre-release version')
Expand Down

0 comments on commit c071c96

Please sign in to comment.