@enspirit/emb 0.20.2 → 0.21.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.
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.20.2 darwin-x64 node-v22.18.0
17
+ @enspirit/emb/0.21.0 darwin-arm64 node-v22.21.1
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.20.2/src/commands/clean.ts)_
116
+ _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.21.0/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.20.2/src/commands/components/index.ts)_
141
+ _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/components/index.ts)_
142
142
 
143
143
  ## `emb components logs [COMPONENT]`
144
144
 
@@ -169,7 +169,7 @@ EXAMPLES
169
169
  $ emb components logs --no-follow backend
170
170
  ```
171
171
 
172
- _See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/components/logs.ts)_
172
+ _See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/components/logs.ts)_
173
173
 
174
174
  ## `emb components shell COMPONENT`
175
175
 
@@ -197,7 +197,7 @@ EXAMPLES
197
197
  $ emb components shell
198
198
  ```
199
199
 
200
- _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/components/shell.ts)_
200
+ _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/components/shell.ts)_
201
201
 
202
202
  ## `emb config print`
203
203
 
@@ -222,7 +222,7 @@ EXAMPLES
222
222
  $ emb config print
223
223
  ```
224
224
 
225
- _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/config/print.ts)_
225
+ _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/config/print.ts)_
226
226
 
227
227
  ## `emb containers`
228
228
 
@@ -247,7 +247,7 @@ EXAMPLES
247
247
  $ emb containers
248
248
  ```
249
249
 
250
- _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/containers/index.ts)_
250
+ _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/containers/index.ts)_
251
251
 
252
252
  ## `emb containers prune`
253
253
 
@@ -271,7 +271,7 @@ EXAMPLES
271
271
  $ emb containers prune
272
272
  ```
273
273
 
274
- _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/containers/prune.ts)_
274
+ _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/containers/prune.ts)_
275
275
 
276
276
  ## `emb down`
277
277
 
@@ -296,7 +296,7 @@ EXAMPLES
296
296
  $ emb down
297
297
  ```
298
298
 
299
- _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/down.ts)_
299
+ _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/down.ts)_
300
300
 
301
301
  ## `emb help [COMMAND]`
302
302
 
@@ -342,7 +342,7 @@ EXAMPLES
342
342
  $ emb images
343
343
  ```
344
344
 
345
- _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/index.ts)_
345
+ _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/images/index.ts)_
346
346
 
347
347
  ## `emb images delete`
348
348
 
@@ -367,7 +367,7 @@ EXAMPLES
367
367
  $ emb images delete
368
368
  ```
369
369
 
370
- _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/delete.ts)_
370
+ _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/images/delete.ts)_
371
371
 
372
372
  ## `emb images prune`
373
373
 
@@ -392,7 +392,7 @@ EXAMPLES
392
392
  $ emb images prune
393
393
  ```
394
394
 
395
- _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/prune.ts)_
395
+ _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/images/prune.ts)_
396
396
 
397
397
  ## `emb images push`
398
398
 
@@ -421,7 +421,7 @@ EXAMPLES
421
421
  $ emb images push --registry my.registry.io --retag newtag
422
422
  ```
423
423
 
424
- _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/push.ts)_
424
+ _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/images/push.ts)_
425
425
 
426
426
  ## `emb kubernetes logs COMPONENT`
427
427
 
@@ -447,7 +447,7 @@ EXAMPLES
447
447
  $ emb kubernetes logs
448
448
  ```
449
449
 
450
- _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/logs.ts)_
450
+ _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/kubernetes/logs.ts)_
451
451
 
452
452
  ## `emb kubernetes ps`
453
453
 
@@ -470,7 +470,7 @@ EXAMPLES
470
470
  $ emb kubernetes ps
471
471
  ```
472
472
 
473
- _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/ps.ts)_
473
+ _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/kubernetes/ps.ts)_
474
474
 
475
475
  ## `emb kubernetes restart [DEPLOYMENT]`
476
476
 
@@ -495,7 +495,7 @@ EXAMPLES
495
495
  $ emb kubernetes restart
496
496
  ```
497
497
 
498
- _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/restart.ts)_
498
+ _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/kubernetes/restart.ts)_
499
499
 
500
500
  ## `emb kubernetes shell COMPONENT`
501
501
 
@@ -524,7 +524,7 @@ EXAMPLES
524
524
  $ emb kubernetes shell
525
525
  ```
526
526
 
527
- _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/shell.ts)_
527
+ _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/kubernetes/shell.ts)_
528
528
 
529
529
  ## `emb logs [COMPONENT]`
530
530
 
@@ -555,7 +555,7 @@ EXAMPLES
555
555
  $ emb logs --no-follow backend
556
556
  ```
557
557
 
558
- _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/logs/index.ts)_
558
+ _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/logs/index.ts)_
559
559
 
560
560
  ## `emb logs archive [COMPONENT]`
561
561
 
@@ -591,7 +591,7 @@ EXAMPLES
591
591
  $ emb logs archive --tail 1000
592
592
  ```
593
593
 
594
- _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/logs/archive.ts)_
594
+ _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/logs/archive.ts)_
595
595
 
596
596
  ## `emb ps`
597
597
 
@@ -614,7 +614,7 @@ EXAMPLES
614
614
  $ emb ps
