wip
This commit is contained in:
@@ -15,19 +15,14 @@ class GitPullController extends Controller
|
||||
]);
|
||||
|
||||
$result = Process::pipe(function (Pipe $pipe) {
|
||||
$pipe->command('ls -la');
|
||||
$pipe->command('ls -la '. base_path());
|
||||
// $pipe->command('grep -i "laravel"');
|
||||
}, function (string $type, string $output) {
|
||||
echo $output;
|
||||
});
|
||||
|
||||
return [
|
||||
'successful' => $result->successful(),
|
||||
'failed' => $result->failed(),
|
||||
'exitCode' => $result->exitCode(),
|
||||
'output' => $result->output(),
|
||||
'errorOutput' => $result->errorOutput(),
|
||||
'output' => '<pre>'.$result->output().'</pre>',
|
||||
];
|
||||
// return '<pre>'.$result->output().'</pre>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user