From 86cb01b4c1215c68ffcf4d88ce43da7a6efaba37 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 8 Nov 2023 21:55:42 +0100 Subject: [PATCH] Replace fancy option with Ansi check --- packages/framework/src/Console/Commands/ServeCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/framework/src/Console/Commands/ServeCommand.php b/packages/framework/src/Console/Commands/ServeCommand.php index 05cd0bda116..149dc2ad7c9 100644 --- a/packages/framework/src/Console/Commands/ServeCommand.php +++ b/packages/framework/src/Console/Commands/ServeCommand.php @@ -20,7 +20,7 @@ class ServeCommand extends Command { /** @var string */ - protected $signature = 'serve {--host= : [default: "localhost"]}} {--port= : [default: 8080]} {--fancy= : [default: true]}'; + protected $signature = 'serve {--host= : [default: "localhost"]}} {--port= : [default: 8080]}'; /** @var string */ protected $description = 'Start the realtime compiler server.'; @@ -57,13 +57,13 @@ protected function getExecutablePath(): string protected function runServerProcess(string $command): void { Process::forever()->run($command, function (string $type, string $line): void { - $this->option('fancy') ? $this->handleOutput($line) : $this->output->write($line); + $this->option('no-ansi') ? $this->output->write($line) : $this->handleOutput($line); }); } protected function printStartMessage(): void { - if ($this->option('fancy')) { + if ($this->option('no-ansi')) { $this->line('Starting the HydeRC server... Press Ctrl+C to stop'); } else { $title = 'HydePHP Realtime Compiler';