@enspirit/emb 0.14.1 → 0.17.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 (60) hide show
  1. package/README.md +162 -43
  2. package/dist/src/cli/abstract/BaseCommand.d.ts +1 -0
  3. package/dist/src/cli/abstract/BaseCommand.js +23 -4
  4. package/dist/src/cli/abstract/FlavouredCommand.d.ts +1 -0
  5. package/dist/src/cli/abstract/KubernetesCommand.d.ts +1 -0
  6. package/dist/src/cli/commands/components/logs.d.ts +2 -1
  7. package/dist/src/cli/commands/components/logs.js +21 -24
  8. package/dist/src/cli/commands/secrets/index.d.ts +14 -0
  9. package/dist/src/cli/commands/secrets/index.js +71 -0
  10. package/dist/src/cli/commands/secrets/providers.d.ts +12 -0
  11. package/dist/src/cli/commands/secrets/providers.js +50 -0
  12. package/dist/src/cli/commands/secrets/validate.d.ts +18 -0
  13. package/dist/src/cli/commands/secrets/validate.js +145 -0
  14. package/dist/src/cli/hooks/init.js +7 -1
  15. package/dist/src/cli/hooks/postrun.d.ts +7 -0
  16. package/dist/src/cli/hooks/postrun.js +128 -0
  17. package/dist/src/config/index.d.ts +10 -1
  18. package/dist/src/config/index.js +28 -3
  19. package/dist/src/config/schema.d.ts +7 -4
  20. package/dist/src/config/schema.json +173 -9
  21. package/dist/src/context.d.ts +9 -0
  22. package/dist/src/context.js +19 -0
  23. package/dist/src/docker/compose/operations/ComposeLogsOperation.d.ts +21 -0
  24. package/dist/src/docker/compose/operations/ComposeLogsOperation.js +85 -0
  25. package/dist/src/docker/compose/operations/index.d.ts +1 -0
  26. package/dist/src/docker/compose/operations/index.js +1 -0
  27. package/dist/src/docker/resources/DockerImageResource.js +16 -6
  28. package/dist/src/index.d.ts +1 -0
  29. package/dist/src/index.js +1 -0
  30. package/dist/src/monorepo/monorepo.js +13 -5
  31. package/dist/src/monorepo/operations/resources/BuildResourcesOperation.js +1 -2
  32. package/dist/src/monorepo/operations/tasks/RunTasksOperation.d.ts +1 -1
  33. package/dist/src/monorepo/operations/tasks/RunTasksOperation.js +1 -1
  34. package/dist/src/monorepo/plugins/VaultPlugin.d.ts +46 -0
  35. package/dist/src/monorepo/plugins/VaultPlugin.js +91 -0
  36. package/dist/src/monorepo/plugins/index.d.ts +1 -0
  37. package/dist/src/monorepo/plugins/index.js +3 -0
  38. package/dist/src/monorepo/resources/index.d.ts +1 -0
  39. package/dist/src/monorepo/resources/index.js +1 -0
  40. package/dist/src/secrets/SecretDiscovery.d.ts +46 -0
  41. package/dist/src/secrets/SecretDiscovery.js +82 -0
  42. package/dist/src/secrets/SecretManager.d.ts +52 -0
  43. package/dist/src/secrets/SecretManager.js +75 -0
  44. package/dist/src/secrets/SecretProvider.d.ts +45 -0
  45. package/dist/src/secrets/SecretProvider.js +38 -0
  46. package/dist/src/secrets/index.d.ts +3 -0
  47. package/dist/src/secrets/index.js +3 -0
  48. package/dist/src/secrets/providers/VaultOidcHelper.d.ts +39 -0
  49. package/dist/src/secrets/providers/VaultOidcHelper.js +226 -0
  50. package/dist/src/secrets/providers/VaultProvider.d.ts +74 -0
  51. package/dist/src/secrets/providers/VaultProvider.js +266 -0
  52. package/dist/src/secrets/providers/VaultTokenCache.d.ts +60 -0
  53. package/dist/src/secrets/providers/VaultTokenCache.js +188 -0
  54. package/dist/src/secrets/providers/index.d.ts +2 -0
  55. package/dist/src/secrets/providers/index.js +2 -0
  56. package/dist/src/types.d.ts +2 -0
  57. package/dist/src/utils/TemplateExpander.d.ts +13 -1
  58. package/dist/src/utils/TemplateExpander.js +68 -15
  59. package/oclif.manifest.json +473 -68
  60. package/package.json +36 -30
