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