-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/* | ||
* Fresns (https://fresns.org) | ||
* Copyright (C) 2021-Present Jarvis Tang | ||
* Released under the Apache-2.0 License. | ||
*/ | ||
|
||
namespace Fresns\PluginManager\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
use Fresns\PluginManager\Support\Process; | ||
|
||
class PluginComposerUpdateCommand extends Command | ||
{ | ||
protected $signature = 'plugin:composer-update'; | ||
|
||
protected $description = 'Update all plugins composer package'; | ||
|
||
public function handle() | ||
{ | ||
$process = Process::run('composer update', $this->output); | ||
if (!$process->isSuccessful()) { | ||
$this->error('Failed to install packages, calc composer.json hash value fail'); | ||
|
||
return Command::FAILURE; | ||
} | ||
|
||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters