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