Banago\PHPloy\Git::exec PHP Méthode

exec() public méthode

Executes a console command and returns the output (as an array).
public exec ( string $command ) : array
$command string Command to execute
Résultat array of all lines that were output to the console during the command (STDOUT)
    public function exec($command)
    {
        $output = null;
        exec('(' . escapeshellcmd($command) . ') 2>&1', $output);
        return $output;
    }