|
@@ 308-314 (lines=7) @@
|
| 305 |
|
|
| 306 |
|
if ($server instanceof Local) { |
| 307 |
|
$output = $server->mustRun($command, function ($type, $buffer) use ($serverName) { |
| 308 |
|
if (isDebug()) { |
| 309 |
|
output()->writeln(array_map(function ($line) use ($serverName) { |
| 310 |
|
return output()->isDecorated() |
| 311 |
|
? "[$serverName] \033[1;30m< $line\033[0m" |
| 312 |
|
: "[$serverName] < $line"; |
| 313 |
|
}, explode("\n", rtrim($buffer))), OutputInterface::OUTPUT_RAW); |
| 314 |
|
} |
| 315 |
|
}); |
| 316 |
|
} else { |
| 317 |
|
$output = $server->run($command); |
|
@@ 318-324 (lines=7) @@
|
| 315 |
|
}); |
| 316 |
|
} else { |
| 317 |
|
$output = $server->run($command); |
| 318 |
|
if (isDebug() && !empty($output)) { |
| 319 |
|
output()->writeln(array_map(function ($line) use ($serverName) { |
| 320 |
|
return output()->isDecorated() |
| 321 |
|
? "[$serverName] \033[1;30m< $line\033[0m" |
| 322 |
|
: "[$serverName] < $line"; |
| 323 |
|
}, explode("\n", rtrim($output))), OutputInterface::OUTPUT_RAW); |
| 324 |
|
} |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
if (!empty(rtrim($output))) { |