@enspirit/emb 0.22.1 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +91 -117
  2. package/dist/src/cli/abstract/KubernetesCommand.d.ts +5 -1
  3. package/dist/src/cli/abstract/KubernetesCommand.js +11 -2
  4. package/dist/src/cli/commands/components/shell.d.ts +1 -1
  5. package/dist/src/cli/commands/components/shell.js +8 -6
  6. package/dist/src/cli/commands/down.d.ts +4 -0
  7. package/dist/src/cli/commands/down.js +17 -12
  8. package/dist/src/cli/commands/kubernetes/logs.js +7 -12
  9. package/dist/src/cli/commands/kubernetes/ps.js +2 -1
  10. package/dist/src/cli/commands/kubernetes/restart.js +2 -1
  11. package/dist/src/cli/commands/kubernetes/shell.js +7 -10
  12. package/dist/src/cli/commands/logs/archive.d.ts +1 -1
  13. package/dist/src/cli/commands/logs/archive.js +12 -11
  14. package/dist/src/cli/commands/logs/index.d.ts +1 -1
  15. package/dist/src/cli/commands/logs/index.js +12 -12
  16. package/dist/src/cli/commands/restart.d.ts +1 -1
  17. package/dist/src/cli/commands/restart.js +10 -9
  18. package/dist/src/cli/commands/start.d.ts +1 -1
  19. package/dist/src/cli/commands/start.js +7 -10
  20. package/dist/src/cli/commands/stop.d.ts +4 -0
  21. package/dist/src/cli/commands/stop.js +17 -12
  22. package/dist/src/cli/commands/up.d.ts +1 -1
  23. package/dist/src/cli/commands/up.js +20 -19
  24. package/dist/src/config/schema.d.ts +33 -1
  25. package/dist/src/config/schema.json +42 -1
  26. package/dist/src/docker/compose/client.d.ts +15 -1
  27. package/dist/src/docker/compose/client.js +32 -2
  28. package/dist/src/docker/compose/operations/ComposeDownOperation.d.ts +6 -6
  29. package/dist/src/docker/compose/operations/ComposeDownOperation.js +28 -9
  30. package/dist/src/docker/compose/operations/ComposeLogsArchiveOperation.d.ts +3 -3
  31. package/dist/src/docker/compose/operations/ComposeLogsArchiveOperation.js +12 -13
  32. package/dist/src/docker/compose/operations/ComposeStopOperation.d.ts +6 -6
  33. package/dist/src/docker/compose/operations/ComposeStopOperation.js +28 -9
  34. package/dist/src/docker/compose/operations/ComposeUpOperation.d.ts +1 -1
  35. package/dist/src/docker/compose/operations/ComposeUpOperation.js +4 -4
  36. package/dist/src/kubernetes/index.d.ts +1 -0
  37. package/dist/src/kubernetes/index.js +1 -0
  38. package/dist/src/kubernetes/operations/GetComponentPodOperation.d.ts +17 -0
  39. package/dist/src/kubernetes/operations/GetComponentPodOperation.js +77 -0
  40. package/dist/src/kubernetes/operations/GetDeploymentPodsOperation.js +3 -2
  41. package/dist/src/kubernetes/operations/PodExecOperation.d.ts +20 -0
  42. package/dist/src/kubernetes/operations/PodExecOperation.js +158 -0
  43. package/dist/src/kubernetes/operations/index.d.ts +3 -0
  44. package/dist/src/kubernetes/operations/index.js +3 -0
  45. package/dist/src/kubernetes/utils/index.d.ts +1 -0
  46. package/dist/src/kubernetes/utils/index.js +1 -0
  47. package/dist/src/kubernetes/utils/resolveNamespace.d.ts +13 -0
  48. package/dist/src/kubernetes/utils/resolveNamespace.js +12 -0
  49. package/dist/src/monorepo/operations/tasks/RunTasksOperation.d.ts +2 -0
  50. package/dist/src/monorepo/operations/tasks/RunTasksOperation.js +43 -3
  51. package/oclif.manifest.json +228 -278
  52. package/package.json +1 -1
  53. package/dist/src/cli/commands/components/logs.d.ts +0 -14
  54. package/dist/src/cli/commands/components/logs.js +0 -44
package/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @enspirit/emb
14
14
  $ emb COMMAND