615
615
  ```
616
616
 
617
- _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/ps.ts)_
617
+ _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/ps.ts)_
618
618
 
619
619
  ## `emb resources`
620
620
 
@@ -639,7 +639,7 @@ EXAMPLES
639
639
  $ emb resources
640
640
  ```
641
641
 
642
- _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/resources/index.ts)_
642
+ _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/resources/index.ts)_
643
643
 
644
644
  ## `emb resources build [COMPONENT]`
645
645
 
@@ -669,7 +669,7 @@ EXAMPLES
669
669
  $ emb resources build build --flavor development
670
670
  ```
671
671
 
672
- _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/resources/build.ts)_
672
+ _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/resources/build.ts)_
673
673
 
674
674
  ## `emb restart [COMPONENT]`
675
675
 
@@ -697,7 +697,7 @@ EXAMPLES
697
697
  $ emb restart
698
698
  ```
699
699
 
700
- _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/restart.ts)_
700
+ _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/restart.ts)_
701
701
 
702
702
  ## `emb run TASK`
703
703
 
@@ -755,7 +755,7 @@ EXAMPLES
755
755
  $ emb secrets --json
756
756
  ```
757
757
 
758
- _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/index.ts)_
758
+ _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/secrets/index.ts)_
759
759
 
760
760
  ## `emb secrets providers`
761
761
 
@@ -780,7 +780,7 @@ EXAMPLES
780
780
  $ emb secrets providers
781
781
  ```
782
782
 
783
- _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/providers.ts)_
783
+ _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/secrets/providers.ts)_
784
784
 
785
785
  ## `emb secrets validate`
786
786
 
@@ -810,7 +810,7 @@ EXAMPLES
810
810
  $ emb secrets validate --json
811
811
  ```
812
812
 
813
- _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/validate.ts)_
813
+ _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/secrets/validate.ts)_
814
814
 
815
815
  ## `emb shell COMPONENT`
816
816
 
@@ -863,7 +863,7 @@ EXAMPLES
863
863
  $ emb start
864
864
  ```
865
865
 
866
- _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/start.ts)_
866
+ _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/start.ts)_
867
867
 
868
868
  ## `emb stop`
869
869
 
@@ -888,7 +888,7 @@ EXAMPLES
888
888
  $ emb stop
889
889
  ```
890
890
 
891
- _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/stop.ts)_
891
+ _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/stop.ts)_
892
892
 
893
893
  ## `emb tasks`
894
894
 
@@ -912,7 +912,7 @@ EXAMPLES
912
912
  $ emb tasks
913
913
  ```
914
914
 
915
- _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/tasks/index.ts)_
915
+ _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/tasks/index.ts)_
916
916
 
917
917
  ## `emb tasks run TASK`
918
918
 
@@ -945,7 +945,7 @@ EXAMPLES
945
945
  $ emb tasks run
946
946
  ```
947
947
 
948
- _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/tasks/run.ts)_
948
+ _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/tasks/run.ts)_
949
949
 
950
950
  ## `emb up [COMPONENT]`
951
951
 
@@ -974,7 +974,7 @@ EXAMPLES
974
974
  $ emb up
975
975
  ```
976
976
 
977
- _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/up.ts)_
977
+ _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.21.0/src/commands/up.ts)_
978
978
 
979
979
  ## `emb update [CHANNEL]`
980
980
 
