Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Runtime\Broker\Deploy; | |
| 6 | ||
| 7 | use Amp\Cancellation; | |
| 8 | use Amp\CancelledException; | |
| 9 | use Stewart\Contracts\Time\Duration; | |
| 10 | use Stewart\Runtime\Exception\DeployException; | |
| 11 | ||
| 12 | interface ExternalCommandRunner | |
| 13 | { | |
| 14 | /** | |
| 15 | * @param non-empty-list<string> $command | |
| 16 | * @throws DeployException | |
| 17 | * @throws CancelledException | |
| 18 | */ | |
| 19 | public function runCommand(array $command, Duration $timeout, Cancellation $cancellation): ExternalCommandResult; | |
| 20 | } |