class Command
Largely inspired from http://github.com/kbjr/Git.php
Methods
addCache($command, $result, $error, $status, $cwd = null, $env = null, $options = null)
|
||
isCached($command, $cwd = null)
|
||
getCached($command, $cwd = null)
|
||
getCache()
|
||
array |
run(string $command, string $path = null, bool $force = false)
Run a command on a Linux/UNIX system reading it from cache if so |
|
array |
runCommand(string $command, string $path = null)
Run a command on a Linux/UNIX system |
|
static string |
getCommandPath(string $cmd)
Get the system path of a command |
Details
at line 40
public
addCache($command, $result, $error, $status, $cwd = null, $env = null, $options = null)
at line 53
public
isCached($command, $cwd = null)
at line 67
public
getCached($command, $cwd = null)
at line 73
public
getCache()
at line 90
public array
run(string $command, string $path = null, bool $force = false)
Run a command on a Linux/UNIX system reading it from cache if so
at line 108
public array
runCommand(string $command, string $path = null)
Run a command on a Linux/UNIX system
Accepts a shell command to run
at line 136
static public string
getCommandPath(string $cmd)
Get the system path of a command