\MrCrankHank\ConsoleAccess\AdaptersLocalAdapter

Class LocalAdapter

PHP version 5.6

Summary

Methods
Properties
Constants
run()
getOutput()
getExitStatus()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$exitStatus
$output
N/A

Properties

$exitStatus

$exitStatus : string

Type

string

$output

$output : string

Type

string

Methods

run()

run(string  $command, \Closure|null  $live = null) 

Run a command.

Parameters

string $command

Command which should be run

\Closure|null $live

Closure to capture the live output of the command

getOutput()

getOutput() : mixed

Return the output of the last command.

Does not work well with long running commands. You should capture the live output instead.

Returns

mixed

getExitStatus()

getExitStatus() : mixed

Return the exist status of the last command

Returns

mixed