forked from consolidation/robo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request consolidation#400 from consolidation-org/fix-phar
Fix phar
- Loading branch information
Showing
4 changed files
with
138 additions
and
26 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
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,54 @@ | ||
<?php | ||
namespace Robo\Task\Composer; | ||
|
||
/** | ||
* Composer Validate | ||
* | ||
* ``` php | ||
* <?php | ||
* // simple execution | ||
* $this->taskComposerValidate()->run(); | ||
* ?> | ||
* ``` | ||
*/ | ||
class Remove extends Base | ||
{ | ||
protected $action = 'remove'; | ||
|
||
public function dev() | ||
{ | ||
$this->option('--dev'); | ||
return $this; | ||
} | ||
|
||
public function noProgress() | ||
{ | ||
$this->option('--no-progress'); | ||
return $this; | ||
} | ||
|
||
public function noUpdate() | ||
{ | ||
$this->option('--no-update'); | ||
return $this; | ||
} | ||
|
||
public function updateNoDev() | ||
{ | ||
$this->option('--update-no-dev'); | ||
return $this; | ||
} | ||
|
||
public function noUpdateWithDependencies() | ||
{ | ||
$this->option('--no-update-with-dependencies'); | ||
return $this; | ||
} | ||
|
||
public function run() | ||
{ | ||
$command = $this->getCommand(); | ||
$this->printTaskInfo('Removing packages: {command}', ['command' => $command]); | ||
return $this->executeCommand($command); | ||
} | ||
} |
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