AzureCliProcessRunner
Runs one command and returns its standard output, so AzureCliTokenProvider can be exercised in tests without actually shelling out to az.
Synopsis
Section titled “Synopsis”interface AzureCliProcessRunner
| Implemented by | ProcOpenAzureCliProcessRunner |
| Source | AzureCliProcessRunner.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
run(list<string> $command): string |
abstract public function run(list<string> $command): string
Argv, never passed through a shell.
| Parameter | Type | Description |
|---|---|---|
$command | list``<``string``> | Argv, never passed through a shell. |
Returns string
| Throws | When |
|---|---|
AzureStorageException | If the process could not be started or exited non-zero. |