mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
feat(update): 支持更新到 ulthon_admin 的 master 分支
新增 `--update-master` 选项,允许用户选择更新到远程仓库的 master 分支,而非默认的最新标签版本。这为需要最新开发版代码的场景提供了灵活性。
This commit is contained in:
@@ -23,6 +23,7 @@ class UpdateBase extends Command
|
||||
$this->setName('admin:update')
|
||||
->addOption('reinstall', null, Option::VALUE_NONE, '重装版本')
|
||||
->addOption('update-ulthon', null, Option::VALUE_NONE, '更新 ulthon_admin')
|
||||
->addOption('update-master', null, Option::VALUE_NONE, '更新 ulthon_admin 的 master 分支')
|
||||
->setDescription('更新系统代码');
|
||||
}
|
||||
|
||||
@@ -33,7 +34,7 @@ class UpdateBase extends Command
|
||||
|
||||
$repo = static::REPO;
|
||||
|
||||
if($input->hasOption('update-ulthon')){
|
||||
if ((bool)$input->getOption('update-ulthon')) {
|
||||
$repo = 'ulthon_admin';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user