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