|
@@ 283-289 (lines=7) @@
|
| 280 |
|
|
| 281 |
|
if ($server instanceof Local) { |
| 282 |
|
$output = $server->mustRun($command, function ($type, $buffer) use ($serverName) { |
| 283 |
|
if (isDebug()) { |
| 284 |
|
output()->writeln(array_map(function ($line) use ($serverName) { |
| 285 |
|
return output()->isDecorated() |
| 286 |
|
? "[$serverName] \033[1;30m< $line\033[0m" |
| 287 |
|
: "[$serverName] < $line"; |
| 288 |
|
}, explode("\n", rtrim($buffer))), OutputInterface::OUTPUT_RAW); |
| 289 |
|
} |
| 290 |
|
}); |
| 291 |
|
} else { |
| 292 |
|
$output = $server->run($command); |
|
@@ 293-299 (lines=7) @@
|
| 290 |
|
}); |
| 291 |
|
} else { |
| 292 |
|
$output = $server->run($command); |
| 293 |
|
if (isDebug() && !empty($output)) { |
| 294 |
|
output()->writeln(array_map(function ($line) use ($serverName) { |
| 295 |
|
return output()->isDecorated() |
| 296 |
|
? "[$serverName] \033[1;30m< $line\033[0m" |
| 297 |
|
: "[$serverName] < $line"; |
| 298 |
|
}, explode("\n", rtrim($output))), OutputInterface::OUTPUT_RAW); |
| 299 |
|
} |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
return new Result($output); |