@enspirit/emb 0.25.1 → 0.25.5

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.
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.25.1 darwin-arm64 node-v22.21.1
17
+ @enspirit/emb/0.25.5 linux-x64 node-v22.22.2
18
18
  $ emb --help [COMMAND]
19
19
  USAGE
20
20
  $ emb COMMAND
@@ -113,7 +113,7 @@ EXAMPLES
113
113
  $ emb clean
114
114
  ```
115
115
 
116
- _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/clean.ts)_
116
+ _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/clean.ts)_
117
117
 
118
118
  ## `emb components`
119
119
 
@@ -138,7 +138,7 @@ EXAMPLES
138
138
  $ emb components
139
139
  ```
140
140
 
141
- _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/components/index.ts)_
141
+ _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/components/index.ts)_
142
142
 
143
143
  ## `emb components shell SERVICE`
144
144
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ emb components shell
167
167
  ```
168
168
 
169
- _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/components/shell.ts)_
169
+ _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/components/shell.ts)_
170
170
 
171
171
  ## `emb config print`
172
172
 
@@ -191,7 +191,7 @@ EXAMPLES
191
191
  $ emb config print
192
192
  ```
193
193
 
194
- _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/config/print.ts)_
194
+ _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/config/print.ts)_
195
195
 
196
196
  ## `emb containers`
197
197
 
@@ -216,7 +216,7 @@ EXAMPLES
216
216
  $ emb containers
217
217
  ```
218
218
 
219
- _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/containers/index.ts)_
219
+ _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/containers/index.ts)_
220
220
 
221
221
  ## `emb containers prune`
222
222
 
@@ -240,7 +240,7 @@ EXAMPLES
240
240
  $ emb containers prune
241
241
  ```
242
242
 
243
- _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/containers/prune.ts)_
243
+ _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/containers/prune.ts)_
244
244
 
245
245
  ## `emb down [SERVICE]`
246
246
 
@@ -268,7 +268,7 @@ EXAMPLES
268
268
  $ emb down
269
269
  ```
270
270
 
271
- _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/down.ts)_
271
+ _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/down.ts)_
272
272
 
273
273
  ## `emb help [COMMAND]`
274
274
 
@@ -314,7 +314,7 @@ EXAMPLES
314
314
  $ emb images
315
315
  ```
316
316
 
317
- _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/index.ts)_
317
+ _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/images/index.ts)_
318
318
 
319
319
  ## `emb images delete`
320
320
 
@@ -339,7 +339,7 @@ EXAMPLES
339
339
  $ emb images delete
340
340
  ```
341
341
 
342
- _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/delete.ts)_
342
+ _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/images/delete.ts)_
343
343
 
344
344
  ## `emb images prune`
345
345
 
@@ -364,7 +364,7 @@ EXAMPLES
364
364
  $ emb images prune
365
365
  ```
366
366
 
367
- _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/prune.ts)_
367
+ _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/images/prune.ts)_
368
368
 
369
369
  ## `emb images push`
370
370
 
@@ -393,7 +393,7 @@ EXAMPLES
393
393
  $ emb images push --registry my.registry.io --retag newtag
394
394
  ```
395
395
 
396
- _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/push.ts)_
396
+ _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/images/push.ts)_
397
397
 
398
398
  ## `emb kubernetes logs COMPONENT`
399
399
 
@@ -419,7 +419,7 @@ EXAMPLES
419
419
  $ emb kubernetes logs
420
420
  ```
421
421
 
422
- _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/logs.ts)_
422
+ _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/kubernetes/logs.ts)_
423
423
 
424
424
  ## `emb kubernetes ps`
425
425
 
@@ -442,7 +442,7 @@ EXAMPLES
442
442
  $ emb kubernetes ps
443
443
  ```
444
444
 
445
- _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/ps.ts)_
445
+ _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/kubernetes/ps.ts)_
446
446
 
447
447
  ## `emb kubernetes restart [DEPLOYMENT]`
448
448
 
@@ -467,7 +467,7 @@ EXAMPLES
467
467
  $ emb kubernetes restart
468
468
  ```
469
469
 
470
- _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/restart.ts)_
470
+ _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/kubernetes/restart.ts)_
471
471
 
472
472
  ## `emb kubernetes shell COMPONENT`
473
473
 
@@ -496,7 +496,7 @@ EXAMPLES
496
496
  $ emb kubernetes shell
497
497
  ```
498
498
 
499
- _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/shell.ts)_
499
+ _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/kubernetes/shell.ts)_
500
500
 
501
501
  ## `emb logs [SERVICE]`
502
502
 
@@ -527,7 +527,7 @@ EXAMPLES
527
527
  $ emb logs --no-follow backend
528
528
  ```
529
529
 
530
- _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/logs/index.ts)_
530
+ _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/logs/index.ts)_
531
531
 
532
532
  ## `emb logs archive [SERVICE]`
533
533
 
@@ -563,7 +563,7 @@ EXAMPLES
563
563
  $ emb logs archive --tail 1000
564
564
  ```
565
565
 
566
- _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/logs/archive.ts)_
566
+ _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/logs/archive.ts)_
567
567
 
568
568
  ## `emb ps`
569
569
 
@@ -586,7 +586,7 @@ EXAMPLES
586
586
  $ emb ps
587
587
  ```
