@@ -62,13 +62,16 @@ component {
6262
6363 // Determine watching patterns, either from arguments or boxoptions or defaults
6464 var globbingPaths = arguments .paths ?: getOptionsWatchers () ?: variables .PATHS ;
65- var globArray = globbingPaths .listToArray ();
66- var theDirectory = arguments .directory ?: boxOptions .reinitWatchDirectory ?: getCWD ();
67- theDirectory = resolvePath ( theDirectory );
65+ var globArray = globbingPaths .listToArray ();
66+ var theDirectory = arguments .directory ?: boxOptions .reinitWatchDirectory ?: getCWD ();
67+ theDirectory = resolvePath ( theDirectory );
6868
6969 // handle non numeric config
70- var delayMs = max ( val ( arguments .delay ?: boxOptions .reinitWatchDelay ?: variables .WATCH_DELAY ), variables .WATCH_DELAY );
71- var statusColors = {
70+ var delayMs = max (
71+ val ( arguments .delay ?: boxOptions .reinitWatchDelay ?: variables .WATCH_DELAY ),
72+ variables .WATCH_DELAY
73+ );
74+ var statusColors = {
7275 " added" : " green" ,
7376 " removed" : " red" ,
7477 " changed" : " yellow"
@@ -100,7 +103,7 @@ component {
100103 .greenLine ( " Watching the following files for a framework reinit" )
101104 .greenLine ( " ---------------------------------------------------" )
102105 .line ();
103- globArray .each ( (p ) = > print .greenLine ( " " & p ) );
106+ globArray .each ( ( p ) = > print .greenLine ( " " & p ) );
104107 print
105108 .line ()
106109 .greenLine ( " in directory: #theDirectory #" )
@@ -120,8 +123,14 @@ component {
120123 changeData [ status ].map ( function ( filePath ){
121124 print
122125 .text ( changetime , statusColors [ status ] )
123- .text ( filePath , statusColors [ status ] & " Bold" )
124- .text ( " " & status & " " , statusColors [ status ] )
126+ .text (
127+ filePath ,
128+ statusColors [ status ] & " Bold"
129+ )
130+ .text (
131+ " " & status & " " ,
132+ statusColors [ status ]
133+ )
125134 .toConsole ();
126135 } )
127136 }
0 commit comments