@@ -20,14 +20,14 @@ const args = yargs
2020 describe :
2121 'How many processes should run at once.\n' +
2222 'New processes only spawn after all restart tries of a process.' ,
23- type : 'number'
23+ type : 'number' ,
2424 } ,
2525 'names' : {
2626 alias : 'n' ,
2727 describe :
2828 'List of custom names to be used in prefix template.\n' +
2929 'Example names: "main,browser,server"' ,
30- type : 'string'
30+ type : 'string' ,
3131 } ,
3232 'name-separator' : {
3333 describe :
@@ -42,48 +42,48 @@ const args = yargs
4242 'of the "first" child to terminate, the "last child", or succeed ' +
4343 'only if "all" child processes succeed.' ,
4444 choices : [ 'first' , 'last' , 'all' ] as const ,
45- default : defaults . success
45+ default : defaults . success ,
4646 } ,
4747 'raw' : {
4848 alias : 'r' ,
4949 describe :
5050 'Output only raw output of processes, disables prettifying ' +
5151 'and concurrently coloring.' ,
52- type : 'boolean'
52+ type : 'boolean' ,
5353 } ,
5454 // This one is provided for free. Chalk reads this itself and removes colours.
5555 // https://www.npmjs.com/package/chalk#chalksupportscolor
5656 'no-color' : {
5757 describe : 'Disables colors from logging' ,
58- type : 'boolean'
58+ type : 'boolean' ,
5959 } ,
6060 'hide' : {
6161 describe :
6262 'Comma-separated list of processes to hide the output.\n' +
6363 'The processes can be identified by their name or index.' ,
6464 default : defaults . hide ,
65- type : 'string'
65+ type : 'string' ,
6666 } ,
6767 'group' : {
6868 alias : 'g' ,
6969 describe : 'Order the output as if the commands were run sequentially.' ,
70- type : 'boolean'
70+ type : 'boolean' ,
7171 } ,
7272 'timings' : {
7373 describe : 'Show timing information for all processes' ,
7474 type : 'boolean' ,
75- default : defaults . timings
75+ default : defaults . timings ,
7676 } ,
7777
7878 // Kill others
7979 'kill-others' : {
8080 alias : 'k' ,
8181 describe : 'kill other processes if one exits or dies' ,
82- type : 'boolean'
82+ type : 'boolean' ,
8383 } ,
8484 'kill-others-on-fail' : {
8585 describe : 'kill other processes if one exits with non zero status code' ,
86- type : 'boolean'
86+ type : 'boolean' ,
8787 } ,
8888
8989 // Prefix
@@ -94,7 +94,7 @@ const args = yargs
9494 'Possible values: index, pid, time, command, name, none, or a template. ' +
9595 'Example template: "{time}-{pid}"' ,
9696 defaultDescription : 'index or name (when --names is set)' ,
97- type : 'string'
97+ type : 'string' ,
9898 } ,
9999 'prefix-colors' : {
100100 alias : 'c' ,
@@ -107,21 +107,21 @@ const args = yargs
107107 '- Available background colors: bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite\n' +
108108 'See https://www.npmjs.com/package/chalk for more information.' ,
109109 default : defaults . prefixColors ,
110- type : 'string'
110+ type : 'string' ,
111111 } ,
112112 'prefix-length' : {
113113 alias : 'l' ,
114114 describe :
115115 'Limit how many characters of the command is displayed in prefix. ' +
116116 'The option can be used to shorten the prefix when it is set to "command"' ,
117117 default : defaults . prefixLength ,
118- type : 'number'
118+ type : 'number' ,
119119 } ,
120120 'timestamp-format' : {
121121 alias : 't' ,
122122 describe : 'Specify the timestamp in moment/date-fns format.' ,
123123 default : defaults . timestampFormat ,
124- type : 'string'
124+ type : 'string' ,
125125 } ,
126126
127127 // Restarting
@@ -130,12 +130,12 @@ const args = yargs
130130 'How many times a process that died should restart.\n' +
131131 'Negative numbers will make the process restart forever.' ,
132132 default : defaults . restartTries ,
133- type : 'number'
133+ type : 'number' ,
134134 } ,
135135 'restart-after' : {
136136 describe : 'Delay time to respawn the process, in milliseconds.' ,
137137 default : defaults . restartDelay ,
138- type : 'number'
138+ type : 'number' ,
139139 } ,
140140
141141 // Input
@@ -144,15 +144,15 @@ const args = yargs
144144 describe :
145145 'Whether input should be forwarded to the child processes. ' +
146146 'See examples for more information.' ,
147- type : 'boolean'
147+ type : 'boolean' ,
148148 } ,
149149 'default-input-target' : {
150150 default : defaults . defaultInputTarget ,
151151 describe :
152152 'Identifier for child process to which input on stdin ' +
153153 'should be sent if not specified at start of input.\n' +
154- 'Can be either the index or the name of the process.'
155- }
154+ 'Can be either the index or the name of the process.' ,
155+ } ,
156156 } )
157157 . group ( [ 'm' , 'n' , 'name-separator' , 'raw' , 's' , 'no-color' , 'hide' , 'group' , 'timings' ] , 'General' )
158158 . group ( [ 'p' , 'c' , 'l' , 't' ] , 'Prefix styling' )
@@ -166,7 +166,7 @@ const names = (args.names || '').split(args['name-separator']);
166166
167167concurrently ( args . _ . map ( ( command , index ) => ( {
168168 command : String ( command ) ,
169- name : names [ index ]
169+ name : names [ index ] ,
170170} ) ) , {
171171 handleInput : args [ 'handle-input' ] ,
172172 defaultInputTarget : args [ 'default-input-target' ] ,
@@ -184,8 +184,8 @@ concurrently(args._.map((command, index) => ({
184184 restartTries : args [ 'restart-tries' ] ,
185185 successCondition : args . success ,
186186 timestampFormat : args [ 'timestamp-format' ] ,
187- timings : args . timings
187+ timings : args . timings ,
188188} ) . result . then (
189189 ( ) => process . exit ( 0 ) ,
190- ( ) => process . exit ( 1 )
190+ ( ) => process . exit ( 1 ) ,
191191) ;
0 commit comments