588
588
 
589
- _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/ps.ts)_
589
+ _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/ps.ts)_
590
590
 
591
591
  ## `emb resources`
592
592
 
@@ -614,7 +614,7 @@ EXAMPLES
614
614
  $ emb resources --publishable
615
615
  ```
616
616
 
617
- _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/index.ts)_
617
+ _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/resources/index.ts)_
618
618
 
619
619
  ## `emb resources build [COMPONENT]`
620
620
 
@@ -648,7 +648,7 @@ EXAMPLES
648
648
  $ emb resources build build --publishable --flavor production
649
649
  ```
650
650
 
651
- _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/build.ts)_
651
+ _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/resources/build.ts)_
652
652
 
653
653
  ## `emb resources publish [RESOURCES]`
654
654
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ emb resources publish api:image --flavor production
680
680
  ```
681
681
 
682
- _See code: [src/commands/resources/publish.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/publish.ts)_
682
+ _See code: [src/commands/resources/publish.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/resources/publish.ts)_
683
683
 
684
684
  ## `emb restart [SERVICE]`
685
685
 
@@ -707,7 +707,7 @@ EXAMPLES
707
707
  $ emb restart
708
708
  ```
709
709
 
710
- _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/restart.ts)_
710
+ _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/restart.ts)_
711
711
 
712
712
  ## `emb run TASK`
713
713
 
@@ -765,7 +765,7 @@ EXAMPLES
765
765
  $ emb secrets --json
766
766
  ```
767
767
 
768
- _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/index.ts)_
768
+ _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/secrets/index.ts)_
769
769
 
770
770
  ## `emb secrets providers`
771
771
 
@@ -790,7 +790,7 @@ EXAMPLES
790
790
  $ emb secrets providers
791
791
  ```
792
792
 
793
- _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/providers.ts)_
793
+ _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/secrets/providers.ts)_
794
794
 
795
795
  ## `emb secrets validate`
796
796
 
@@ -820,7 +820,7 @@ EXAMPLES
820
820
  $ emb secrets validate --json
821
821
  ```
822
822
 
823
- _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/validate.ts)_
823
+ _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/secrets/validate.ts)_
824
824
 
825
825
  ## `emb shell SERVICE`
826
826
 
@@ -873,7 +873,7 @@ EXAMPLES
873
873
  $ emb start
874
874
  ```
875
875
 
876
- _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/start.ts)_
876
+ _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/start.ts)_
877
877
 
878
878
  ## `emb stop [SERVICE]`
879
879
 
@@ -901,7 +901,7 @@ EXAMPLES
901
901
  $ emb stop
902
902
  ```
903
903
 
904
- _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/stop.ts)_
904
+ _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/stop.ts)_
905
905
 
906
906
  ## `emb tasks`
907
907
 
@@ -925,7 +925,7 @@ EXAMPLES
925
925
  $ emb tasks
926
926
  ```
927
927
 
928
- _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/tasks/index.ts)_
928
+ _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/tasks/index.ts)_
929
929
 
930
930
  ## `emb tasks run TASK`
931
931
 
@@ -958,7 +958,7 @@ EXAMPLES
958
958
  $ emb tasks run
959
959
  ```
960
960
 
961
- _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/tasks/run.ts)_
961
+ _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/tasks/run.ts)_
962
962
 
963
963
  ## `emb up [SERVICE]`
964
964
 
@@ -987,7 +987,7 @@ EXAMPLES
987
987
  $ emb up
988
988
  ```
989
989
 
990
- _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/up.ts)_
990
+ _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.25.5/src/commands/up.ts)_
991
991
 
992
992
  ## `emb update [CHANNEL]`
993
993
 
@@ -68,9 +68,18 @@ export class DockerComposeClient {
68
68
  if (this.services && !force) {
69
69
  return;
70
70
  }
71
- const { stdout: servicesOutput } = await execa({
72
- cwd: this.monorepo.rootDir,
73
- }) `docker compose config --services`;
71
+ let servicesOutput;
72
+ try {
73
+ const result = await execa({
74
+ cwd: this.monorepo.rootDir,
75
+ }) `docker compose config --services`;
76
+ servicesOutput = result.stdout;
77
+ }
78
+ catch {
79
+ // No docker-compose config available (no compose file, docker not installed, etc.)
80
+ this.services = new Map();
81
+ return;
82
+ }
74
83
  const services = servicesOutput
75
84
  .split('\n')
76
85
  .map((l) => l.trim())
@@ -931,28 +931,20 @@
931
931
  "push.js"
932
932
  ]
933
933
  },
