first commit

This commit is contained in:
2021-11-30 21:24:49 +08:00
commit 08da50a0b7
13 changed files with 1433 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
declare(strict_types=1);
namespace StarPoolCloud\Commands;
use Exception;
use Illuminate\Console\Command;
class ApolloConfigSync extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'apollo:sync';
/**
* The console command description.
*
* @var string
*/
protected $description = '同步Apollo配置';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*/
public function handle()
{
try {
app('StarPoolCloudApollo')->updateEnv();
$this->info('Success');
} catch (Exception $exception) {
$this->error("Error{$exception->getMessage()}");
}
}
}