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