File tree 3 files changed +56
-0
lines changed
3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,27 @@ Run commands concurrently (alias: c)
352
352
konk run concurrently <command...> [flags]
353
353
```
354
354
355
+ ### Examples
356
+
357
+ ```
358
+ # Run two commands concurrently
359
+
360
+ konk run concurrently "script/api-server" "script/frontend-server"
361
+
362
+ # Run a set of npm commands concurrently
363
+
364
+ konk run concurrently -n lint -n test
365
+
366
+ # Run a set of npm commands concurrently, but aggregate their output
367
+
368
+ konk run concurrently -g -n lint -n test
369
+
370
+ # Run all npm commands prefixed with "check:" concurrently using Bun, ignore
371
+ # errors, aggregate output, and use the script name as the label
372
+
373
+ konk run concurrently -bgcL -n "check:*"
374
+ ```
375
+
355
376
### Options
356
377
357
378
```
@@ -386,6 +407,18 @@ Run commands serially (alias: s)
386
407
konk run serially <command...> [flags]
387
408
```
388
409
410
+ ### Examples
411
+
412
+ ```
413
+ # Run two commands in serial
414
+
415
+ konk run serially "echo foo" "echo bar"
416
+
417
+ # Run a set of npm commands in serial
418
+
419
+ konk run serially -n build -n deploy
420
+ ```
421
+
389
422
### Options
390
423
391
424
```
Original file line number Diff line number Diff line change @@ -16,6 +16,22 @@ var cCommand = cobra.Command{
16
16
Use : "concurrently <command...>" ,
17
17
Aliases : []string {"c" },
18
18
Short : "Run commands concurrently (alias: c)" ,
19
+ Example : `# Run two commands concurrently
20
+
21
+ konk run concurrently "script/api-server" "script/frontend-server"
22
+
23
+ # Run a set of npm commands concurrently
24
+
25
+ konk run concurrently -n lint -n test
26
+
27
+ # Run a set of npm commands concurrently, but aggregate their output
28
+
29
+ konk run concurrently -g -n lint -n test
30
+
31
+ # Run all npm commands prefixed with "check:" concurrently using Bun, ignore
32
+ # errors, aggregate output, and use the script name as the label
33
+
34
+ konk run concurrently -bgcL -n "check:*"` ,
19
35
RunE : func (cmd * cobra.Command , args []string ) error {
20
36
dbg := debugger .Get (cmd .Context ())
21
37
dbg .Flags (cmd )
Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ var sCommand = cobra.Command{
16
16
Use : "serially <command...>" ,
17
17
Aliases : []string {"s" },
18
18
Short : "Run commands serially (alias: s)" ,
19
+ Example : `# Run two commands in serial
20
+
21
+ konk run serially "echo foo" "echo bar"
22
+
23
+ # Run a set of npm commands in serial
24
+
25
+ konk run serially -n build -n deploy` ,
19
26
RunE : func (cmd * cobra.Command , args []string ) error {
20
27
dbg := debugger .Get (cmd .Context ())
21
28
dbg .Flags (cmd )
You can’t perform that action at this time.
0 commit comments