@@ -207,6 +207,14 @@
207
207
  "DockerImageConfig": {
208
208
  "type": "object",
209
209
  "properties": {
210
+ "image": {
211
+ "type": "string",
212
+ "description": "Image name (without project prefix or tag). Defaults to component name."
213
+ },
214
+ "tag": {
215
+ "type": "string",
216
+ "description": "Image tag. Defaults to defaults.docker.tag or 'latest'."
217
+ },
210
218
  "buildArgs": {
211
219
  "type": "object",
212
220
  "properties": {},
@@ -50,7 +50,7 @@ export class PushImagesOperation extends AbstractOperation {
50
50
  });
51
51
  return manager.run([
52
52
  {
53
- title: 'Push imags',
53
+ title: 'Push images',
54
54
  async task(ctx, task) {
55
55
  return task.newListr(tasks, {
56
56
  rendererOptions: {
@@ -19,22 +19,10 @@ class DockerImageResourceBuilder extends SentinelFileBasedBuilder {
19
19
  : buildContext.monorepo.join(buildContext.component.rootDir);
20
20
  }
21
21
  async getReference() {
22
- const configTag = this.config?.tag;
23
- let imageNamePart;
24
- let tagPart;
25
- if (configTag && configTag.includes(':')) {
26
- // config.tag contains both image name and tag (e.g., "myimage:v1.0.0")
27
- const colonIndex = configTag.lastIndexOf(':');
28
- imageNamePart = configTag.slice(0, colonIndex);
29
- tagPart = configTag.slice(colonIndex + 1);
30
- }
31
- else {
32
- // config.tag is just an image name or undefined
33
- imageNamePart = configTag || this.component.name;
34
- tagPart = this.monorepo.defaults.docker?.tag || 'latest';
35
- }
36
- const imageName = [this.monorepo.name, imageNamePart].join('/');
37
- return this.monorepo.expand(`${imageName}:${tagPart}`);
22
+ const imageName = this.config?.image || this.component.name;
23
+ const tag = this.config?.tag || this.monorepo.defaults.docker?.tag || 'latest';
24
+ const fullImageName = [this.monorepo.name, imageName].join('/');
25
+ return this.monorepo.expand(`${fullImageName}:${tag}`);
38
26
  }
39
27
  get monorepo() {
40
28
  return this.buildContext.monorepo;
@@ -53,6 +41,8 @@ class DockerImageResourceBuilder extends SentinelFileBasedBuilder {
53
41
  .withRelativePaths()
54
42
  .crawl(this.dockerContext)
55
43
  .withPromise();
44
+ // Build operation input - note that 'image' from config is only used for
45
+ // getReference(), it's not passed to the build operation
56
46
  const buildParams = {
57
47
  context: this.dockerContext,
58
48
  dockerfile: this.config?.dockerfile || 'Dockerfile',
@@ -975,20 +975,22 @@
975
975
  "push.js"
976
976
  ]
977
977
  },
978
- "kubernetes:logs": {
978
+ "secrets": {
979
979
  "aliases": [],
980
- "args": {
981
- "component": {
982
- "description": "The component you want to see the logs of",
983
- "name": "component",
984
- "required": true
985
- }
986
- },
987
- "description": "Follow kubernetes logs.",
980
+ "args": {},
981
+ "description": "List all secret references in the configuration.",
988
982
  "examples": [
989
- "<%= config.bin %> <%= command.id %>"
983
+ "<%= config.bin %> <%= command.id %>",
984
+ "<%= config.bin %> <%= command.id %> --json"
990
985
  ],
991
986
  "flags": {
987
+ "json": {
988
+ "description": "Format output as json.",
989
+ "helpGroup": "GLOBAL",
990
+ "name": "json",
991
+ "allowNo": false,
992
+ "type": "boolean"
993
+ },
992
994
  "verbose": {
993
995
  "name": "verbose",
994
996
  "allowNo": true,
@@ -1003,53 +1005,48 @@
1003
1005
  "multiple": false,
1004
1006
  "type": "option"
1005
1007
  },
1006
- "namespace": {
1007
- "aliases": [
1008
- "ns"
1009
- ],
1010
- "char": "n",
1011
- "description": "The Kubernetes namespace to target",
1012
- "env": "K8S_NAMESPACE",
1013
- "name": "namespace",
1014
- "required": true,
1008
+ "flavor": {
1009
+ "description": "Specify the flavor to use.",
1010
+ "name": "flavor",
1011
+ "required": false,
1015
1012
  "hasDynamicHelp": false,
1016
1013
  "multiple": false,
1017
1014
  "type": "option"
1018
- },
1019
- "follow": {
1020
- "char": "f",
1021
- "description": "Follow log output",
1022
- "name": "follow",
1023
- "allowNo": true,
1024
- "type": "boolean"
1025
1015
  }
1026
1016
  },
1027
1017
  "hasDynamicHelp": false,
1028
1018
  "hiddenAliases": [],
1029
- "id": "kubernetes:logs",
1019
+ "id": "secrets",
1030
1020
  "pluginAlias": "@enspirit/emb",
1031
1021
  "pluginName": "@enspirit/emb",
1032
1022
  "pluginType": "core",
1033
1023
  "strict": true,
1034
- "enableJsonFlag": false,
1024
+ "enableJsonFlag": true,
1035
1025
  "isESM": true,
1036
1026
  "relativePath": [
1037
1027
  "dist",
1038
1028
  "src",
1039
1029
  "cli",
1040
1030
  "commands",
1041
- "kubernetes",
1042
- "logs.js"
1031
+ "secrets",
1032
+ "index.js"
1043
1033
  ]
1044
1034
  },
1045
- "kubernetes:ps": {
1035
+ "secrets:providers": {
1046
1036
  "aliases": [],
1047
1037
  "args": {},
1048
- "description": "Show running pods.",
1038
+ "description": "Show configured secret providers and their status.",
1049
1039
  "examples": [
1050
1040
  "<%= config.bin %> <%= command.id %>"
1051
1041
  ],
1052
1042
  "flags": {
1043
+ "json": {
1044
+ "description": "Format output as json.",
1045
+ "helpGroup": "GLOBAL",
1046
+ "name": "json",
1047
+ "allowNo": false,
1048
+ "type": "boolean"
1049
+ },
1053
1050
  "verbose": {
1054
1051
  "name": "verbose",
1055
1052
  "allowNo": true,
@@ -1064,118 +1061,50 @@
1064
1061
  "multiple": false,
1065
1062
  "type": "option"
1066
1063
  },
1067
- "namespace": {
1068
- "aliases": [
1069
- "ns"
1070
- ],
1071
- "char": "n",
1072
- "description": "The Kubernetes namespace to target",
1073
- "env": "K8S_NAMESPACE",
1074
- "name": "namespace",
1075
- "required": true,
1064
+ "flavor": {
1065
+ "description": "Specify the flavor to use.",
1066
+ "name": "flavor",
1067
+ "required": false,
1076
1068
  "hasDynamicHelp": false,
1077
1069
  "multiple": false,
1078
1070
  "type": "option"
1079
- },
1080
- "watch": {
1081
- "name": "watch",
1082
- "allowNo": true,
1083
- "type": "boolean"
1084
1071
  }
1085
1072
  },
1086
1073
  "hasDynamicHelp": false,
1087
1074
  "hiddenAliases": [],
1088
- "id": "kubernetes:ps",
1075
+ "id": "secrets:providers",
1089
1076
  "pluginAlias": "@enspirit/emb",
1090
1077
  "pluginName": "@enspirit/emb",
1091
1078
  "pluginType": "core",
1092
- "strict": false,
1093
- "enableJsonFlag": false,
1079
+ "strict": true,
1080
+ "enableJsonFlag": true,
1094
1081
  "isESM": true,
1095
1082
  "relativePath": [
1096
1083
  "dist",
1097
1084
  "src",
1098
1085
  "cli",
1099
1086
  "commands",
1100
- "kubernetes",
1101
- "ps.js"
1087
+ "secrets",
1088
+ "providers.js"
1102
1089
  ]
1103
1090
  },
1104
- "kubernetes:restart": {
1091
+ "secrets:validate": {
1105
1092
  "aliases": [],
1106
- "args": {
1107
- "deployment": {
1108
- "description": "The deployment(s) to restart",
1109
- "name": "deployment"
1110
- }
1111
- },
1112
- "description": "Restart pods of an instance.",
1093
+ "args": {},
1094
+ "description": "Validate that all secret references can be resolved (without showing values).",
1113
1095
  "examples": [
1114
- "<%= config.bin %> <%= command.id %>"
1096
+ "<%= config.bin %> <%= command.id %>",
1097
+ "<%= config.bin %> <%= command.id %> --fail-fast",
1098
+ "<%= config.bin %> <%= command.id %> --json"
1115
1099
  ],
1116
1100
  "flags": {
1117
- "verbose": {
1118
- "name": "verbose",
1119
- "allowNo": true,
1101
+ "json": {
1102
+ "description": "Format output as json.",
1103
+ "helpGroup": "GLOBAL",
1104
+ "name": "json",
1105
+ "allowNo": false,
1120
1106
  "type": "boolean"
1121
1107
  },
1122
- "root": {
1123
- "char": "C",
1124
- "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1125
- "name": "root",
1126
- "required": false,
1127
- "hasDynamicHelp": false,
1128
- "multiple": false,
1129
- "type": "option"
1130
- },
1131
- "namespace": {
1132
- "aliases": [
1133
- "ns"
1134
- ],
1135
- "char": "n",
1136
- "description": "The Kubernetes namespace to target",
1137
- "env": "K8S_NAMESPACE",
1138
- "name": "namespace",
1139
- "required": true,
1140
- "hasDynamicHelp": false,
1141
- "multiple": false,
1142
- "type": "option"
1143
- }
1144
- },
1145
- "hasDynamicHelp": false,
1146
- "hiddenAliases": [],
1147
- "id": "kubernetes:restart",
1148
- "pluginAlias": "@enspirit/emb",
1149
- "pluginName": "@enspirit/emb",
1150
- "pluginType": "core",
1151
- "strict": false,
1152
- "enableJsonFlag": false,
1153
- "isESM": true,
1154
- "relativePath": [
1155
- "dist",
1156
- "src",
1157
- "cli",
1158
- "commands",
1159
- "kubernetes",
1160
- "restart.js"
1161
- ]
1162
- },
1163
- "kubernetes:shell": {
1164
- "aliases": [
1165
- "shell"
1166
- ],
1167
- "args": {
1168
- "component": {
1169
- "description": "The component you want to get a shell on",
1170
- "name": "component",
1171
- "required": true
1172
- }
1173
- },
1174
- "description": "Get a shell on a deployed component.",
1175
- "examples": [
1176
- "<%= config.bin %> <%= command.id %>"
1177
- ],
1178
- "flags": {
1179
1108
  "verbose": {
1180
1109
  "name": "verbose",
1181
1110
  "allowNo": true,
@@ -1190,45 +1119,37 @@
1190
1119
  "multiple": false,
1191
1120
  "type": "option"
1192
1121
  },
1193
- "namespace": {
1194
- "aliases": [
1195
- "ns"
1196
- ],
1197
- "char": "n",
1198
- "description": "The Kubernetes namespace to target",
1199
- "env": "K8S_NAMESPACE",
1200
- "name": "namespace",
1201
- "required": true,
1122
+ "flavor": {
1123
+ "description": "Specify the flavor to use.",
1124
+ "name": "flavor",
1125
+ "required": false,
1202
1126
  "hasDynamicHelp": false,
1203
1127
  "multiple": false,
1204
1128
  "type": "option"
1205
1129
  },
1206
- "shell": {
1207
- "char": "s",
1208
- "description": "The shell to run",
1209
- "name": "shell",
1210
- "default": "bash",
1211
- "hasDynamicHelp": false,
1212
- "multiple": false,
1213
- "type": "option"
1130
+ "fail-fast": {
1131
+ "description": "Stop on first validation error",
1132
+ "name": "fail-fast",
1133
+ "allowNo": false,
1134
+ "type": "boolean"
1214
1135
  }
1215
1136
  },
1216
1137
  "hasDynamicHelp": false,
1217
1138
  "hiddenAliases": [],
1218
- "id": "kubernetes:shell",
1139
+ "id": "secrets:validate",
1219
1140
  "pluginAlias": "@enspirit/emb",
1220
1141
  "pluginName": "@enspirit/emb",
1221
1142
  "pluginType": "core",
1222
1143
  "strict": true,
1223
- "enableJsonFlag": false,
1144
+ "enableJsonFlag": true,
1224
1145
  "isESM": true,
1225
1146
  "relativePath": [
1226
1147
  "dist",
1227
1148
  "src",
1228
1149
  "cli",
1229
1150
  "commands",
1230
- "kubernetes",
1231
- "shell.js"
1151
+ "secrets",
1152
+ "validate.js"
1232
1153
  ]
1233
1154
  },
1234
1155
  "logs:archive": {
@@ -1367,18 +1288,12 @@
1367
1288
  "index.js"
1368
1289
  ]
1369
1290
  },
1370
- "resources:build": {
1291
+ "tasks": {
1371
1292
  "aliases": [],
1372
- "args": {
1373
- "component": {
1374
- "description": "List of resources to build (defaults to all)",
1375
- "name": "component",
1376
- "required": false
1377
- }
1378
- },
1379
- "description": "Build the resources of the monorepo",
1293
+ "args": {},
1294
+ "description": "List tasks.",
1380
1295
  "examples": [
1381
- "<%= config.bin %> <%= command.id %> build --flavor development"
1296
+ "<%= config.bin %> <%= command.id %>"
1382
1297
  ],
1383
1298
  "flags": {
1384
1299
  "json": {
@@ -1401,38 +1316,15 @@
1401
1316
  "hasDynamicHelp": false,
1402
1317
  "multiple": false,
1403
1318
  "type": "option"
1404
- },
1405
- "flavor": {
1406
- "description": "Specify the flavor to use.",
1407
- "name": "flavor",
1408
- "required": false,
1409
- "hasDynamicHelp": false,
1410
- "multiple": false,
1411
- "type": "option"
1412
- },
1413
- "dry-run": {
1414
- "description": "Do not build the resources but only produce build meta information",
1415
- "name": "dry-run",
1416
- "required": false,
1417
- "allowNo": false,
1418
- "type": "boolean"
1419
- },
1420
- "force": {
1421
- "char": "f",
1422
- "description": "Bypass the cache and force the build",
1423
- "name": "force",
1424
- "required": false,
1425
- "allowNo": false,
1426
- "type": "boolean"
1427
1319
  }
1428
1320
  },
1429
1321
  "hasDynamicHelp": false,
1430
1322
  "hiddenAliases": [],
1431
- "id": "resources:build",
1323
+ "id": "tasks",
1432
1324
  "pluginAlias": "@enspirit/emb",
1433
1325
  "pluginName": "@enspirit/emb",
1434
1326
  "pluginType": "core",
1435
- "strict": false,
1327
+ "strict": true,
1436
1328
  "enableJsonFlag": true,
1437
1329
  "isESM": true,
1438
1330
  "relativePath": [
@@ -1440,18 +1332,26 @@
1440
1332
  "src",
1441
1333
  "cli",
1442
1334
  "commands",
1443
- "resources",
1444
- "build.js"
1335
+ "tasks",
1336
+ "index.js"
1445
1337
  ]
1446
1338
  },
1447
- "resources": {
1448
- "aliases": [],
1449
- "args": {},
1450
- "description": "List resources.",
1451
- "examples": [
1452
- "<%= config.bin %> <%= command.id %>"
1453
- ],
1454
- "flags": {
1339
+ "tasks:run": {
1340
+ "aliases": [
1341
+ "run"
1342
+ ],
1343
+ "args": {
1344
+ "task": {
1345
+ "description": "List of tasks to run. You can provide either ids or names (eg: component:task or task)",
1346
+ "name": "task",
1347
+ "required": true
1348
+ }
1349
+ },
1350
+ "description": "Run tasks.",
1351
+ "examples": [
1352
+ "<%= config.bin %> <%= command.id %>"
1353
+ ],
1354
+ "flags": {
1455
1355
  "json": {
1456
1356
  "description": "Format output as json.",
1457
1357
  "helpGroup": "GLOBAL",
@@ -1473,22 +1373,33 @@
1473
1373
  "multiple": false,
1474
1374
  "type": "option"
1475
1375
  },
1476
- "flavor": {
1477
- "description": "Specify the flavor to use.",
1478
- "name": "flavor",
1479
- "required": false,
1376
+ "executor": {
1377
+ "char": "x",
1378
+ "description": "Where to run the task. (experimental!)",
1379
+ "name": "executor",
1480
1380
  "hasDynamicHelp": false,
1481
1381
  "multiple": false,
1382
+ "options": [
1383
+ "container",
1384
+ "local"
1385
+ ],
1482
1386
  "type": "option"
1387
+ },
1388
+ "all-matching": {
1389
+ "char": "a",
1390
+ "description": "Run all tasks matching (when multiple matches)",
1391
+ "name": "all-matching",
1392
+ "allowNo": false,
1393
+ "type": "boolean"
1483
1394
  }
1484
1395
  },
1485
1396
  "hasDynamicHelp": false,
1486
1397
  "hiddenAliases": [],
1487
- "id": "resources",
1398
+ "id": "tasks:run",
1488
1399
  "pluginAlias": "@enspirit/emb",
1489
1400
  "pluginName": "@enspirit/emb",
1490
1401
  "pluginType": "core",
1491
- "strict": true,
1402
+ "strict": false,
1492
1403
  "enableJsonFlag": true,
1493
1404
  "isESM": true,
1494
1405
  "relativePath": [
@@ -1496,26 +1407,24 @@
1496
1407
  "src",
1497
1408
  "cli",
1498
1409
  "commands",
1499
- "resources",
1500
- "index.js"
1410
+ "tasks",
1411
+ "run.js"
1501
1412
  ]
1502
1413
  },
1503
- "secrets": {
1414
+ "kubernetes:logs": {
1504
1415
  "aliases": [],
1505
- "args": {},
1506
- "description": "List all secret references in the configuration.",
1416
+ "args": {
1417
+ "component": {
1418
+ "description": "The component you want to see the logs of",
1419
+ "name": "component",
1420
+ "required": true
1421
+ }
1422
+ },
1423
+ "description": "Follow kubernetes logs.",
1507
1424
  "examples": [
1508
- "<%= config.bin %> <%= command.id %>",
1509
- "<%= config.bin %> <%= command.id %> --json"
1425
+ "<%= config.bin %> <%= command.id %>"
1510
1426
  ],
1511
1427
  "flags": {
1512
- "json": {
1513
- "description": "Format output as json.",
1514
- "helpGroup": "GLOBAL",
1515
- "name": "json",
1516
- "allowNo": false,
1517
- "type": "boolean"
1518
- },
1519
1428
  "verbose": {
1520
1429
  "name": "verbose",
1521
1430
  "allowNo": true,
@@ -1530,48 +1439,53 @@
1530
1439
  "multiple": false,
1531
1440
  "type": "option"
1532
1441
  },
1533
- "flavor": {
1534
- "description": "Specify the flavor to use.",
1535
- "name": "flavor",
1536
- "required": false,
1442
+ "namespace": {
1443
+ "aliases": [
1444
+ "ns"
1445
+ ],
1446
+ "char": "n",
1447
+ "description": "The Kubernetes namespace to target",
1448
+ "env": "K8S_NAMESPACE",
1449
+ "name": "namespace",
1450
+ "required": true,
1537
1451
  "hasDynamicHelp": false,
1538
1452
  "multiple": false,
1539
1453
  "type": "option"
1454
+ },
1455
+ "follow": {
1456
+ "char": "f",
1457
+ "description": "Follow log output",
1458
+ "name": "follow",
1459
+ "allowNo": true,
1460
+ "type": "boolean"
1540
1461
  }
1541
1462
  },
1542
1463
  "hasDynamicHelp": false,
1543
1464
  "hiddenAliases": [],
1544
- "id": "secrets",
1465
+ "id": "kubernetes:logs",
1545
1466
  "pluginAlias": "@enspirit/emb",
1546
1467
  "pluginName": "@enspirit/emb",
1547
1468
  "pluginType": "core",
1548
1469
  "strict": true,
1549
- "enableJsonFlag": true,
1470
+ "enableJsonFlag": false,
1550
1471
  "isESM": true,
1551
1472
  "relativePath": [
1552
1473
  "dist",
1553
1474
  "src",
1554
1475
  "cli",
1555
1476
  "commands",
1556
- "secrets",
1557
- "index.js"
1477
+ "kubernetes",
1478
+ "logs.js"
1558
1479
  ]
1559
1480
  },
1560
- "secrets:providers": {
1481
+ "kubernetes:ps": {
1561
1482
  "aliases": [],
1562
1483
  "args": {},
1563
- "description": "Show configured secret providers and their status.",
1484
+ "description": "Show running pods.",
1564
1485
  "examples": [
1565
1486
  "<%= config.bin %> <%= command.id %>"
1566
1487
  ],
1567
1488
  "flags": {
1568
- "json": {
1569
- "description": "Format output as json.",
1570
- "helpGroup": "GLOBAL",
1571
- "name": "json",
1572
- "allowNo": false,
1573
- "type": "boolean"
1574
- },
1575
1489
  "verbose": {
1576
1490
  "name": "verbose",
1577
1491
  "allowNo": true,
@@ -1586,50 +1500,118 @@
1586
1500
  "multiple": false,
1587
1501
  "type": "option"
1588
1502
  },
1589
- "flavor": {
1590
- "description": "Specify the flavor to use.",
1591
- "name": "flavor",
1592
- "required": false,
1503
+ "namespace": {
1504
+ "aliases": [
1505
+ "ns"
1506
+ ],
1507
+ "char": "n",
1508
+ "description": "The Kubernetes namespace to target",
1509
+ "env": "K8S_NAMESPACE",
1510
+ "name": "namespace",
1511
+ "required": true,
1593
1512
  "hasDynamicHelp": false,
1594
1513
  "multiple": false,
1595
1514
  "type": "option"
1515
+ },
1516
+ "watch": {
1517
+ "name": "watch",
1518
+ "allowNo": true,
1519
+ "type": "boolean"
1596
1520
  }
1597
1521
  },
1598
1522
  "hasDynamicHelp": false,
1599
1523
  "hiddenAliases": [],
1600
- "id": "secrets:providers",
1524
+ "id": "kubernetes:ps",
1601
1525
  "pluginAlias": "@enspirit/emb",
1602
1526
  "pluginName": "@enspirit/emb",
1603
1527
  "pluginType": "core",
1604
- "strict": true,
1605
- "enableJsonFlag": true,
1528
+ "strict": false,
1529
+ "enableJsonFlag": false,
1606
1530
  "isESM": true,
1607
1531
  "relativePath": [
1608
1532
  "dist",
1609
1533
  "src",
1610
1534
  "cli",
1611
1535
  "commands",
1612
- "secrets",
1613
- "providers.js"
1536
+ "kubernetes",
1537
+ "ps.js"
1614
1538
  ]
1615
1539
  },
1616
- "secrets:validate": {
1540
+ "kubernetes:restart": {
1617
1541
  "aliases": [],
1618
- "args": {},
1619
- "description": "Validate that all secret references can be resolved (without showing values).",
1542
+ "args": {
1543
+ "deployment": {
1544
+ "description": "The deployment(s) to restart",
1545
+ "name": "deployment"
1546
+ }
1547
+ },
1548
+ "description": "Restart pods of an instance.",
1620
1549
  "examples": [
1621
- "<%= config.bin %> <%= command.id %>",
1622
- "<%= config.bin %> <%= command.id %> --fail-fast",
1623
- "<%= config.bin %> <%= command.id %> --json"
1550
+ "<%= config.bin %> <%= command.id %>"
1624
1551
  ],
1625
1552
  "flags": {
1626
- "json": {
1627
- "description": "Format output as json.",
1628
- "helpGroup": "GLOBAL",
1629
- "name": "json",
1630
- "allowNo": false,
1553
+ "verbose": {
1554
+ "name": "verbose",
1555
+ "allowNo": true,
1631
1556
  "type": "boolean"
1632
1557
  },
1558
+ "root": {
1559
+ "char": "C",
1560
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1561
+ "name": "root",
1562
+ "required": false,
1563
+ "hasDynamicHelp": false,
1564
+ "multiple": false,
1565
+ "type": "option"
1566
+ },
1567
+ "namespace": {
1568
+ "aliases": [
1569
+ "ns"
1570
+ ],
1571
+ "char": "n",
1572
+ "description": "The Kubernetes namespace to target",
1573
+ "env": "K8S_NAMESPACE",
1574
+ "name": "namespace",
1575
+ "required": true,
1576
+ "hasDynamicHelp": false,
1577
+ "multiple": false,
1578
+ "type": "option"
1579
+ }
1580
+ },
1581
+ "hasDynamicHelp": false,
1582
+ "hiddenAliases": [],
1583
+ "id": "kubernetes:restart",
1584
+ "pluginAlias": "@enspirit/emb",
1585
+ "pluginName": "@enspirit/emb",
1586
+ "pluginType": "core",
1587
+ "strict": false,
1588
+ "enableJsonFlag": false,
1589
+ "isESM": true,
1590
+ "relativePath": [
1591
+ "dist",
1592
+ "src",
1593
+ "cli",
1594
+ "commands",
1595
+ "kubernetes",
1596
+ "restart.js"
1597
+ ]
1598
+ },
1599
+ "kubernetes:shell": {
1600
+ "aliases": [
1601
+ "shell"
1602
+ ],
1603
+ "args": {
1604
+ "component": {
1605
+ "description": "The component you want to get a shell on",
1606
+ "name": "component",
1607
+ "required": true
1608
+ }
1609
+ },
1610
+ "description": "Get a shell on a deployed component.",
1611
+ "examples": [
1612
+ "<%= config.bin %> <%= command.id %>"
1613
+ ],
1614
+ "flags": {
1633
1615
  "verbose": {
1634
1616
  "name": "verbose",
1635
1617
  "allowNo": true,
@@ -1644,45 +1626,59 @@
1644
1626
  "multiple": false,
1645
1627
  "type": "option"
1646
1628
  },
1647
- "flavor": {
1648
- "description": "Specify the flavor to use.",
1649
- "name": "flavor",
1650
- "required": false,
1629
+ "namespace": {
1630
+ "aliases": [
1631
+ "ns"
1632
+ ],
1633
+ "char": "n",
1634
+ "description": "The Kubernetes namespace to target",
1635
+ "env": "K8S_NAMESPACE",
1636
+ "name": "namespace",
1637
+ "required": true,
1651
1638
  "hasDynamicHelp": false,
1652
1639
  "multiple": false,
1653
1640
  "type": "option"
1654
1641
  },
1655
- "fail-fast": {
1656
- "description": "Stop on first validation error",
1657
- "name": "fail-fast",
1658
- "allowNo": false,
1659
- "type": "boolean"
1642
+ "shell": {
1643
+ "char": "s",
1644
+ "description": "The shell to run",
1645
+ "name": "shell",
1646
+ "default": "bash",
1647
+ "hasDynamicHelp": false,
1648
+ "multiple": false,
1649
+ "type": "option"
1660
1650
  }
1661
1651
  },
1662
1652
  "hasDynamicHelp": false,
1663
1653
  "hiddenAliases": [],
1664
- "id": "secrets:validate",
1654
+ "id": "kubernetes:shell",
1665
1655
  "pluginAlias": "@enspirit/emb",
1666
1656
  "pluginName": "@enspirit/emb",
1667
1657
  "pluginType": "core",
1668
1658
  "strict": true,
1669
- "enableJsonFlag": true,
1659
+ "enableJsonFlag": false,
1670
1660
  "isESM": true,
1671
1661
  "relativePath": [
1672
1662
  "dist",
1673
1663
  "src",
1674
1664
  "cli",
1675
1665
  "commands",
1676
- "secrets",
1677
- "validate.js"
1666
+ "kubernetes",
1667
+ "shell.js"
1678
1668
  ]
1679
1669
  },
1680
- "tasks": {
1670
+ "resources:build": {
1681
1671
  "aliases": [],
1682
- "args": {},
1683
- "description": "List tasks.",
1672
+ "args": {
1673
+ "component": {
1674
+ "description": "List of resources to build (defaults to all)",
1675
+ "name": "component",
1676
+ "required": false
1677
+ }
1678
+ },
1679
+ "description": "Build the resources of the monorepo",
1684
1680
  "examples": [
1685
- "<%= config.bin %> <%= command.id %>"
1681
+ "<%= config.bin %> <%= command.id %> build --flavor development"
1686
1682
  ],
1687
1683
  "flags": {
1688
1684
  "json": {
@@ -1705,15 +1701,38 @@
1705
1701
  "hasDynamicHelp": false,
1706
1702
  "multiple": false,
1707
1703
  "type": "option"
1704
+ },
1705
+ "flavor": {
1706
+ "description": "Specify the flavor to use.",
1707
+ "name": "flavor",
1708
+ "required": false,
1709
+ "hasDynamicHelp": false,
1710
+ "multiple": false,
1711
+ "type": "option"
1712
+ },
1713
+ "dry-run": {
1714
+ "description": "Do not build the resources but only produce build meta information",
1715
+ "name": "dry-run",
1716
+ "required": false,
1717
+ "allowNo": false,
1718
+ "type": "boolean"
1719
+ },
1720
+ "force": {
1721
+ "char": "f",
1722
+ "description": "Bypass the cache and force the build",
1723
+ "name": "force",
1724
+ "required": false,
1725
+ "allowNo": false,
1726
+ "type": "boolean"
1708
1727
  }
1709
1728
  },
1710
1729
  "hasDynamicHelp": false,
1711
1730
  "hiddenAliases": [],
1712
- "id": "tasks",
1731
+ "id": "resources:build",
1713
1732
  "pluginAlias": "@enspirit/emb",
1714
1733
  "pluginName": "@enspirit/emb",
1715
1734
  "pluginType": "core",
1716
- "strict": true,
1735
+ "strict": false,
1717
1736
  "enableJsonFlag": true,
1718
1737
  "isESM": true,
1719
1738
  "relativePath": [
@@ -1721,22 +1740,14 @@
1721
1740
  "src",
1722
1741
  "cli",
1723
1742
  "commands",
1724
- "tasks",
1725
- "index.js"
1743
+ "resources",
1744
+ "build.js"
1726
1745
  ]
1727
1746
  },
1728
- "tasks:run": {
1729
- "aliases": [
1730
- "run"
1731
- ],
1732
- "args": {
1733
- "task": {
1734
- "description": "List of tasks to run. You can provide either ids or names (eg: component:task or task)",
1735
- "name": "task",
1736
- "required": true
1737
- }
1738
- },
1739
- "description": "Run tasks.",
1747
+ "resources": {
1748
+ "aliases": [],
1749
+ "args": {},
1750
+ "description": "List resources.",
1740
1751
  "examples": [
1741
1752
  "<%= config.bin %> <%= command.id %>"
1742
1753
  ],
@@ -1762,33 +1773,22 @@
1762
1773
  "multiple": false,
1763
1774
  "type": "option"
1764
1775
  },
1765
- "executor": {
1766
- "char": "x",
1767
- "description": "Where to run the task. (experimental!)",
1768
- "name": "executor",
1776
+ "flavor": {
1777
+ "description": "Specify the flavor to use.",
1778
+ "name": "flavor",
1779
+ "required": false,
1769
1780
  "hasDynamicHelp": false,
1770
1781
  "multiple": false,
1771
- "options": [
1772
- "container",
1773
- "local"
1774
- ],
1775
1782
  "type": "option"
1776
- },
1777
- "all-matching": {
1778
- "char": "a",
1779
- "description": "Run all tasks matching (when multiple matches)",
1780
- "name": "all-matching",
1781
- "allowNo": false,
1782
- "type": "boolean"
1783
1783
  }
1784
1784
  },
1785
1785
  "hasDynamicHelp": false,
1786
1786
  "hiddenAliases": [],
1787
- "id": "tasks:run",
1787
+ "id": "resources",
1788
1788
  "pluginAlias": "@enspirit/emb",
1789
1789
  "pluginName": "@enspirit/emb",
1790
1790
  "pluginType": "core",
1791
- "strict": false,
1791
+ "strict": true,
1792
1792
  "enableJsonFlag": true,
1793
1793
  "isESM": true,
1794
1794
  "relativePath": [
@@ -1796,10 +1796,10 @@
1796
1796
  "src",
1797
1797
  "cli",
1798
1798
  "commands",
1799
- "tasks",
1800
- "run.js"
1799
+ "resources",
1800
+ "index.js"
1801
1801
  ]
1802
1802
  }
1803
1803
  },
1804
- "version": "0.20.2"
1804
+ "version": "0.21.0"
1805
1805
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enspirit/emb",
3
3
  "type": "module",
4
- "version": "0.20.2",
4
+ "version": "0.21.0",
5
5
  "keywords": [
6
6
  "monorepo",
7
7
  "docker",