Skip to content

Commit

Permalink
Added --show flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 3, 2020
1 parent 78376d4 commit 7a7bb9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/Commands/ServeClusteer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ServeClusteer extends Command
{--chromium-path= : The path to the Chromium path.}
{--node-path=$(which node) : The path to the node executable.}
{--js-file-path=vendor/renoki-co/clusteer/server.js : The path for the JS file to run.}
{--show : Display the command that will run instead of running it}
';

/**
Expand Down Expand Up @@ -62,6 +63,10 @@ public function handle()
->nodeJsPath($this->option('node-path'))
->configureServer();

if ($this->option('show')) {
return $this->line($server->buildCommand());
}

$process = $server->getProcess();
$loop = $server->getLoop();

Expand Down

0 comments on commit 7a7bb9d

Please sign in to comment.