15
15
  running command...
16
16
  $ emb (--version)
17
- @enspirit/emb/0.22.1 darwin-arm64 node-v22.21.1
17
+ @enspirit/emb/0.24.0 darwin-x64 node-v22.18.0
18
18
  $ emb --help [COMMAND]
19
19
  USAGE
20
20
  $ emb COMMAND
@@ -26,12 +26,11 @@ USAGE
26
26
  * [`emb autocomplete [SHELL]`](#emb-autocomplete-shell)
27
27
  * [`emb clean`](#emb-clean)
28
28
  * [`emb components`](#emb-components)
29
- * [`emb components logs [COMPONENT]`](#emb-components-logs-component)
30
- * [`emb components shell COMPONENT`](#emb-components-shell-component)
29
+ * [`emb components shell SERVICE`](#emb-components-shell-service)
31
30
  * [`emb config print`](#emb-config-print)
32
31
  * [`emb containers`](#emb-containers)
33
32
  * [`emb containers prune`](#emb-containers-prune)
34
- * [`emb down`](#emb-down)
33
+ * [`emb down [SERVICE]`](#emb-down-service)
35
34
  * [`emb help [COMMAND]`](#emb-help-command)
36
35
  * [`emb images`](#emb-images)
37
36
  * [`emb images delete`](#emb-images-delete)
@@ -41,22 +40,22 @@ USAGE
41
40
  * [`emb kubernetes ps`](#emb-kubernetes-ps)
42
41
  * [`emb kubernetes restart [DEPLOYMENT]`](#emb-kubernetes-restart-deployment)
43
42
  * [`emb kubernetes shell COMPONENT`](#emb-kubernetes-shell-component)
44
- * [`emb logs [COMPONENT]`](#emb-logs-component)
45
- * [`emb logs archive [COMPONENT]`](#emb-logs-archive-component)
43
+ * [`emb logs [SERVICE]`](#emb-logs-service)
44
+ * [`emb logs archive [SERVICE]`](#emb-logs-archive-service)
46
45
  * [`emb ps`](#emb-ps)
47
46
  * [`emb resources`](#emb-resources)
48
47
  * [`emb resources build [COMPONENT]`](#emb-resources-build-component)
49
- * [`emb restart [COMPONENT]`](#emb-restart-component)
48
+ * [`emb restart [SERVICE]`](#emb-restart-service)
50
49
  * [`emb run TASK`](#emb-run-task)
51
50
  * [`emb secrets`](#emb-secrets)
52
51
  * [`emb secrets providers`](#emb-secrets-providers)
53
52
  * [`emb secrets validate`](#emb-secrets-validate)
54
- * [`emb shell COMPONENT`](#emb-shell-component)
55
- * [`emb start [COMPONENT]`](#emb-start-component)
56
- * [`emb stop`](#emb-stop)
53
+ * [`emb shell SERVICE`](#emb-shell-service)
54
+ * [`emb start [SERVICE]`](#emb-start-service)
55
+ * [`emb stop [SERVICE]`](#emb-stop-service)
57
56
  * [`emb tasks`](#emb-tasks)
58
57
  * [`emb tasks run TASK`](#emb-tasks-run-task)
59
- * [`emb up [COMPONENT]`](#emb-up-component)
58
+ * [`emb up [SERVICE]`](#emb-up-service)
60
59
  * [`emb update [CHANNEL]`](#emb-update-channel)
61
60
 
62
61
  ## `emb autocomplete [SHELL]`
@@ -113,7 +112,7 @@ EXAMPLES
113
112
  $ emb clean
114
113
  ```
115
114
 
116
- _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/clean.ts)_
115
+ _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/clean.ts)_
117
116
 
118
117
  ## `emb components`
119
118
 
@@ -138,49 +137,18 @@ EXAMPLES
138
137
  $ emb components
139
138
  ```
140
139
 
141
- _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/components/index.ts)_
140
+ _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/components/index.ts)_
142
141
 
143
- ## `emb components logs [COMPONENT]`
142
+ ## `emb components shell SERVICE`
144
143
 
145
- Get components logs.
144
+ Get a shell on a running service.
146
145
 
147
146
  ```
148
147
  USAGE
149
- $ emb components logs [COMPONENT...] [--verbose] [-C <value>] [-f]
148
+ $ emb components shell SERVICE [--verbose] [-C <value>] [-s <value>]
150
149
 
151
150
  ARGUMENTS
152
- [COMPONENT...] The component(s) you want to see the logs of (all if omitted)
153
-
154
- FLAGS
155
- -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
156
- -f, --[no-]follow Follow log output
157
- --[no-]verbose
158
-
159
- DESCRIPTION
160
- Get components logs.
161
-
162
- EXAMPLES
163
- $ emb components logs
164
-
165
- $ emb components logs backend
166
-
167
- $ emb components logs backend frontend
168
-
169
- $ emb components logs --no-follow backend
170
- ```
171
-
172
- _See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/components/logs.ts)_
173
-
174
- ## `emb components shell COMPONENT`
175
-
176
- Get a shell on a running component.
177
-
178
- ```
179
- USAGE
180
- $ emb components shell COMPONENT [--verbose] [-C <value>] [-s <value>]
181
-
182
- ARGUMENTS
183
- COMPONENT The component you want to get a shell on
151
+ SERVICE The service you want to get a shell on
184
152
 
185
153
  FLAGS
186
154
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -188,7 +156,7 @@ FLAGS
188
156
  --[no-]verbose
189
157
 
190
158
  DESCRIPTION
191
- Get a shell on a running component.
159
+ Get a shell on a running service.
192
160
 
193
161
  ALIASES
194
162
  $ emb shell
@@ -197,7 +165,7 @@ EXAMPLES
197
165
  $ emb components shell
198
166
  ```
199
167
 
200
- _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/components/shell.ts)_
168
+ _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/components/shell.ts)_
201
169
 
202
170
  ## `emb config print`
203
171
 
@@ -222,7 +190,7 @@ EXAMPLES
222
190
  $ emb config print
223
191
  ```
224
192
 
225
- _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/config/print.ts)_
193
+ _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/config/print.ts)_
226
194
 
227
195
  ## `emb containers`
228
196
 
@@ -247,7 +215,7 @@ EXAMPLES
247
215
  $ emb containers
248
216
  ```
249
217
 
250
- _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/containers/index.ts)_
218
+ _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/containers/index.ts)_
251
219
 
252
220
  ## `emb containers prune`
253
221
 
@@ -271,15 +239,18 @@ EXAMPLES
271
239
  $ emb containers prune
272
240
  ```
273
241
 
274
- _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/containers/prune.ts)_
242
+ _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/containers/prune.ts)_
275
243
 
276
- ## `emb down`
244
+ ## `emb down [SERVICE]`
277
245
 
278
246
  Stop the whole project.
279
247
 
280
248
  ```
281
249
  USAGE
282
- $ emb down [--json] [--verbose] [-C <value>] [--flavor <value>]
250
+ $ emb down [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>]
251
+
252
+ ARGUMENTS
253
+ [SERVICE...] The service(s) to stop and remove
283
254
 
284
255
  FLAGS
285
256
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -296,7 +267,7 @@ EXAMPLES
296
267
  $ emb down
297
268
  ```
298
269
 
299
- _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/down.ts)_
270
+ _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/down.ts)_
300
271
 
301
272
  ## `emb help [COMMAND]`
302
273
 
@@ -342,7 +313,7 @@ EXAMPLES
342
313
  $ emb images
343
314
  ```
344
315
 
345
- _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/images/index.ts)_
316
+ _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/images/index.ts)_
346
317
 
347
318
  ## `emb images delete`
348
319
 
@@ -367,7 +338,7 @@ EXAMPLES
367
338
  $ emb images delete
368
339
  ```
369
340
 
370
- _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/images/delete.ts)_
341
+ _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/images/delete.ts)_
371
342
 
372
343
  ## `emb images prune`
373
344
 
@@ -392,7 +363,7 @@ EXAMPLES
392
363
  $ emb images prune
393
364
  ```
394
365
 
395
- _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/images/prune.ts)_
366
+ _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/images/prune.ts)_
396
367
 
397
368
  ## `emb images push`
398
369
 
@@ -421,7 +392,7 @@ EXAMPLES
421
392
  $ emb images push --registry my.registry.io --retag newtag
422
393
  ```
423
394
 
424
- _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/images/push.ts)_
395
+ _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/images/push.ts)_
425
396
 
426
397
  ## `emb kubernetes logs COMPONENT`
427
398
 
@@ -429,7 +400,7 @@ Follow kubernetes logs.
429
400
 
430
401
  ```
431
402
  USAGE
432
- $ emb kubernetes logs COMPONENT -n <value> [--verbose] [-C <value>] [-f]
403
+ $ emb kubernetes logs COMPONENT [--verbose] [-C <value>] [-n <value>] [-f]
433
404
 
434
405
  ARGUMENTS
435
406
  COMPONENT The component you want to see the logs of
@@ -437,7 +408,7 @@ ARGUMENTS
437
408
  FLAGS
438
409
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
439
410
  -f, --[no-]follow Follow log output
440
- -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
411
+ -n, --namespace=<value> The Kubernetes namespace to target
441
412
  --[no-]verbose
442
413
 
443
414
  DESCRIPTION
@@ -447,7 +418,7 @@ EXAMPLES
447
418
  $ emb kubernetes logs
448
419
  ```
449
420
 
450
- _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/kubernetes/logs.ts)_
421
+ _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/kubernetes/logs.ts)_
451
422
 
452
423
  ## `emb kubernetes ps`
453
424
 
@@ -455,11 +426,11 @@ Show running pods.
455
426
 
456
427
  ```
457
428
  USAGE
458
- $ emb kubernetes ps -n <value> [--verbose] [-C <value>] [--watch]
429
+ $ emb kubernetes ps [--verbose] [-C <value>] [-n <value>] [--watch]
459
430
 
460
431
  FLAGS
461
432
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
462
- -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
433
+ -n, --namespace=<value> The Kubernetes namespace to target
463
434
  --[no-]verbose
464
435
  --[no-]watch
465
436
 
@@ -470,7 +441,7 @@ EXAMPLES
470
441
  $ emb kubernetes ps
471
442
  ```
472
443
 
473
- _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/kubernetes/ps.ts)_
444
+ _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/kubernetes/ps.ts)_
474
445
 
475
446
  ## `emb kubernetes restart [DEPLOYMENT]`
476
447
 
@@ -478,14 +449,14 @@ Restart pods of an instance.
478
449
 
479
450
  ```
480
451
  USAGE
481
- $ emb kubernetes restart [DEPLOYMENT...] -n <value> [--verbose] [-C <value>]
452
+ $ emb kubernetes restart [DEPLOYMENT...] [--verbose] [-C <value>] [-n <value>]
482
453
 
483
454
  ARGUMENTS
484
455
  [DEPLOYMENT...] The deployment(s) to restart
485
456
 
486
457
  FLAGS
487
458
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
488
- -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
459
+ -n, --namespace=<value> The Kubernetes namespace to target
489
460
  --[no-]verbose
490
461
 
491
462
  DESCRIPTION
@@ -495,7 +466,7 @@ EXAMPLES
495
466
  $ emb kubernetes restart
496
467
  ```
497
468
 
498
- _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/kubernetes/restart.ts)_
469
+ _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/kubernetes/restart.ts)_
499
470
 
500
471
  ## `emb kubernetes shell COMPONENT`
501
472
 
@@ -503,14 +474,14 @@ Get a shell on a deployed component.
503
474
 
504
475
  ```
505
476
  USAGE
506
- $ emb kubernetes shell COMPONENT -n <value> [--verbose] [-C <value>] [-s <value>]
477
+ $ emb kubernetes shell COMPONENT [--verbose] [-C <value>] [-n <value>] [-s <value>]
507
478
 
508
479
  ARGUMENTS
509
480
  COMPONENT The component you want to get a shell on
510
481
 
511
482
  FLAGS
512
483
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
513
- -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
484
+ -n, --namespace=<value> The Kubernetes namespace to target
514
485
  -s, --shell=<value> [default: bash] The shell to run
515
486
  --[no-]verbose
516
487
 
@@ -524,18 +495,18 @@ EXAMPLES
524
495
  $ emb kubernetes shell
525
496
  ```
526
497
 
527
- _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/kubernetes/shell.ts)_
498
+ _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/kubernetes/shell.ts)_
528
499
 
529
- ## `emb logs [COMPONENT]`
500
+ ## `emb logs [SERVICE]`
530
501
 
531
- Get components logs.
502
+ Get service logs.
532
503
 
533
504
  ```
534
505
  USAGE
535
- $ emb logs [COMPONENT...] [--verbose] [-C <value>] [-f]
506
+ $ emb logs [SERVICE...] [--verbose] [-C <value>] [-f]
536
507
 
537
508
  ARGUMENTS
538
- [COMPONENT...] The component(s) you want to see the logs of (all if omitted)
509
+ [SERVICE...] The service(s) you want to see the logs of (all if omitted)
539
510
 
540
511
  FLAGS
541
512
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -543,7 +514,7 @@ FLAGS
543
514
  --[no-]verbose
544
515
 
545
516
  DESCRIPTION
546
- Get components logs.
517
+ Get service logs.
547
518
 
548
519
  EXAMPLES
549
520
  $ emb logs
@@ -555,18 +526,18 @@ EXAMPLES
555
526
  $ emb logs --no-follow backend
556
527
  ```
557
528
 
558
- _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/logs/index.ts)_
529
+ _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/logs/index.ts)_
559
530
 
560
- ## `emb logs archive [COMPONENT]`
531
+ ## `emb logs archive [SERVICE]`
561
532
 
562
- Archive docker compose logs to files (one file per component).
533
+ Archive docker compose logs to files (one file per service).
563
534
 
564
535
  ```
565
536
  USAGE
566
- $ emb logs archive [COMPONENT...] [--json] [--verbose] [-C <value>] [-t] [--tail <value>] [-o <value>]
537
+ $ emb logs archive [SERVICE...] [--json] [--verbose] [-C <value>] [-t] [--tail <value>] [-o <value>]
567
538
 
568
539
  ARGUMENTS
569
- [COMPONENT...] The component(s) to archive logs for (all if omitted)
540
+ [SERVICE...] The service(s) to archive logs for (all if omitted)
570
541
 
571
542
  FLAGS
572
543
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -579,7 +550,7 @@ GLOBAL FLAGS
579
550
  --json Format output as json.
580
551
 
581
552
  DESCRIPTION
582
- Archive docker compose logs to files (one file per component).
553
+ Archive docker compose logs to files (one file per service).
583
554
 
584
555
  EXAMPLES
585
556
  $ emb logs archive
@@ -591,7 +562,7 @@ EXAMPLES
591
562
  $ emb logs archive --tail 1000
592
563
  ```
593
564
 
594
- _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/logs/archive.ts)_
565
+ _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/logs/archive.ts)_
595
566
 
596
567
  ## `emb ps`
597
568
 
@@ -614,7 +585,7 @@ EXAMPLES
614
585
  $ emb ps
615
586
  ```
616
587
 
617
- _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/ps.ts)_
588
+ _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/ps.ts)_
618
589
 
619
590
  ## `emb resources`
620
591
 
@@ -639,7 +610,7 @@ EXAMPLES
639
610
  $ emb resources
640
611
  ```
641
612
 
642
- _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/resources/index.ts)_
613
+ _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/resources/index.ts)_
643
614
 
644
615
  ## `emb resources build [COMPONENT]`
645
616
 
@@ -669,22 +640,22 @@ EXAMPLES
669
640
  $ emb resources build build --flavor development
670
641
  ```
671
642
 
672
- _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/resources/build.ts)_
643
+ _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/resources/build.ts)_
673
644
 
674
- ## `emb restart [COMPONENT]`
645
+ ## `emb restart [SERVICE]`
675
646
 
676
647
  Restart the whole project.
677
648
 
678
649
  ```
679
650
  USAGE
680
- $ emb restart [COMPONENT...] [--json] [--verbose] [-C <value>] [-f]
651
+ $ emb restart [SERVICE...] [--json] [--verbose] [-C <value>] [-f]
681
652
 
682
653
  ARGUMENTS
683
- [COMPONENT...] The component(s) to restart
654
+ [SERVICE...] The service(s) to restart
684
655
 
685
656
  FLAGS
686
657
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
687
- -f, --no-deps Don't restart depdendent components
658
+ -f, --no-deps Don't restart dependent services
688
659
  --[no-]verbose
689
660
 
690
661
  GLOBAL FLAGS
@@ -697,7 +668,7 @@ EXAMPLES
697
668
  $ emb restart
698
669
  ```
699
670
 
700
- _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/restart.ts)_
671
+ _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/restart.ts)_
701
672
 
702
673
  ## `emb run TASK`
703
674
 
@@ -705,7 +676,7 @@ Run tasks.
705
676
 
706
677
  ```
707
678
  USAGE
708
- $ emb run TASK... [--json] [--verbose] [-C <value>] [-x container|local] [-a]
679
+ $ emb run TASK... [--json] [--verbose] [-C <value>] [-x container|kubernetes|local] [-a]
709
680
 
710
681
  ARGUMENTS
711
682
  TASK... List of tasks to run. You can provide either ids or names (eg: component:task or task)
@@ -714,7 +685,7 @@ FLAGS
714
685
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
715
686
  -a, --all-matching Run all tasks matching (when multiple matches)
716
687
  -x, --executor=<option> Where to run the task. (experimental!)
717
- <options: container|local>
688
+ <options: container|kubernetes|local>
718
689
  --[no-]verbose
719
690
 
720
691
  GLOBAL FLAGS
@@ -755,7 +726,7 @@ EXAMPLES
755
726
  $ emb secrets --json
756
727
  ```
757
728
 
758
- _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/secrets/index.ts)_
729
+ _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/secrets/index.ts)_
759
730
 
760
731
  ## `emb secrets providers`
761
732
 
@@ -780,7 +751,7 @@ EXAMPLES
780
751
  $ emb secrets providers
781
752
  ```
782
753
 
783
- _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/secrets/providers.ts)_
754
+ _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/secrets/providers.ts)_
784
755
 
785
756
  ## `emb secrets validate`
786
757
 
@@ -810,18 +781,18 @@ EXAMPLES
810
781
  $ emb secrets validate --json
811
782
  ```
812
783
 
813
- _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/secrets/validate.ts)_
784
+ _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/secrets/validate.ts)_
814
785
 
815
- ## `emb shell COMPONENT`
786
+ ## `emb shell SERVICE`
816
787
 
817
- Get a shell on a running component.
788
+ Get a shell on a running service.
818
789
 
819
790
  ```
820
791
  USAGE
821
- $ emb shell COMPONENT [--verbose] [-C <value>] [-s <value>]
792
+ $ emb shell SERVICE [--verbose] [-C <value>] [-s <value>]
822
793
 
823
794
  ARGUMENTS
824
- COMPONENT The component you want to get a shell on
795
+ SERVICE The service you want to get a shell on
825
796
 
826
797
  FLAGS
827
798
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -829,7 +800,7 @@ FLAGS
829
800
  --[no-]verbose
830
801
 
831
802
  DESCRIPTION
832
- Get a shell on a running component.
803
+ Get a shell on a running service.
833
804
 
834
805
  ALIASES
835
806
  $ emb shell
@@ -838,16 +809,16 @@ EXAMPLES
838
809
  $ emb shell
839
810
  ```
840
811
 
841
- ## `emb start [COMPONENT]`
812
+ ## `emb start [SERVICE]`
842
813
 
843
814
  Starts the whole project.
844
815
 
845
816
  ```
846
817
  USAGE
847
- $ emb start [COMPONENT...] [--json] [--verbose] [-C <value>]
818
+ $ emb start [SERVICE...] [--json] [--verbose] [-C <value>]
848
819
 
849
820
  ARGUMENTS
850
- [COMPONENT...] The component(s) to start
821
+ [SERVICE...] The service(s) to start
851
822
 
852
823
  FLAGS
853
824
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -863,15 +834,18 @@ EXAMPLES
863
834
  $ emb start
864
835
  ```
865
836
 
866
- _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/start.ts)_
837
+ _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/start.ts)_
867
838
 
868
- ## `emb stop`
839
+ ## `emb stop [SERVICE]`
869
840
 
870
841
  Stop the whole project.
871
842
 
872
843
  ```
873
844
  USAGE
874
- $ emb stop [--json] [--verbose] [-C <value>] [--flavor <value>]
845
+ $ emb stop [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>]
846
+
847
+ ARGUMENTS
848
+ [SERVICE...] The service(s) to stop
875
849
 
876
850
  FLAGS
877
851
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -888,7 +862,7 @@ EXAMPLES
888
862
  $ emb stop
889
863
  ```
890
864
 
891
- _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/stop.ts)_
865
+ _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/stop.ts)_
892
866
 
893
867
  ## `emb tasks`
894
868
 
@@ -912,7 +886,7 @@ EXAMPLES
912
886
  $ emb tasks
913
887
  ```
914
888
 
915
- _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/tasks/index.ts)_
889
+ _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/tasks/index.ts)_
916
890
 
917
891
  ## `emb tasks run TASK`
918
892
 
@@ -920,7 +894,7 @@ Run tasks.
920
894
 
921
895
  ```
922
896
  USAGE
923
- $ emb tasks run TASK... [--json] [--verbose] [-C <value>] [-x container|local] [-a]
897
+ $ emb tasks run TASK... [--json] [--verbose] [-C <value>] [-x container|kubernetes|local] [-a]
924
898
 
925
899
  ARGUMENTS
926
900
  TASK... List of tasks to run. You can provide either ids or names (eg: component:task or task)
@@ -929,7 +903,7 @@ FLAGS
929
903
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
930
904
  -a, --all-matching Run all tasks matching (when multiple matches)
931
905
  -x, --executor=<option> Where to run the task. (experimental!)
932
- <options: container|local>
906
+ <options: container|kubernetes|local>
933
907
  --[no-]verbose
934
908
 
935
909
  GLOBAL FLAGS
@@ -945,18 +919,18 @@ EXAMPLES
945
919
  $ emb tasks run
946
920
  ```
947
921
 
948
- _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/tasks/run.ts)_
922
+ _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/tasks/run.ts)_
949
923
 
950
- ## `emb up [COMPONENT]`
924
+ ## `emb up [SERVICE]`
951
925
 
952
926
  Start the whole project.
953
927
 
954
928
  ```
955
929
  USAGE
956
- $ emb up [COMPONENT...] [--json] [--verbose] [-C <value>] [--flavor <value>] [-f]
930
+ $ emb up [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>] [-f]
957
931
 
958
932
  ARGUMENTS
959
- [COMPONENT...] The component(s) to build and start
933
+ [SERVICE...] The service(s) to build and start
960
934
 
961
935
  FLAGS
962
936
  -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
@@ -974,7 +948,7 @@ EXAMPLES
974
948
  $ emb up
975
949
  ```
976
950
 
977
- _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/up.ts)_
951
+ _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.24.0/src/commands/up.ts)_
978
952
 
979
953
  ## `emb update [CHANNEL]`
980
954
 
@@ -1,8 +1,12 @@
1
1
  import { BaseCommand } from './BaseCommand.js';
2
2
  export declare abstract class KubernetesCommand extends BaseCommand {
3
3
  static baseFlags: {
4
- namespace: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
4
+ namespace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
5
5
  verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
6
6
  root: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
7
  };
8
+ /**
9
+ * Resolves the namespace using CLI flag > K8S_NAMESPACE env > config > 'default'
10
+ */
11
+ protected resolveNamespace(cliFlag?: string): string;
8
12
  }
@@ -1,4 +1,5 @@
1
1
  import { Flags } from '@oclif/core';
2
+ import { resolveNamespace } from '../../kubernetes/utils/index.js';
2
3
  import { BaseCommand } from './BaseCommand.js';
3
4
  export class KubernetesCommand extends BaseCommand {
4
5
  static baseFlags = {
@@ -8,8 +9,16 @@ export class KubernetesCommand extends BaseCommand {
8
9
  description: 'The Kubernetes namespace to target',
9
10
  aliases: ['ns'],
10
11
  char: 'n',
11
- required: true,
12
- env: 'K8S_NAMESPACE',
12
+ required: false,
13
13
  }),
14
14
  };
15
+ /**
16
+ * Resolves the namespace using CLI flag > K8S_NAMESPACE env > config > 'default'
17
+ */
18
+ resolveNamespace(cliFlag) {
19
+ return resolveNamespace({
20
+ cliFlag,
21
+ config: this.context.monorepo.config.defaults?.kubernetes?.namespace,
22
+ });
23
+ }
15
24
  }
@@ -8,7 +8,7 @@ export default class ComponentShellCommand extends BaseCommand {
8
8
  shell: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
9
9
  };
10
10
  static args: {
11
- component: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
11
+ service: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
12
12
  };
13
13
  run(): Promise<void>;
14
14
  }