You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PatternLab/Console/Commands/ServerCommand.php
+37-12Lines changed: 37 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,11 @@
13
13
use \PatternLab\Config;
14
14
use \PatternLab\Console;
15
15
use \PatternLab\Console\Command;
16
+
use \PatternLab\Console\Commands\WatchCommand;
17
+
use \PatternLab\Console\ProcessSpawner;
16
18
use \PatternLab\Timer;
17
19
20
+
18
21
class ServerCommand extends Command {
19
22
20
23
publicfunction__construct() {
@@ -27,6 +30,7 @@ public function __construct() {
27
30
Console::setCommandOption($this->command,"host:","Provide a custom hostname. Default value is <path>localhost</path>.","To use a custom hostname and the default port:","","<host>");
28
31
Console::setCommandOption($this->command,"port:","Provide a custom port. Default value is <path>8080</path>.","To use a custom port and the default hostname:","","<port>");
29
32
Console::setCommandOption($this->command,"quiet","Turn on quiet mode for the server.","To turn on quiet mode:");
33
+
Console::setCommandOption($this->command,"with-watch","Start watching ./source when starting the server. Takes the same arguments as --watch.","To turn on with-watch mode:");
30
34
Console::setCommandSample($this->command,"To provide both a custom hostname and port:","--host <host> --port <port>");
0 commit comments