From 7dbf1f8883d0d62a03e4baad5e9e0ef0f6eebcd3 Mon Sep 17 00:00:00 2001 From: Jiahui Xiong Date: Sat, 15 May 2021 09:13:37 +0800 Subject: [PATCH] Add Source command. --- src/Commands/Eve/Update/Sde.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Commands/Eve/Update/Sde.php b/src/Commands/Eve/Update/Sde.php index 363a6403..df5041a0 100644 --- a/src/Commands/Eve/Update/Sde.php +++ b/src/Commands/Eve/Update/Sde.php @@ -48,7 +48,8 @@ class Sde extends Command */ protected $signature = 'eve:update:sde {--local : Check the local config file for the version string} - {--force : Force re-installation of an existing SDE version}'; + {--force : Force re-installation of an existing SDE version} + {--json=https://raw.githubusercontent.com/eveseat/resources/master/sde.json : Specify the metadata to update the SDE}'; /** * The console command description. @@ -235,7 +236,7 @@ public function getJsonResource() { $result = $this->getGuzzle()->request('GET', - 'https://raw.githubusercontent.com/eveseat/resources/master/sde.json', [ + $this->option('json'), [ 'headers' => ['Accept' => 'application/json'], ]);