@@ -20,6 +20,15 @@
20
20
  "allowNo": true,
21
21
  "type": "boolean"
22
22
  },
23
+ "root": {
24
+ "char": "C",
25
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
26
+ "name": "root",
27
+ "required": false,
28
+ "hasDynamicHelp": false,
29
+ "multiple": false,
30
+ "type": "option"
31
+ },
23
32
  "force": {
24
33
  "char": "f",
25
34
  "description": "Force the deletion of containers & images",
@@ -65,6 +74,15 @@
65
74
  "allowNo": true,
66
75
  "type": "boolean"
67
76
  },
77
+ "root": {
78
+ "char": "C",
79
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
80
+ "name": "root",
81
+ "required": false,
82
+ "hasDynamicHelp": false,
83
+ "multiple": false,
84
+ "type": "option"
85
+ },
68
86
  "flavor": {
69
87
  "description": "Specify the flavor to use.",
70
88
  "name": "flavor",
@@ -104,6 +122,15 @@
104
122
  "allowNo": true,
105
123
  "type": "boolean"
106
124
  },
125
+ "root": {
126
+ "char": "C",
127
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
128
+ "name": "root",
129
+ "required": false,
130
+ "hasDynamicHelp": false,
131
+ "multiple": false,
132
+ "type": "option"
133
+ },
107
134
  "flavor": {
108
135
  "description": "Specify the flavor to use.",
109
136
  "name": "flavor",
@@ -162,6 +189,15 @@
162
189
  "allowNo": true,
163
190
  "type": "boolean"
164
191
  },
192
+ "root": {
193
+ "char": "C",
194
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
195
+ "name": "root",
196
+ "required": false,
197
+ "hasDynamicHelp": false,
198
+ "multiple": false,
199
+ "type": "option"
200
+ },
165
201
  "no-deps": {
166
202
  "char": "f",
167
203
  "description": "Don't restart depdendent components",
@@ -211,6 +247,15 @@
211
247
  "name": "verbose",
212
248
  "allowNo": true,
213
249
  "type": "boolean"
250
+ },
251
+ "root": {
252
+ "char": "C",
253
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
254
+ "name": "root",
255
+ "required": false,
256
+ "hasDynamicHelp": false,
257
+ "multiple": false,
258
+ "type": "option"
214
259
  }
215
260
  },
216
261
  "hasDynamicHelp": false,
@@ -250,6 +295,15 @@
250
295
  "allowNo": true,
251
296
  "type": "boolean"
252
297
  },
298
+ "root": {
299
+ "char": "C",
300
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
301
+ "name": "root",
302
+ "required": false,
303
+ "hasDynamicHelp": false,
304
+ "multiple": false,
305
+ "type": "option"
306
+ },
253
307
  "flavor": {
254
308
  "description": "Specify the flavor to use.",
255
309
  "name": "flavor",
@@ -301,6 +355,15 @@
301
355
  "allowNo": true,
302
356
  "type": "boolean"
303
357
  },
358
+ "root": {
359
+ "char": "C",
360
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
361
+ "name": "root",
362
+ "required": false,
363
+ "hasDynamicHelp": false,
364
+ "multiple": false,
365
+ "type": "option"
366
+ },
304
367
  "flavor": {
305
368
  "description": "Specify the flavor to use.",
306
369
  "name": "flavor",
@@ -354,6 +417,15 @@
354
417
  "allowNo": true,
355
418
  "type": "boolean"
356
419
  },
420
+ "root": {
421
+ "char": "C",
422
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
423
+ "name": "root",
424
+ "required": false,
425
+ "hasDynamicHelp": false,
426
+ "multiple": false,
427
+ "type": "option"
428
+ },
357
429
  "flavor": {
358
430
  "description": "Specify the flavor to use.",
359
431
  "name": "flavor",
@@ -387,14 +459,17 @@
387
459
  ],
388
460
  "args": {
389
461
  "component": {
390
- "description": "The component you want to see the logs of",
462
+ "description": "The component(s) you want to see the logs of (all if omitted)",
391
463
  "name": "component",
392
- "required": true
464
+ "required": false
393
465
  }
394
466
  },
395
467
  "description": "Get components logs.",
396
468
  "examples": [
397
- "<%= config.bin %> <%= command.id %>"
469
+ "<%= config.bin %> <%= command.id %>",
470
+ "<%= config.bin %> <%= command.id %> backend",
471
+ "<%= config.bin %> <%= command.id %> backend frontend",
472
+ "<%= config.bin %> <%= command.id %> --no-follow backend"
398
473
  ],
399
474
  "flags": {
400
475
  "verbose": {
@@ -402,6 +477,15 @@
402
477
  "allowNo": true,
403
478
  "type": "boolean"
404
479
  },
480
+ "root": {
481
+ "char": "C",
482
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
483
+ "name": "root",
484
+ "required": false,
485
+ "hasDynamicHelp": false,
486
+ "multiple": false,
487
+ "type": "option"
488
+ },
405
489
  "follow": {
406
490
  "char": "f",
407
491
  "description": "Follow log output",
@@ -416,7 +500,7 @@
416
500
  "pluginAlias": "@enspirit/emb",
417
501
  "pluginName": "@enspirit/emb",
418
502
  "pluginType": "core",
419
- "strict": true,
503
+ "strict": false,
420
504
  "enableJsonFlag": false,
421
505
  "isESM": true,
422
506
  "relativePath": [
@@ -449,6 +533,15 @@
449
533
  "allowNo": true,
450
534
  "type": "boolean"
451
535
  },
536
+ "root": {
537
+ "char": "C",
538
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
539
+ "name": "root",
540
+ "required": false,
541
+ "hasDynamicHelp": false,
542
+ "multiple": false,
543
+ "type": "option"
544
+ },
452
545
  "shell": {
453
546
  "char": "s",
454
547
  "description": "The shell to run",
@@ -497,6 +590,15 @@
497
590
  "allowNo": true,
498
591
  "type": "boolean"
499
592
  },
593
+ "root": {
594
+ "char": "C",
595
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
596
+ "name": "root",
597
+ "required": false,
598
+ "hasDynamicHelp": false,
599
+ "multiple": false,
600
+ "type": "option"
601
+ },
500
602
  "flavor": {
501
603
  "description": "Specify the flavor to use.",
502
604
  "name": "flavor",
@@ -544,6 +646,15 @@
544
646
  "allowNo": true,
545
647
  "type": "boolean"
546
648
  },
649
+ "root": {
650
+ "char": "C",
651
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
652
+ "name": "root",
653
+ "required": false,
654
+ "hasDynamicHelp": false,
655
+ "multiple": false,
656
+ "type": "option"
657
+ },
547
658
  "all": {
548
659
  "char": "a",
549
660
  "description": "Retun all containers. By default, only running containers are shown",
@@ -590,6 +701,15 @@
590
701
  "name": "verbose",
591
702
  "allowNo": true,
592
703
  "type": "boolean"
704
+ },
705
+ "root": {
706
+ "char": "C",
707
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
708
+ "name": "root",
709
+ "required": false,
710
+ "hasDynamicHelp": false,
711
+ "multiple": false,
712
+ "type": "option"
593
713
  }
594
714
  },
595
715
  "hasDynamicHelp": false,
@@ -630,6 +750,15 @@
630
750
  "allowNo": true,
631
751
  "type": "boolean"
632
752
  },
753
+ "root": {
754
+ "char": "C",
755
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
756
+ "name": "root",
757
+ "required": false,
758
+ "hasDynamicHelp": false,
759
+ "multiple": false,
760
+ "type": "option"
761
+ },
633
762
  "force": {
634
763
  "char": "f",
635
764
  "description": "Remove the image even if it is being used by stopped containers or has other tags",
@@ -677,6 +806,15 @@
677
806
  "allowNo": true,
678
807
  "type": "boolean"
679
808
  },
809
+ "root": {
810
+ "char": "C",
811
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
812
+ "name": "root",
813
+ "required": false,
814
+ "hasDynamicHelp": false,
815
+ "multiple": false,
816
+ "type": "option"
817
+ },
680
818
  "flavor": {
681
819
  "description": "Specify the flavor to use.",
682
820
  "name": "flavor",
@@ -732,6 +870,15 @@
732
870
  "allowNo": true,
733
871
  "type": "boolean"
734
872
  },
873
+ "root": {
874
+ "char": "C",
875
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
876
+ "name": "root",
877
+ "required": false,
878
+ "hasDynamicHelp": false,
879
+ "multiple": false,
880
+ "type": "option"
881
+ },
735
882
  "all": {
736
883
  "char": "a",
737
884
  "description": "Prune all images. When set to true all images will be pruned, not only dangling ones",
@@ -780,6 +927,15 @@
780
927
  "allowNo": true,
781
928
  "type": "boolean"
782
929
  },
930
+ "root": {
931
+ "char": "C",
932
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
933
+ "name": "root",
934
+ "required": false,
935
+ "hasDynamicHelp": false,
936
+ "multiple": false,
937
+ "type": "option"
938
+ },
783
939
  "flavor": {
784
940
  "description": "Specify the flavor to use.",
785
941
  "name": "flavor",
@@ -821,6 +977,139 @@
821
977
  "push.js"
822
978
  ]
823
979
  },
980
+ "resources:build": {
981
+ "aliases": [],
982
+ "args": {
983
+ "component": {
984
+ "description": "List of resources to build (defaults to all)",
985
+ "name": "component",
986
+ "required": false
987
+ }
988
+ },
989
+ "description": "Build the resources of the monorepo",
990
+ "examples": [
991
+ "<%= config.bin %> <%= command.id %> build --flavor development"
992
+ ],
993
+ "flags": {
994
+ "json": {
995
+ "description": "Format output as json.",
996
+ "helpGroup": "GLOBAL",
997
+ "name": "json",
998
+ "allowNo": false,
999
+ "type": "boolean"
1000
+ },
1001
+ "verbose": {
1002
+ "name": "verbose",
1003
+ "allowNo": true,
1004
+ "type": "boolean"
1005
+ },
1006
+ "root": {
1007
+ "char": "C",
1008
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1009
+ "name": "root",
1010
+ "required": false,
1011
+ "hasDynamicHelp": false,
1012
+ "multiple": false,
1013
+ "type": "option"
1014
+ },
1015
+ "flavor": {
1016
+ "description": "Specify the flavor to use.",
1017
+ "name": "flavor",
1018
+ "required": false,
1019
+ "hasDynamicHelp": false,
1020
+ "multiple": false,
1021
+ "type": "option"
1022
+ },
1023
+ "dry-run": {
1024
+ "description": "Do not build the resources but only produce build meta information",
1025
+ "name": "dry-run",
1026
+ "required": false,
1027
+ "allowNo": false,
1028
+ "type": "boolean"
1029
+ },
1030
+ "force": {
1031
+ "char": "f",
1032
+ "description": "Bypass the cache and force the build",
1033
+ "name": "force",
1034
+ "required": false,
1035
+ "allowNo": false,
1036
+ "type": "boolean"
1037
+ }
1038
+ },
1039
+ "hasDynamicHelp": false,
1040
+ "hiddenAliases": [],
1041
+ "id": "resources:build",
1042
+ "pluginAlias": "@enspirit/emb",
1043
+ "pluginName": "@enspirit/emb",
1044
+ "pluginType": "core",
1045
+ "strict": false,
1046
+ "enableJsonFlag": true,
1047
+ "isESM": true,
1048
+ "relativePath": [
1049
+ "dist",
1050
+ "src",
1051
+ "cli",
1052
+ "commands",
1053
+ "resources",
1054
+ "build.js"
1055
+ ]
1056
+ },
1057
+ "resources": {
1058
+ "aliases": [],
1059
+ "args": {},
1060
+ "description": "List resources.",
1061
+ "examples": [
1062
+ "<%= config.bin %> <%= command.id %>"
1063
+ ],
1064
+ "flags": {
1065
+ "json": {
1066
+ "description": "Format output as json.",
1067
+ "helpGroup": "GLOBAL",
1068
+ "name": "json",
1069
+ "allowNo": false,
1070
+ "type": "boolean"
1071
+ },
1072
+ "verbose": {
1073
+ "name": "verbose",
1074
+ "allowNo": true,
1075
+ "type": "boolean"
1076
+ },
1077
+ "root": {
1078
+ "char": "C",
1079
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1080
+ "name": "root",
1081
+ "required": false,
1082
+ "hasDynamicHelp": false,
1083
+ "multiple": false,
1084
+ "type": "option"
1085
+ },
1086
+ "flavor": {
1087
+ "description": "Specify the flavor to use.",
1088
+ "name": "flavor",
1089
+ "required": false,
1090
+ "hasDynamicHelp": false,
1091
+ "multiple": false,
1092
+ "type": "option"
1093
+ }
1094
+ },
1095
+ "hasDynamicHelp": false,
1096
+ "hiddenAliases": [],
1097
+ "id": "resources",
1098
+ "pluginAlias": "@enspirit/emb",
1099
+ "pluginName": "@enspirit/emb",
1100
+ "pluginType": "core",
1101
+ "strict": true,
1102
+ "enableJsonFlag": true,
1103
+ "isESM": true,
1104
+ "relativePath": [
1105
+ "dist",
1106
+ "src",
1107
+ "cli",
1108
+ "commands",
1109
+ "resources",
1110
+ "index.js"
1111
+ ]
1112
+ },
824
1113
  "kubernetes:logs": {
825
1114
  "aliases": [
826
1115
  "logs"
@@ -842,6 +1131,15 @@
842
1131
  "allowNo": true,
843
1132
  "type": "boolean"
844
1133
  },
1134
+ "root": {
1135
+ "char": "C",
1136
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1137
+ "name": "root",
1138
+ "required": false,
1139
+ "hasDynamicHelp": false,
1140
+ "multiple": false,
1141
+ "type": "option"
1142
+ },
845
1143
  "namespace": {
846
1144
  "aliases": [
847
1145
  "ns"
@@ -894,6 +1192,15 @@
894
1192
  "allowNo": true,
895
1193
  "type": "boolean"
896
1194
  },
1195
+ "root": {
1196
+ "char": "C",
1197
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1198
+ "name": "root",
1199
+ "required": false,
1200
+ "hasDynamicHelp": false,
1201
+ "multiple": false,
1202
+ "type": "option"
1203
+ },
897
1204
  "namespace": {
898
1205
  "aliases": [
899
1206
  "ns"
@@ -949,6 +1256,15 @@
949
1256
  "allowNo": true,
950
1257
  "type": "boolean"
951
1258
  },
1259
+ "root": {
1260
+ "char": "C",
1261
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1262
+ "name": "root",
1263
+ "required": false,
1264
+ "hasDynamicHelp": false,
1265
+ "multiple": false,
1266
+ "type": "option"
1267
+ },
952
1268
  "namespace": {
953
1269
  "aliases": [
954
1270
  "ns"
@@ -1002,6 +1318,15 @@
1002
1318
  "allowNo": true,
1003
1319
  "type": "boolean"
1004
1320
  },
1321
+ "root": {
1322
+ "char": "C",
1323
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1324
+ "name": "root",
1325
+ "required": false,
1326
+ "hasDynamicHelp": false,
1327
+ "multiple": false,
1328
+ "type": "option"
1329
+ },
1005
1330
  "namespace": {
1006
1331
  "aliases": [
1007
1332
  "ns"
@@ -1043,18 +1368,68 @@
1043
1368
  "shell.js"
1044
1369
  ]
1045
1370
  },
1046
- "resources:build": {
1371
+ "tasks": {
1047
1372
  "aliases": [],
1373
+ "args": {},
1374
+ "description": "List tasks.",
1375
+ "examples": [
1376
+ "<%= config.bin %> <%= command.id %>"
1377
+ ],
1378
+ "flags": {
1379
+ "json": {
1380
+ "description": "Format output as json.",
1381
+ "helpGroup": "GLOBAL",
1382
+ "name": "json",
1383
+ "allowNo": false,
1384
+ "type": "boolean"
1385
+ },
1386
+ "verbose": {
1387
+ "name": "verbose",
1388
+ "allowNo": true,
1389
+ "type": "boolean"
1390
+ },
1391
+ "root": {
1392
+ "char": "C",
1393
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1394
+ "name": "root",
1395
+ "required": false,
1396
+ "hasDynamicHelp": false,
1397
+ "multiple": false,
1398
+ "type": "option"
1399
+ }
1400
+ },
1401
+ "hasDynamicHelp": false,
1402
+ "hiddenAliases": [],
1403
+ "id": "tasks",
1404
+ "pluginAlias": "@enspirit/emb",
1405
+ "pluginName": "@enspirit/emb",
1406
+ "pluginType": "core",
1407
+ "strict": true,
1408
+ "enableJsonFlag": true,
1409
+ "isESM": true,
1410
+ "relativePath": [
1411
+ "dist",
1412
+ "src",
1413
+ "cli",
1414
+ "commands",
1415
+ "tasks",
1416
+ "index.js"
1417
+ ]
1418
+ },
1419
+ "tasks:run": {
1420
+ "aliases": [
1421
+ "run"
1422
+ ],
1048
1423
  "args": {
1049
- "component": {
1050
- "description": "List of resources to build (defaults to all)",
1051
- "name": "component",
1052
- "required": false
1424
+ "task": {
1425
+ "description": "List of tasks to run. You can provide either ids or names (eg: component:task or task)",
1426
+ "name": "task",
1427
+ "required": true
1053
1428
  }
1054
1429
  },
1055
- "description": "Build the resources of the monorepo",
1430
+ "description": "Run tasks.",
1056
1431
  "examples": [
1057
- "<%= config.bin %> <%= command.id %> build --flavor development"
1432
+ "<%= config.bin %> <%= command.id %>"
1058
1433
  ],
1059
1434
  "flags": {
1060
1435
  "json": {
@@ -1069,33 +1444,38 @@
1069
1444
  "allowNo": true,
1070
1445
  "type": "boolean"
1071
1446
  },
1072
- "flavor": {
1073
- "description": "Specify the flavor to use.",
1074
- "name": "flavor",
1447
+ "root": {
1448
+ "char": "C",
1449
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1450
+ "name": "root",
1075
1451
  "required": false,
1076
1452
  "hasDynamicHelp": false,
1077
1453
  "multiple": false,
1078
1454
  "type": "option"
1079
1455
  },
1080
- "dry-run": {
1081
- "description": "Do not build the resources but only produce build meta information",
1082
- "name": "dry-run",
1083
- "required": false,
1084
- "allowNo": false,
1085
- "type": "boolean"
1456
+ "executor": {
1457
+ "char": "x",
1458
+ "description": "Where to run the task. (experimental!)",
1459
+ "name": "executor",
1460
+ "hasDynamicHelp": false,
1461
+ "multiple": false,
1462
+ "options": [
1463
+ "container",
1464
+ "local"
1465
+ ],
1466
+ "type": "option"
1086
1467
  },
1087
- "force": {
1088
- "char": "f",
1089
- "description": "Bypass the cache and force the build",
1090
- "name": "force",
1091
- "required": false,
1468
+ "all-matching": {
1469
+ "char": "a",
1470
+ "description": "Run all tasks matching (when multiple matches)",
1471
+ "name": "all-matching",
1092
1472
  "allowNo": false,
1093
1473
  "type": "boolean"
1094
1474
  }
1095
1475
  },
1096
1476
  "hasDynamicHelp": false,
1097
1477
  "hiddenAliases": [],
1098
- "id": "resources:build",
1478
+ "id": "tasks:run",
1099
1479
  "pluginAlias": "@enspirit/emb",
1100
1480
  "pluginName": "@enspirit/emb",
1101
1481
  "pluginType": "core",
@@ -1107,16 +1487,17 @@
1107
1487
  "src",
1108
1488
  "cli",
1109
1489
  "commands",
1110
- "resources",
1111
- "build.js"
1490
+ "tasks",
1491
+ "run.js"
1112
1492
  ]
1113
1493
  },
1114
- "resources": {
1494
+ "secrets": {
1115
1495
  "aliases": [],
1116
1496
  "args": {},
1117
- "description": "List resources.",
1497
+ "description": "List all secret references in the configuration.",
1118
1498
  "examples": [
1119
- "<%= config.bin %> <%= command.id %>"
1499
+ "<%= config.bin %> <%= command.id %>",
1500
+ "<%= config.bin %> <%= command.id %> --json"
1120
1501
  ],
1121
1502
  "flags": {
1122
1503
  "json": {
@@ -1131,6 +1512,15 @@
1131
1512
  "allowNo": true,
1132
1513
  "type": "boolean"
1133
1514
  },
1515
+ "root": {
1516
+ "char": "C",
1517
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1518
+ "name": "root",
1519
+ "required": false,
1520
+ "hasDynamicHelp": false,
1521
+ "multiple": false,
1522
+ "type": "option"
1523
+ },
1134
1524
  "flavor": {
1135
1525
  "description": "Specify the flavor to use.",
1136
1526
  "name": "flavor",
@@ -1142,7 +1532,7 @@
1142
1532
  },
1143
1533
  "hasDynamicHelp": false,
1144
1534
  "hiddenAliases": [],
1145
- "id": "resources",
1535
+ "id": "secrets",
1146
1536
  "pluginAlias": "@enspirit/emb",
1147
1537
  "pluginName": "@enspirit/emb",
1148
1538
  "pluginType": "core",
@@ -1154,14 +1544,14 @@
1154
1544
  "src",
1155
1545
  "cli",
1156
1546
  "commands",
1157
- "resources",
1547
+ "secrets",
1158
1548
  "index.js"
1159
1549
  ]
1160
1550
  },
1161
- "tasks": {
1551
+ "secrets:providers": {
1162
1552
  "aliases": [],
1163
1553
  "args": {},
1164
- "description": "List tasks.",
1554
+ "description": "Show configured secret providers and their status.",
1165
1555
  "examples": [
1166
1556
  "<%= config.bin %> <%= command.id %>"
1167
1557
  ],
@@ -1177,11 +1567,28 @@
1177
1567
  "name": "verbose",
1178
1568
  "allowNo": true,
1179
1569
  "type": "boolean"
1570
+ },
1571
+ "root": {
1572
+ "char": "C",
1573
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1574
+ "name": "root",
1575
+ "required": false,
1576
+ "hasDynamicHelp": false,
1577
+ "multiple": false,
1578
+ "type": "option"
1579
+ },
1580
+ "flavor": {
1581
+ "description": "Specify the flavor to use.",
1582
+ "name": "flavor",
1583
+ "required": false,
1584
+ "hasDynamicHelp": false,
1585
+ "multiple": false,
1586
+ "type": "option"
1180
1587
  }
1181
1588
  },
1182
1589
  "hasDynamicHelp": false,
1183
1590
  "hiddenAliases": [],
1184
- "id": "tasks",
1591
+ "id": "secrets:providers",
1185
1592
  "pluginAlias": "@enspirit/emb",
1186
1593
  "pluginName": "@enspirit/emb",
1187
1594
  "pluginType": "core",
@@ -1193,24 +1600,18 @@
1193
1600
  "src",
1194
1601
  "cli",
1195
1602
  "commands",
1196
- "tasks",
1197
- "index.js"
1603
+ "secrets",
1604
+ "providers.js"
1198
1605
  ]
1199
1606
  },
1200
- "tasks:run": {
1201
- "aliases": [
1202
- "run"
1203
- ],
1204
- "args": {
1205
- "task": {
1206
- "description": "List of tasks to run. You can provide either ids or names (eg: component:task or task)",
1207
- "name": "task",
1208
- "required": true
1209
- }
1210
- },
1211
- "description": "Run tasks.",
1607
+ "secrets:validate": {
1608
+ "aliases": [],
1609
+ "args": {},
1610
+ "description": "Validate that all secret references can be resolved (without showing values).",
1212
1611
  "examples": [
1213
- "<%= config.bin %> <%= command.id %>"
1612
+ "<%= config.bin %> <%= command.id %>",
1613
+ "<%= config.bin %> <%= command.id %> --fail-fast",
1614
+ "<%= config.bin %> <%= command.id %> --json"
1214
1615
  ],
1215
1616
  "flags": {
1216
1617
  "json": {
@@ -1225,33 +1626,37 @@
1225
1626
  "allowNo": true,
1226
1627
  "type": "boolean"
1227
1628
  },
1228
- "executor": {
1229
- "char": "x",
1230
- "description": "Where to run the task. (experimental!)",
1231
- "name": "executor",
1629
+ "root": {
1630
+ "char": "C",
1631
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1632
+ "name": "root",
1633
+ "required": false,
1232
1634
  "hasDynamicHelp": false,
1233
1635
  "multiple": false,
1234
- "options": [
1235
- "container",
1236
- "local"
1237
- ],
1238
1636
  "type": "option"
1239
1637
  },
1240
- "all-matching": {
1241
- "char": "a",
1242
- "description": "Run all tasks matching (when multiple matches)",
1243
- "name": "all-matching",
1638
+ "flavor": {
1639
+ "description": "Specify the flavor to use.",
1640
+ "name": "flavor",
1641
+ "required": false,
1642
+ "hasDynamicHelp": false,
1643
+ "multiple": false,
1644
+ "type": "option"
1645
+ },
1646
+ "fail-fast": {
1647
+ "description": "Stop on first validation error",
1648
+ "name": "fail-fast",
1244
1649
  "allowNo": false,
1245
1650
  "type": "boolean"
1246
1651
  }
1247
1652
  },
1248
1653
  "hasDynamicHelp": false,
1249
1654
  "hiddenAliases": [],
1250
- "id": "tasks:run",
1655
+ "id": "secrets:validate",
1251
1656
  "pluginAlias": "@enspirit/emb",
1252
1657
  "pluginName": "@enspirit/emb",
1253
1658
  "pluginType": "core",
1254
- "strict": false,
1659
+ "strict": true,
1255
1660
  "enableJsonFlag": true,
1256
1661
  "isESM": true,
1257
1662
  "relativePath": [
@@ -1259,10 +1664,10 @@
1259
1664
  "src",
1260
1665
  "cli",
1261
1666
  "commands",
1262
- "tasks",
1263
- "run.js"
1667
+ "secrets",
1668
+ "validate.js"
1264
1669
  ]
1265
1670
  }
1266
1671
  },
1267
- "version": "0.14.1"
1672
+ "version": "0.17.0"
1268
1673
  }