934
- "resources:build": {
934
+ "kubernetes:logs": {
935
935
  "aliases": [],
936
936
  "args": {
937
937
  "component": {
938
- "description": "List of resources to build (defaults to all)",
938
+ "description": "The component you want to see the logs of",
939
939
  "name": "component",
940
- "required": false
940
+ "required": true
941
941
  }
942
942
  },
943
- "description": "Build the resources of the monorepo",
943
+ "description": "Follow kubernetes logs.",
944
944
  "examples": [
945
- "<%= config.bin %> <%= command.id %> build --flavor development",
946
- "<%= config.bin %> <%= command.id %> build --publishable --flavor production"
945
+ "<%= config.bin %> <%= command.id %>"
947
946
  ],
948
947
  "flags": {
949
- "json": {
950
- "description": "Format output as json.",
951
- "helpGroup": "GLOBAL",
952
- "name": "json",
953
- "allowNo": false,
954
- "type": "boolean"
955
- },
956
948
  "verbose": {
957
949
  "name": "verbose",
958
950
  "allowNo": true,
@@ -967,71 +959,52 @@
967
959
  "multiple": false,
968
960
  "type": "option"
969
961
  },
970
- "flavor": {
971
- "description": "Specify the flavor to use.",
972
- "name": "flavor",
962
+ "namespace": {
963
+ "aliases": [
964
+ "ns"
965
+ ],
966
+ "char": "n",
967
+ "description": "The Kubernetes namespace to target",
968
+ "name": "namespace",
973
969
  "required": false,
974
970
  "hasDynamicHelp": false,
975
971
  "multiple": false,
976
972
  "type": "option"
977
973
  },
978
- "dry-run": {
979
- "description": "Do not build the resources but only produce build meta information",
980
- "name": "dry-run",
981
- "required": false,
982
- "allowNo": false,
983
- "type": "boolean"
984
- },
985
- "force": {
974
+ "follow": {
986
975
  "char": "f",
987
- "description": "Bypass the cache and force the build",
988
- "name": "force",
989
- "required": false,
990
- "allowNo": false,
991
- "type": "boolean"
992
- },
993
- "publishable": {
994
- "description": "Only build resources that are publishable (publish: true) and their dependencies",
995
- "name": "publishable",
996
- "required": false,
997
- "allowNo": false,
976
+ "description": "Follow log output",
977
+ "name": "follow",
978
+ "allowNo": true,
998
979
  "type": "boolean"
999
980
  }
1000
981
  },
1001
982
  "hasDynamicHelp": false,
1002
983
  "hiddenAliases": [],
1003
- "id": "resources:build",
984
+ "id": "kubernetes:logs",
1004
985
  "pluginAlias": "@enspirit/emb",
1005
986
  "pluginName": "@enspirit/emb",
1006
987
  "pluginType": "core",
1007
- "strict": false,
1008
- "enableJsonFlag": true,
988
+ "strict": true,
989
+ "enableJsonFlag": false,
1009
990
  "isESM": true,
1010
991
  "relativePath": [
1011
992
  "dist",
1012
993
  "src",
1013
994
  "cli",
1014
995
  "commands",
1015
- "resources",
1016
- "build.js"
996
+ "kubernetes",
997
+ "logs.js"
1017
998
  ]
1018
999
  },
1019
- "resources": {
1000
+ "kubernetes:ps": {
1020
1001
  "aliases": [],
1021
1002
  "args": {},
1022
- "description": "List resources.",
1003
+ "description": "Show running pods.",
1023
1004
  "examples": [
1024
- "<%= config.bin %> <%= command.id %>",
1025
- "<%= config.bin %> <%= command.id %> --publishable"
1005
+ "<%= config.bin %> <%= command.id %>"
1026
1006
  ],
1027
1007
  "flags": {
1028
- "json": {
1029
- "description": "Format output as json.",
1030
- "helpGroup": "GLOBAL",
1031
- "name": "json",
1032
- "allowNo": false,
1033
- "type": "boolean"
1034
- },
1035
1008
  "verbose": {
1036
1009
  "name": "verbose",
1037
1010
  "allowNo": true,
@@ -1046,62 +1019,55 @@
1046
1019
  "multiple": false,
1047
1020
  "type": "option"
1048
1021
  },
1049
- "flavor": {
1050
- "description": "Specify the flavor to use.",
1051
- "name": "flavor",
1022
+ "namespace": {
1023
+ "aliases": [
1024
+ "ns"
1025
+ ],
1026
+ "char": "n",
1027
+ "description": "The Kubernetes namespace to target",
1028
+ "name": "namespace",
1052
1029
  "required": false,
1053
1030
  "hasDynamicHelp": false,
1054
1031
  "multiple": false,
1055
1032
  "type": "option"
1056
1033
  },
1057
- "publishable": {
1058
- "description": "Only show resources that are publishable (publish: true)",
1059
- "name": "publishable",
1060
- "required": false,
1061
- "allowNo": false,
1034
+ "watch": {
1035
+ "name": "watch",
1036
+ "allowNo": true,
1062
1037
  "type": "boolean"
1063
1038
  }
1064
1039
  },
1065
1040
  "hasDynamicHelp": false,
1066
1041
  "hiddenAliases": [],
1067
- "id": "resources",
1042
+ "id": "kubernetes:ps",
1068
1043
  "pluginAlias": "@enspirit/emb",
1069
1044
  "pluginName": "@enspirit/emb",
1070
1045
  "pluginType": "core",
1071
- "strict": true,
1072
- "enableJsonFlag": true,
1046
+ "strict": false,
1047
+ "enableJsonFlag": false,
1073
1048
  "isESM": true,
1074
1049
  "relativePath": [
1075
1050
  "dist",
1076
1051
  "src",
1077
1052
  "cli",
1078
1053
  "commands",
1079
- "resources",
1080
- "index.js"
1054
+ "kubernetes",
1055
+ "ps.js"
1081
1056
  ]
1082
1057
  },
1083
- "resources:publish": {
1058
+ "kubernetes:restart": {
1084
1059
  "aliases": [],
1085
1060
  "args": {
1086
- "resources": {
1087
- "description": "List of resources to publish (defaults to all publishable)",
1088
- "name": "resources",
1089
- "required": false
1061
+ "deployment": {
1062
+ "description": "The deployment(s) to restart",
1063
+ "name": "deployment"
1090
1064
  }
1091
1065
  },
1092
- "description": "Publish resources to their registries",
1066
+ "description": "Restart pods of an instance.",
1093
1067
  "examples": [
1094
- "<%= config.bin %> <%= command.id %> --flavor production",
1095
- "<%= config.bin %> <%= command.id %> api:image --flavor production"
1068
+ "<%= config.bin %> <%= command.id %>"
1096
1069
  ],
1097
1070
  "flags": {
1098
- "json": {
1099
- "description": "Format output as json.",
1100
- "helpGroup": "GLOBAL",
1101
- "name": "json",
1102
- "allowNo": false,
1103
- "type": "boolean"
1104
- },
1105
1071
  "verbose": {
1106
1072
  "name": "verbose",
1107
1073
  "allowNo": true,
@@ -1116,50 +1082,49 @@
1116
1082
  "multiple": false,
1117
1083
  "type": "option"
1118
1084
  },
1119
- "flavor": {
1120
- "description": "Specify the flavor to use.",
1121
- "name": "flavor",
1085
+ "namespace": {
1086
+ "aliases": [
1087
+ "ns"
1088
+ ],
1089
+ "char": "n",
1090
+ "description": "The Kubernetes namespace to target",
1091
+ "name": "namespace",
1122
1092
  "required": false,
1123
1093
  "hasDynamicHelp": false,
1124
1094
  "multiple": false,
1125
1095
  "type": "option"
1126
- },
1127
- "dry-run": {
1128
- "description": "Do not publish, just show what would be published",
1129
- "name": "dry-run",
1130
- "required": false,
1131
- "allowNo": false,
1132
- "type": "boolean"
1133
1096
  }
1134
1097
  },
1135
1098
  "hasDynamicHelp": false,
1136
1099
  "hiddenAliases": [],
1137
- "id": "resources:publish",
1100
+ "id": "kubernetes:restart",
1138
1101
  "pluginAlias": "@enspirit/emb",
1139
1102
  "pluginName": "@enspirit/emb",
1140
1103
  "pluginType": "core",
1141
1104
  "strict": false,
1142
- "enableJsonFlag": true,
1105
+ "enableJsonFlag": false,
1143
1106
  "isESM": true,
1144
1107
  "relativePath": [
1145
1108
  "dist",
1146
1109
  "src",
1147
1110
  "cli",
1148
1111
  "commands",
1149
- "resources",
1150
- "publish.js"
1112
+ "kubernetes",
1113
+ "restart.js"
1151
1114
  ]
1152
1115
  },
1153
- "kubernetes:logs": {
1154
- "aliases": [],
1116
+ "kubernetes:shell": {
1117
+ "aliases": [
1118
+ "shell"
1119
+ ],
1155
1120
  "args": {
1156
1121
  "component": {
1157
- "description": "The component you want to see the logs of",
1122
+ "description": "The component you want to get a shell on",
1158
1123
  "name": "component",
1159
1124
  "required": true
1160
1125
  }
1161
1126
  },
1162
- "description": "Follow kubernetes logs.",
1127
+ "description": "Get a shell on a deployed component.",
1163
1128
  "examples": [
1164
1129
  "<%= config.bin %> <%= command.id %>"
1165
1130
  ],
@@ -1190,17 +1155,19 @@
1190
1155
  "multiple": false,
1191
1156
  "type": "option"
1192
1157
  },
1193
- "follow": {
1194
- "char": "f",
1195
- "description": "Follow log output",
1196
- "name": "follow",
1197
- "allowNo": true,
1198
- "type": "boolean"
1158
+ "shell": {
1159
+ "char": "s",
1160
+ "description": "The shell to run",
1161
+ "name": "shell",
1162
+ "default": "bash",
1163
+ "hasDynamicHelp": false,
1164
+ "multiple": false,
1165
+ "type": "option"
1199
1166
  }
1200
1167
  },
1201
1168
  "hasDynamicHelp": false,
1202
1169
  "hiddenAliases": [],
1203
- "id": "kubernetes:logs",
1170
+ "id": "kubernetes:shell",
1204
1171
  "pluginAlias": "@enspirit/emb",
1205
1172
  "pluginName": "@enspirit/emb",
1206
1173
  "pluginType": "core",
@@ -1213,17 +1180,33 @@
1213
1180
  "cli",
1214
1181
  "commands",
1215
1182
  "kubernetes",
1216
- "logs.js"
1183
+ "shell.js"
1217
1184
  ]
1218
1185
  },
1219
- "kubernetes:ps": {
1186
+ "logs:archive": {
1220
1187
  "aliases": [],
1221
- "args": {},
1222
- "description": "Show running pods.",
1188
+ "args": {
1189
+ "service": {
1190
+ "description": "The service(s) to archive logs for (all if omitted)",
1191
+ "name": "service",
1192
+ "required": false
1193
+ }
1194
+ },
1195
+ "description": "Archive docker compose logs to files (one file per service).",
1223
1196
  "examples": [
1224
- "<%= config.bin %> <%= command.id %>"
1197
+ "<%= config.bin %> <%= command.id %>",
1198
+ "<%= config.bin %> <%= command.id %> backend frontend",
1199
+ "<%= config.bin %> <%= command.id %> --timestamps",
1200
+ "<%= config.bin %> <%= command.id %> --tail 1000"
1225
1201
  ],
1226
1202
  "flags": {
1203
+ "json": {
1204
+ "description": "Format output as json.",
1205
+ "helpGroup": "GLOBAL",
1206
+ "name": "json",
1207
+ "allowNo": false,
1208
+ "type": "boolean"
1209
+ },
1227
1210
  "verbose": {
1228
1211
  "name": "verbose",
1229
1212
  "allowNo": true,
@@ -1238,53 +1221,62 @@
1238
1221
  "multiple": false,
1239
1222
  "type": "option"
1240
1223
  },
1241
- "namespace": {
1242
- "aliases": [
1243
- "ns"
1244
- ],
1245
- "char": "n",
1246
- "description": "The Kubernetes namespace to target",
1247
- "name": "namespace",
1248
- "required": false,
1224
+ "timestamps": {
1225
+ "char": "t",
1226
+ "description": "Include timestamps in logs",
1227
+ "name": "timestamps",
1228
+ "allowNo": false,
1229
+ "type": "boolean"
1230
+ },
1231
+ "tail": {
1232
+ "description": "Number of lines to show from the end of the logs",
1233
+ "name": "tail",
1249
1234
  "hasDynamicHelp": false,
1250
1235
  "multiple": false,
1251
1236
  "type": "option"
1252
1237
  },
1253
- "watch": {
1254
- "name": "watch",
1255
- "allowNo": true,
1256
- "type": "boolean"
1238
+ "output": {
1239
+ "char": "o",
1240
+ "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1241
+ "name": "output",
1242
+ "hasDynamicHelp": false,
1243
+ "multiple": false,
1244
+ "type": "option"
1257
1245
  }
1258
1246
  },
1259
1247
  "hasDynamicHelp": false,
1260
1248
  "hiddenAliases": [],
1261
- "id": "kubernetes:ps",
1249
+ "id": "logs:archive",
1262
1250
  "pluginAlias": "@enspirit/emb",
1263
1251
  "pluginName": "@enspirit/emb",
1264
1252
  "pluginType": "core",
1265
1253
  "strict": false,
1266
- "enableJsonFlag": false,
1254
+ "enableJsonFlag": true,
1267
1255
  "isESM": true,
1268
1256
  "relativePath": [
1269
1257
  "dist",
1270
1258
  "src",
1271
1259
  "cli",
1272
1260
  "commands",
1273
- "kubernetes",
1274
- "ps.js"
1261
+ "logs",
1262
+ "archive.js"
1275
1263
  ]
1276
1264
  },
1277
- "kubernetes:restart": {
1265
+ "logs": {
1278
1266
  "aliases": [],
1279
1267
  "args": {
1280
- "deployment": {
1281
- "description": "The deployment(s) to restart",
1282
- "name": "deployment"
1268
+ "service": {
1269
+ "description": "The service(s) you want to see the logs of (all if omitted)",
1270
+ "name": "service",
1271
+ "required": false
1283
1272
  }
1284
1273
  },
1285
- "description": "Restart pods of an instance.",
1274
+ "description": "Get service logs.",
1286
1275
  "examples": [
1287
- "<%= config.bin %> <%= command.id %>"
1276
+ "<%= config.bin %> <%= command.id %>",
1277
+ "<%= config.bin %> <%= command.id %> backend",
1278
+ "<%= config.bin %> <%= command.id %> backend frontend",
1279
+ "<%= config.bin %> <%= command.id %> --no-follow backend"
1288
1280
  ],
1289
1281
  "flags": {
1290
1282
  "verbose": {
@@ -1301,22 +1293,17 @@
1301
1293
  "multiple": false,
1302
1294
  "type": "option"
1303
1295
  },
1304
- "namespace": {
1305
- "aliases": [
1306
- "ns"
1307
- ],
1308
- "char": "n",
1309
- "description": "The Kubernetes namespace to target",
1310
- "name": "namespace",
1311
- "required": false,
1312
- "hasDynamicHelp": false,
1313
- "multiple": false,
1314
- "type": "option"
1296
+ "follow": {
1297
+ "char": "f",
1298
+ "description": "Follow log output",
1299
+ "name": "follow",
1300
+ "allowNo": true,
1301
+ "type": "boolean"
1315
1302
  }
1316
1303
  },
1317
1304
  "hasDynamicHelp": false,
1318
1305
  "hiddenAliases": [],
1319
- "id": "kubernetes:restart",
1306
+ "id": "logs",
1320
1307
  "pluginAlias": "@enspirit/emb",
1321
1308
  "pluginName": "@enspirit/emb",
1322
1309
  "pluginType": "core",
@@ -1328,26 +1315,32 @@
1328
1315
  "src",
1329
1316
  "cli",
1330
1317
  "commands",
1331
- "kubernetes",
1332
- "restart.js"
1318
+ "logs",
1319
+ "index.js"
1333
1320
  ]
1334
1321
  },
1335
- "kubernetes:shell": {
1336
- "aliases": [
1337
- "shell"
1338
- ],
1322
+ "resources:build": {
1323
+ "aliases": [],
1339
1324
  "args": {
1340
1325
  "component": {
1341
- "description": "The component you want to get a shell on",
1326
+ "description": "List of resources to build (defaults to all)",
1342
1327
  "name": "component",
1343
- "required": true
1328
+ "required": false
1344
1329
  }
1345
1330
  },
1346
- "description": "Get a shell on a deployed component.",
1331
+ "description": "Build the resources of the monorepo",
1347
1332
  "examples": [
1348
- "<%= config.bin %> <%= command.id %>"
1333
+ "<%= config.bin %> <%= command.id %> build --flavor development",
1334
+ "<%= config.bin %> <%= command.id %> build --publishable --flavor production"
1349
1335
  ],
1350
1336
  "flags": {
1337
+ "json": {
1338
+ "description": "Format output as json.",
1339
+ "helpGroup": "GLOBAL",
1340
+ "name": "json",
1341
+ "allowNo": false,
1342
+ "type": "boolean"
1343
+ },
1351
1344
  "verbose": {
1352
1345
  "name": "verbose",
1353
1346
  "allowNo": true,
@@ -1362,53 +1355,62 @@
1362
1355
  "multiple": false,
1363
1356
  "type": "option"
1364
1357
  },
1365
- "namespace": {
1366
- "aliases": [
1367
- "ns"
1368
- ],
1369
- "char": "n",
1370
- "description": "The Kubernetes namespace to target",
1371
- "name": "namespace",
1358
+ "flavor": {
1359
+ "description": "Specify the flavor to use.",
1360
+ "name": "flavor",
1372
1361
  "required": false,
1373
1362
  "hasDynamicHelp": false,
1374
1363
  "multiple": false,
1375
1364
  "type": "option"
1376
1365
  },
1377
- "shell": {
1378
- "char": "s",
1379
- "description": "The shell to run",
1380
- "name": "shell",
1381
- "default": "bash",
1382
- "hasDynamicHelp": false,
1383
- "multiple": false,
1384
- "type": "option"
1366
+ "dry-run": {
1367
+ "description": "Do not build the resources but only produce build meta information",
1368
+ "name": "dry-run",
1369
+ "required": false,
1370
+ "allowNo": false,
1371
+ "type": "boolean"
1372
+ },
1373
+ "force": {
1374
+ "char": "f",
1375
+ "description": "Bypass the cache and force the build",
1376
+ "name": "force",
1377
+ "required": false,
1378
+ "allowNo": false,
1379
+ "type": "boolean"
1380
+ },
1381
+ "publishable": {
1382
+ "description": "Only build resources that are publishable (publish: true) and their dependencies",
1383
+ "name": "publishable",
1384
+ "required": false,
1385
+ "allowNo": false,
1386
+ "type": "boolean"
1385
1387
  }
1386
1388
  },
1387
1389
  "hasDynamicHelp": false,
1388
1390
  "hiddenAliases": [],
1389
- "id": "kubernetes:shell",
1391
+ "id": "resources:build",
1390
1392
  "pluginAlias": "@enspirit/emb",
1391
1393
  "pluginName": "@enspirit/emb",
1392
1394
  "pluginType": "core",
1393
- "strict": true,
1394
- "enableJsonFlag": false,
1395
+ "strict": false,
1396
+ "enableJsonFlag": true,
1395
1397
  "isESM": true,
1396
1398
  "relativePath": [
1397
1399
  "dist",
1398
1400
  "src",
1399
1401
  "cli",
1400
1402
  "commands",
1401
- "kubernetes",
1402
- "shell.js"
1403
+ "resources",
1404
+ "build.js"
1403
1405
  ]
1404
1406
  },
1405
- "secrets": {
1407
+ "resources": {
1406
1408
  "aliases": [],
1407
1409
  "args": {},
1408
- "description": "List all secret references in the configuration.",
1410
+ "description": "List resources.",
1409
1411
  "examples": [
1410
1412
  "<%= config.bin %> <%= command.id %>",
1411
- "<%= config.bin %> <%= command.id %> --json"
1413
+ "<%= config.bin %> <%= command.id %> --publishable"
1412
1414
  ],
1413
1415
  "flags": {
1414
1416
  "json": {
@@ -1439,11 +1441,18 @@
1439
1441
  "hasDynamicHelp": false,
1440
1442
  "multiple": false,
1441
1443
  "type": "option"
1444
+ },
1445
+ "publishable": {
1446
+ "description": "Only show resources that are publishable (publish: true)",
1447
+ "name": "publishable",
1448
+ "required": false,
1449
+ "allowNo": false,
1450
+ "type": "boolean"
1442
1451
  }
1443
1452
  },
1444
1453
  "hasDynamicHelp": false,
1445
1454
  "hiddenAliases": [],
1446
- "id": "secrets",
1455
+ "id": "resources",
1447
1456
  "pluginAlias": "@enspirit/emb",
1448
1457
  "pluginName": "@enspirit/emb",
1449
1458
  "pluginType": "core",
@@ -1455,16 +1464,23 @@
1455
1464
  "src",
1456
1465
  "cli",
1457
1466
  "commands",
1458
- "secrets",
1467
+ "resources",
1459
1468
  "index.js"
1460
1469
  ]
1461
1470
  },
1462
- "secrets:providers": {
1471
+ "resources:publish": {
1463
1472
  "aliases": [],
1464
- "args": {},
1465
- "description": "Show configured secret providers and their status.",
1473
+ "args": {
1474
+ "resources": {
1475
+ "description": "List of resources to publish (defaults to all publishable)",
1476
+ "name": "resources",
1477
+ "required": false
1478
+ }
1479
+ },
1480
+ "description": "Publish resources to their registries",
1466
1481
  "examples": [
1467
- "<%= config.bin %> <%= command.id %>"
1482
+ "<%= config.bin %> <%= command.id %> --flavor production",
1483
+ "<%= config.bin %> <%= command.id %> api:image --flavor production"
1468
1484
  ],
1469
1485
  "flags": {
1470
1486
  "json": {
@@ -1495,15 +1511,22 @@
1495
1511
  "hasDynamicHelp": false,
1496
1512
  "multiple": false,
1497
1513
  "type": "option"
1514
+ },
1515
+ "dry-run": {
1516
+ "description": "Do not publish, just show what would be published",
1517
+ "name": "dry-run",
1518
+ "required": false,
1519
+ "allowNo": false,
1520
+ "type": "boolean"
1498
1521
  }
1499
1522
  },
1500
1523
  "hasDynamicHelp": false,
1501
1524
  "hiddenAliases": [],
1502
- "id": "secrets:providers",
1525
+ "id": "resources:publish",
1503
1526
  "pluginAlias": "@enspirit/emb",
1504
1527
  "pluginName": "@enspirit/emb",
1505
1528
  "pluginType": "core",
1506
- "strict": true,
1529
+ "strict": false,
1507
1530
  "enableJsonFlag": true,
1508
1531
  "isESM": true,
1509
1532
  "relativePath": [
@@ -1511,17 +1534,16 @@
1511
1534
  "src",
1512
1535
  "cli",
1513
1536
  "commands",
1514
- "secrets",
1515
- "providers.js"
1537
+ "resources",
1538
+ "publish.js"
1516
1539
  ]
1517
1540
  },
1518
- "secrets:validate": {
1541
+ "secrets": {
1519
1542
  "aliases": [],
1520
1543
  "args": {},
1521
- "description": "Validate that all secret references can be resolved (without showing values).",
1544
+ "description": "List all secret references in the configuration.",
1522
1545
  "examples": [
1523
1546
  "<%= config.bin %> <%= command.id %>",
1524
- "<%= config.bin %> <%= command.id %> --fail-fast",
1525
1547
  "<%= config.bin %> <%= command.id %> --json"
1526
1548
  ],
1527
1549
  "flags": {
@@ -1553,17 +1575,11 @@
1553
1575
  "hasDynamicHelp": false,
1554
1576
  "multiple": false,
1555
1577
  "type": "option"
1556
- },
1557
- "fail-fast": {
1558
- "description": "Stop on first validation error",
1559
- "name": "fail-fast",
1560
- "allowNo": false,
1561
- "type": "boolean"
1562
1578
  }
1563
1579
  },
1564
1580
  "hasDynamicHelp": false,
1565
1581
  "hiddenAliases": [],
1566
- "id": "secrets:validate",
1582
+ "id": "secrets",
1567
1583
  "pluginAlias": "@enspirit/emb",
1568
1584
  "pluginName": "@enspirit/emb",
1569
1585
  "pluginType": "core",
@@ -1576,24 +1592,15 @@
1576
1592
  "cli",
1577
1593
  "commands",
1578
1594
  "secrets",
1579
- "validate.js"
1595
+ "index.js"
1580
1596
  ]
1581
1597
  },
1582
- "logs:archive": {
1598
+ "secrets:providers": {
1583
1599
  "aliases": [],
1584
- "args": {
1585
- "service": {
1586
- "description": "The service(s) to archive logs for (all if omitted)",
1587
- "name": "service",
1588
- "required": false
1589
- }
1590
- },
1591
- "description": "Archive docker compose logs to files (one file per service).",
1600
+ "args": {},
1601
+ "description": "Show configured secret providers and their status.",
1592
1602
  "examples": [
1593
- "<%= config.bin %> <%= command.id %>",
1594
- "<%= config.bin %> <%= command.id %> backend frontend",
1595
- "<%= config.bin %> <%= command.id %> --timestamps",
1596
- "<%= config.bin %> <%= command.id %> --tail 1000"
1603
+ "<%= config.bin %> <%= command.id %>"
1597
1604
  ],
1598
1605
  "flags": {
1599
1606
  "json": {
@@ -1617,24 +1624,10 @@
1617
1624
  "multiple": false,
1618
1625
  "type": "option"
1619
1626
  },
1620
- "timestamps": {
1621
- "char": "t",
1622
- "description": "Include timestamps in logs",
1623
- "name": "timestamps",
1624
- "allowNo": false,
1625
- "type": "boolean"
1626
- },
1627
- "tail": {
1628
- "description": "Number of lines to show from the end of the logs",
1629
- "name": "tail",
1630
- "hasDynamicHelp": false,
1631
- "multiple": false,
1632
- "type": "option"
1633
- },
1634
- "output": {
1635
- "char": "o",
1636
- "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1637
- "name": "output",
1627
+ "flavor": {
1628
+ "description": "Specify the flavor to use.",
1629
+ "name": "flavor",
1630
+ "required": false,
1638
1631
  "hasDynamicHelp": false,
1639
1632
  "multiple": false,
1640
1633
  "type": "option"
@@ -1642,11 +1635,11 @@
1642
1635
  },
1643
1636
  "hasDynamicHelp": false,
1644
1637
  "hiddenAliases": [],
1645
- "id": "logs:archive",
1638
+ "id": "secrets:providers",
1646
1639
  "pluginAlias": "@enspirit/emb",
1647
1640
  "pluginName": "@enspirit/emb",
1648
1641
  "pluginType": "core",
1649
- "strict": false,
1642
+ "strict": true,
1650
1643
  "enableJsonFlag": true,
1651
1644
  "isESM": true,
1652
1645
  "relativePath": [
@@ -1654,27 +1647,27 @@
1654
1647
  "src",
1655
1648
  "cli",
1656
1649
  "commands",
1657
- "logs",
1658
- "archive.js"
1650
+ "secrets",
1651
+ "providers.js"
1659
1652
  ]
1660
1653
  },
1661
- "logs": {
1654
+ "secrets:validate": {
1662
1655
  "aliases": [],
1663
- "args": {
1664
- "service": {
1665
- "description": "The service(s) you want to see the logs of (all if omitted)",
1666
- "name": "service",
1667
- "required": false
1668
- }
1669
- },
1670
- "description": "Get service logs.",
1656
+ "args": {},
1657
+ "description": "Validate that all secret references can be resolved (without showing values).",
1671
1658
  "examples": [
1672
1659
  "<%= config.bin %> <%= command.id %>",
1673
- "<%= config.bin %> <%= command.id %> backend",
1674
- "<%= config.bin %> <%= command.id %> backend frontend",
1675
- "<%= config.bin %> <%= command.id %> --no-follow backend"
1660
+ "<%= config.bin %> <%= command.id %> --fail-fast",
1661
+ "<%= config.bin %> <%= command.id %> --json"
1676
1662
  ],
1677
1663
  "flags": {
1664
+ "json": {
1665
+ "description": "Format output as json.",
1666
+ "helpGroup": "GLOBAL",
1667
+ "name": "json",
1668
+ "allowNo": false,
1669
+ "type": "boolean"
1670
+ },
1678
1671
  "verbose": {
1679
1672
  "name": "verbose",
1680
1673
  "allowNo": true,
@@ -1689,30 +1682,37 @@
1689
1682
  "multiple": false,
1690
1683
  "type": "option"
1691
1684
  },
1692
- "follow": {
1693
- "char": "f",
1694
- "description": "Follow log output",
1695
- "name": "follow",
1696
- "allowNo": true,
1685
+ "flavor": {
1686
+ "description": "Specify the flavor to use.",
1687
+ "name": "flavor",
1688
+ "required": false,
1689
+ "hasDynamicHelp": false,
1690
+ "multiple": false,
1691
+ "type": "option"
1692
+ },
1693
+ "fail-fast": {
1694
+ "description": "Stop on first validation error",
1695
+ "name": "fail-fast",
1696
+ "allowNo": false,
1697
1697
  "type": "boolean"
1698
1698
  }
1699
1699
  },
1700
1700
  "hasDynamicHelp": false,
1701
1701
  "hiddenAliases": [],
1702
- "id": "logs",
1702
+ "id": "secrets:validate",
1703
1703
  "pluginAlias": "@enspirit/emb",
1704
1704
  "pluginName": "@enspirit/emb",
1705
1705
  "pluginType": "core",
1706
- "strict": false,
1707
- "enableJsonFlag": false,
1706
+ "strict": true,
1707
+ "enableJsonFlag": true,
1708
1708
  "isESM": true,
1709
1709
  "relativePath": [
1710
1710
  "dist",
1711
1711
  "src",
1712
1712
  "cli",
1713
1713
  "commands",
1714
- "logs",
1715
- "index.js"
1714
+ "secrets",
1715
+ "validate.js"
1716
1716
  ]
1717
1717
  },
1718
1718
  "tasks": {
@@ -1840,5 +1840,5 @@
1840
1840
  ]
1841
1841
  }
1842
1842
  },
1843
- "version": "0.25.1"
1843
+ "version": "0.25.5"
1844
1844
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enspirit/emb",
3
3
  "type": "module",
4
- "version": "0.25.1",
4
+ "version": "0.25.5",
5
5
  "keywords": [
6
6
  "monorepo",
7
7
  "docker",