PHP Class Platformsh\Cli\Helper\ShellHelper

Inheritance: extends Symfony\Component\Console\Helper\Helper, implements Platformsh\Cli\Helper\ShellHelperInterface
Afficher le fichier Open project: commerceguys/platform-cli Class Usage Examples

Protected Properties

Свойство Type Description
$defaultTimeout
$output Symfony\Component\Console\Output\OutputInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
commandExists ( $command )
execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
executeSimple ( string $commandline, string | null $dir = null ) : integer Execute a command, using STDIN, STDERR and STDOUT directly.
getName ( )
resolveCommand ( $command )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

Méthodes protégées

Méthode Description
findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean Run 'where' or equivalent on a command.
runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string

Method Details

__construct() public méthode

public __construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
$output Symfony\Component\Console\Output\OutputInterface

commandExists() public méthode

public commandExists ( $command )

execute() public méthode

public execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
$args array

executeSimple() public méthode

Execute a command, using STDIN, STDERR and STDOUT directly.
public executeSimple ( string $commandline, string | null $dir = null ) : integer
$commandline string
$dir string | null
Résultat integer The command's exit code (0 on success, a different integer on failure).

findWhere() protected méthode

Run 'where' or equivalent on a command.
protected findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean
$command string
$noticeOnError boolean
Résultat string | boolean A list of command paths (one per line) or false on failure.

getName() public méthode

public getName ( )

resolveCommand() public méthode

public resolveCommand ( $command )

runProcess() protected méthode

protected runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string
$process Symfony\Component\Process\Process
$mustRun boolean
$quiet boolean
Résultat integer | string

setOutput() public méthode

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

Property Details

$defaultTimeout protected_oe property

protected $defaultTimeout

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface