@enspirit/emb 0.20.1 → 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.
@@ -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,56 +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": {
1101
+ "json": {
1102
+ "description": "Format output as json.",
1103
+ "helpGroup": "GLOBAL",
1104
+ "name": "json",
1105
+ "allowNo": false,
1106
+ "type": "boolean"
1107
+ },
1117
1108
  "verbose": {
1118
1109
  "name": "verbose",
1119
1110
  "allowNo": true,
@@ -1128,54 +1119,63 @@
1128
1119
  "multiple": false,
1129
1120
  "type": "option"
1130
1121
  },
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,
1122
+ "flavor": {
1123
+ "description": "Specify the flavor to use.",
1124
+ "name": "flavor",
1125
+ "required": false,
1140
1126
  "hasDynamicHelp": false,
1141
1127
  "multiple": false,
1142
1128
  "type": "option"
1129
+ },
1130
+ "fail-fast": {
1131
+ "description": "Stop on first validation error",
1132
+ "name": "fail-fast",
1133
+ "allowNo": false,
1134
+ "type": "boolean"
1143
1135
  }
1144
1136
  },
1145
1137
  "hasDynamicHelp": false,
1146
1138
  "hiddenAliases": [],
1147
- "id": "kubernetes:restart",
1139
+ "id": "secrets:validate",
1148
1140
  "pluginAlias": "@enspirit/emb",
1149
1141
  "pluginName": "@enspirit/emb",
1150
1142
  "pluginType": "core",
1151
- "strict": false,
1152
- "enableJsonFlag": false,
1143
+ "strict": true,
1144
+ "enableJsonFlag": true,
1153
1145
  "isESM": true,
1154
1146
  "relativePath": [
1155
1147
  "dist",
1156
1148
  "src",
1157
1149
  "cli",
1158
1150
  "commands",
1159
- "kubernetes",
1160
- "restart.js"
1151
+ "secrets",
1152
+ "validate.js"
1161
1153
  ]
1162
1154
  },
1163
- "kubernetes:shell": {
1164
- "aliases": [
1165
- "shell"
1166
- ],
1155
+ "logs:archive": {
1156
+ "aliases": [],
1167
1157
  "args": {
1168
1158
  "component": {
1169
- "description": "The component you want to get a shell on",
1159
+ "description": "The component(s) to archive logs for (all if omitted)",
1170
1160
  "name": "component",
1171
- "required": true
1161
+ "required": false
1172
1162
  }
1173
1163
  },
1174
- "description": "Get a shell on a deployed component.",
1164
+ "description": "Archive docker compose logs to files (one file per component).",
1175
1165
  "examples": [
1176
- "<%= config.bin %> <%= command.id %>"
1166
+ "<%= config.bin %> <%= command.id %>",
1167
+ "<%= config.bin %> <%= command.id %> backend frontend",
1168
+ "<%= config.bin %> <%= command.id %> --timestamps",
1169
+ "<%= config.bin %> <%= command.id %> --tail 1000"
1177
1170
  ],
1178
1171
  "flags": {
1172
+ "json": {
1173
+ "description": "Format output as json.",
1174
+ "helpGroup": "GLOBAL",
1175
+ "name": "json",
1176
+ "allowNo": false,
1177
+ "type": "boolean"
1178
+ },
1179
1179
  "verbose": {
1180
1180
  "name": "verbose",
1181
1181
  "allowNo": true,
@@ -1190,24 +1190,24 @@
1190
1190
  "multiple": false,
1191
1191
  "type": "option"
1192
1192
  },
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,
1193
+ "timestamps": {
1194
+ "char": "t",
1195
+ "description": "Include timestamps in logs",
1196
+ "name": "timestamps",
1197
+ "allowNo": false,
1198
+ "type": "boolean"
1199
+ },
1200
+ "tail": {
1201
+ "description": "Number of lines to show from the end of the logs",
1202
+ "name": "tail",
1202
1203
  "hasDynamicHelp": false,
1203
1204
  "multiple": false,
1204
1205
  "type": "option"
1205
1206
  },
1206
- "shell": {
1207
- "char": "s",
1208
- "description": "The shell to run",
1209
- "name": "shell",
1210
- "default": "bash",
1207
+ "output": {
1208
+ "char": "o",
1209
+ "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1210
+ "name": "output",
1211
1211
  "hasDynamicHelp": false,
1212
1212
  "multiple": false,
1213
1213
  "type": "option"
@@ -1215,43 +1215,39 @@
1215
1215
  },
1216
1216
  "hasDynamicHelp": false,
1217
1217
  "hiddenAliases": [],
1218
- "id": "kubernetes:shell",
1218
+ "id": "logs:archive",
1219
1219
  "pluginAlias": "@enspirit/emb",
1220
1220
  "pluginName": "@enspirit/emb",
1221
1221
  "pluginType": "core",
1222
- "strict": true,
1223
- "enableJsonFlag": false,
1222
+ "strict": false,
1223
+ "enableJsonFlag": true,
1224
1224
  "isESM": true,
1225
1225
  "relativePath": [
1226
1226
  "dist",
1227
1227
  "src",
1228
1228
  "cli",
1229
1229
  "commands",
1230
- "kubernetes",
1231
- "shell.js"
1230
+ "logs",
1231
+ "archive.js"
1232
1232
  ]
1233
1233
  },
1234
- "resources:build": {
1234
+ "logs": {
1235
1235
  "aliases": [],
1236
1236
  "args": {
1237
1237
  "component": {
1238
- "description": "List of resources to build (defaults to all)",
1238
+ "description": "The component(s) you want to see the logs of (all if omitted)",
1239
1239
  "name": "component",
1240
1240
  "required": false
1241
1241
  }
1242
1242
  },
1243
- "description": "Build the resources of the monorepo",
1243
+ "description": "Get components logs.",
1244
1244
  "examples": [
1245
- "<%= config.bin %> <%= command.id %> build --flavor development"
1245
+ "<%= config.bin %> <%= command.id %>",
1246
+ "<%= config.bin %> <%= command.id %> backend",
1247
+ "<%= config.bin %> <%= command.id %> backend frontend",
1248
+ "<%= config.bin %> <%= command.id %> --no-follow backend"
1246
1249
  ],
1247
1250
  "flags": {
1248
- "json": {
1249
- "description": "Format output as json.",
1250
- "helpGroup": "GLOBAL",
1251
- "name": "json",
1252
- "allowNo": false,
1253
- "type": "boolean"
1254
- },
1255
1251
  "verbose": {
1256
1252
  "name": "verbose",
1257
1253
  "allowNo": true,
@@ -1266,52 +1262,36 @@
1266
1262
  "multiple": false,
1267
1263
  "type": "option"
1268
1264
  },
1269
- "flavor": {
1270
- "description": "Specify the flavor to use.",
1271
- "name": "flavor",
1272
- "required": false,
1273
- "hasDynamicHelp": false,
1274
- "multiple": false,
1275
- "type": "option"
1276
- },
1277
- "dry-run": {
1278
- "description": "Do not build the resources but only produce build meta information",
1279
- "name": "dry-run",
1280
- "required": false,
1281
- "allowNo": false,
1282
- "type": "boolean"
1283
- },
1284
- "force": {
1265
+ "follow": {
1285
1266
  "char": "f",
1286
- "description": "Bypass the cache and force the build",
1287
- "name": "force",
1288
- "required": false,
1289
- "allowNo": false,
1267
+ "description": "Follow log output",
1268
+ "name": "follow",
1269
+ "allowNo": true,
1290
1270
  "type": "boolean"
1291
1271
  }
1292
1272
  },
1293
1273
  "hasDynamicHelp": false,
1294
1274
  "hiddenAliases": [],
1295
- "id": "resources:build",
1275
+ "id": "logs",
1296
1276
  "pluginAlias": "@enspirit/emb",
1297
1277
  "pluginName": "@enspirit/emb",
1298
1278
  "pluginType": "core",
1299
1279
  "strict": false,
1300
- "enableJsonFlag": true,
1280
+ "enableJsonFlag": false,
1301
1281
  "isESM": true,
1302
1282
  "relativePath": [
1303
1283
  "dist",
1304
1284
  "src",
1305
1285
  "cli",
1306
1286
  "commands",
1307
- "resources",
1308
- "build.js"
1287
+ "logs",
1288
+ "index.js"
1309
1289
  ]
1310
1290
  },
1311
- "resources": {
1291
+ "tasks": {
1312
1292
  "aliases": [],
1313
1293
  "args": {},
1314
- "description": "List resources.",
1294
+ "description": "List tasks.",
1315
1295
  "examples": [
1316
1296
  "<%= config.bin %> <%= command.id %>"
1317
1297
  ],
@@ -1336,19 +1316,11 @@
1336
1316
  "hasDynamicHelp": false,
1337
1317
  "multiple": false,
1338
1318
  "type": "option"
1339
- },
1340
- "flavor": {
1341
- "description": "Specify the flavor to use.",
1342
- "name": "flavor",
1343
- "required": false,
1344
- "hasDynamicHelp": false,
1345
- "multiple": false,
1346
- "type": "option"
1347
1319
  }
1348
1320
  },
1349
1321
  "hasDynamicHelp": false,
1350
1322
  "hiddenAliases": [],
1351
- "id": "resources",
1323
+ "id": "tasks",
1352
1324
  "pluginAlias": "@enspirit/emb",
1353
1325
  "pluginName": "@enspirit/emb",
1354
1326
  "pluginType": "core",
@@ -1360,25 +1332,24 @@
1360
1332
  "src",
1361
1333
  "cli",
1362
1334
  "commands",
1363
- "resources",
1335
+ "tasks",
1364
1336
  "index.js"
1365
1337
  ]
1366
1338
  },
1367
- "logs:archive": {
1368
- "aliases": [],
1339
+ "tasks:run": {
1340
+ "aliases": [
1341
+ "run"
1342
+ ],
1369
1343
  "args": {
1370
- "component": {
1371
- "description": "The component(s) to archive logs for (all if omitted)",
1372
- "name": "component",
1373
- "required": false
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
1374
1348
  }
1375
1349
  },
1376
- "description": "Archive docker compose logs to files (one file per component).",
1350
+ "description": "Run tasks.",
1377
1351
  "examples": [
1378
- "<%= config.bin %> <%= command.id %>",
1379
- "<%= config.bin %> <%= command.id %> backend frontend",
1380
- "<%= config.bin %> <%= command.id %> --timestamps",
1381
- "<%= config.bin %> <%= command.id %> --tail 1000"
1352
+ "<%= config.bin %> <%= command.id %>"
1382
1353
  ],
1383
1354
  "flags": {
1384
1355
  "json": {
@@ -1402,32 +1373,29 @@
1402
1373
  "multiple": false,
1403
1374
  "type": "option"
1404
1375
  },
1405
- "timestamps": {
1406
- "char": "t",
1407
- "description": "Include timestamps in logs",
1408
- "name": "timestamps",
1409
- "allowNo": false,
1410
- "type": "boolean"
1411
- },
1412
- "tail": {
1413
- "description": "Number of lines to show from the end of the logs",
1414
- "name": "tail",
1376
+ "executor": {
1377
+ "char": "x",
1378
+ "description": "Where to run the task. (experimental!)",
1379
+ "name": "executor",
1415
1380
  "hasDynamicHelp": false,
1416
1381
  "multiple": false,
1382
+ "options": [
1383
+ "container",
1384
+ "local"
1385
+ ],
1417
1386
  "type": "option"
1418
1387
  },
1419
- "output": {
1420
- "char": "o",
1421
- "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1422
- "name": "output",
1423
- "hasDynamicHelp": false,
1424
- "multiple": false,
1425
- "type": "option"
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"
1426
1394
  }
1427
1395
  },
1428
1396
  "hasDynamicHelp": false,
1429
1397
  "hiddenAliases": [],
1430
- "id": "logs:archive",
1398
+ "id": "tasks:run",
1431
1399
  "pluginAlias": "@enspirit/emb",
1432
1400
  "pluginName": "@enspirit/emb",
1433
1401
  "pluginType": "core",
@@ -1439,25 +1407,22 @@
1439
1407
  "src",
1440
1408
  "cli",
1441
1409
  "commands",
1442
- "logs",
1443
- "archive.js"
1410
+ "tasks",
1411
+ "run.js"
1444
1412
  ]
1445
1413
  },
1446
- "logs": {
1414
+ "kubernetes:logs": {
1447
1415
  "aliases": [],
1448
1416
  "args": {
1449
1417
  "component": {
1450
- "description": "The component(s) you want to see the logs of (all if omitted)",
1418
+ "description": "The component you want to see the logs of",
1451
1419
  "name": "component",
1452
- "required": false
1420
+ "required": true
1453
1421
  }
1454
1422
  },
1455
- "description": "Get components logs.",
1456
- "examples": [
1457
- "<%= config.bin %> <%= command.id %>",
1458
- "<%= config.bin %> <%= command.id %> backend",
1459
- "<%= config.bin %> <%= command.id %> backend frontend",
1460
- "<%= config.bin %> <%= command.id %> --no-follow backend"
1423
+ "description": "Follow kubernetes logs.",
1424
+ "examples": [
1425
+ "<%= config.bin %> <%= command.id %>"
1461
1426
  ],
1462
1427
  "flags": {
1463
1428
  "verbose": {
@@ -1474,6 +1439,19 @@
1474
1439
  "multiple": false,
1475
1440
  "type": "option"
1476
1441
  },
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,
1451
+ "hasDynamicHelp": false,
1452
+ "multiple": false,
1453
+ "type": "option"
1454
+ },
1477
1455
  "follow": {
1478
1456
  "char": "f",
1479
1457
  "description": "Follow log output",
@@ -1484,11 +1462,11 @@
1484
1462
  },
1485
1463
  "hasDynamicHelp": false,
1486
1464
  "hiddenAliases": [],
1487
- "id": "logs",
1465
+ "id": "kubernetes:logs",
1488
1466
  "pluginAlias": "@enspirit/emb",
1489
1467
  "pluginName": "@enspirit/emb",
1490
1468
  "pluginType": "core",
1491
- "strict": false,
1469
+ "strict": true,
1492
1470
  "enableJsonFlag": false,
1493
1471
  "isESM": true,
1494
1472
  "relativePath": [
@@ -1496,26 +1474,18 @@
1496
1474
  "src",
1497
1475
  "cli",
1498
1476
  "commands",
1499
- "logs",
1500
- "index.js"
1477
+ "kubernetes",
1478
+ "logs.js"
1501
1479
  ]
1502
1480
  },
1503
- "secrets": {
1481
+ "kubernetes:ps": {
1504
1482
  "aliases": [],
1505
1483
  "args": {},
1506
- "description": "List all secret references in the configuration.",
1484
+ "description": "Show running pods.",
1507
1485
  "examples": [
1508
- "<%= config.bin %> <%= command.id %>",
1509
- "<%= config.bin %> <%= command.id %> --json"
1486
+ "<%= config.bin %> <%= command.id %>"
1510
1487
  ],
1511
1488
  "flags": {
1512
- "json": {
1513
- "description": "Format output as json.",
1514
- "helpGroup": "GLOBAL",
1515
- "name": "json",
1516
- "allowNo": false,
1517
- "type": "boolean"
1518
- },
1519
1489
  "verbose": {
1520
1490
  "name": "verbose",
1521
1491
  "allowNo": true,
@@ -1530,48 +1500,56 @@
1530
1500
  "multiple": false,
1531
1501
  "type": "option"
1532
1502
  },
1533
- "flavor": {
1534
- "description": "Specify the flavor to use.",
1535
- "name": "flavor",
1536
- "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,
1537
1512
  "hasDynamicHelp": false,
1538
1513
  "multiple": false,
1539
1514
  "type": "option"
1515
+ },
1516
+ "watch": {
1517
+ "name": "watch",
1518
+ "allowNo": true,
1519
+ "type": "boolean"
1540
1520
  }
1541
1521
  },
1542
1522
  "hasDynamicHelp": false,
1543
1523
  "hiddenAliases": [],
1544
- "id": "secrets",
1524
+ "id": "kubernetes:ps",
1545
1525
  "pluginAlias": "@enspirit/emb",
1546
1526
  "pluginName": "@enspirit/emb",
1547
1527
  "pluginType": "core",
1548
- "strict": true,
1549
- "enableJsonFlag": true,
1528
+ "strict": false,
1529
+ "enableJsonFlag": false,
1550
1530
  "isESM": true,
1551
1531
  "relativePath": [
1552
1532
  "dist",
1553
1533
  "src",
1554
1534
  "cli",
1555
1535
  "commands",
1556
- "secrets",
1557
- "index.js"
1536
+ "kubernetes",
1537
+ "ps.js"
1558
1538
  ]
1559
1539
  },
1560
- "secrets:providers": {
1540
+ "kubernetes:restart": {
1561
1541
  "aliases": [],
1562
- "args": {},
1563
- "description": "Show configured secret providers and their status.",
1542
+ "args": {
1543
+ "deployment": {
1544
+ "description": "The deployment(s) to restart",
1545
+ "name": "deployment"
1546
+ }
1547
+ },
1548
+ "description": "Restart pods of an instance.",
1564
1549
  "examples": [
1565
1550
  "<%= config.bin %> <%= command.id %>"
1566
1551
  ],
1567
1552
  "flags": {
1568
- "json": {
1569
- "description": "Format output as json.",
1570
- "helpGroup": "GLOBAL",
1571
- "name": "json",
1572
- "allowNo": false,
1573
- "type": "boolean"
1574
- },
1575
1553
  "verbose": {
1576
1554
  "name": "verbose",
1577
1555
  "allowNo": true,
@@ -1586,10 +1564,15 @@
1586
1564
  "multiple": false,
1587
1565
  "type": "option"
1588
1566
  },
1589
- "flavor": {
1590
- "description": "Specify the flavor to use.",
1591
- "name": "flavor",
1592
- "required": false,
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,
1593
1576
  "hasDynamicHelp": false,
1594
1577
  "multiple": false,
1595
1578
  "type": "option"
@@ -1597,39 +1580,38 @@
1597
1580
  },
1598
1581
  "hasDynamicHelp": false,
1599
1582
  "hiddenAliases": [],
1600
- "id": "secrets:providers",
1583
+ "id": "kubernetes:restart",
1601
1584
  "pluginAlias": "@enspirit/emb",
1602
1585
  "pluginName": "@enspirit/emb",
1603
1586
  "pluginType": "core",
1604
- "strict": true,
1605
- "enableJsonFlag": true,
1587
+ "strict": false,
1588
+ "enableJsonFlag": false,
1606
1589
  "isESM": true,
1607
1590
  "relativePath": [
1608
1591
  "dist",
1609
1592
  "src",
1610
1593
  "cli",
1611
1594
  "commands",
1612
- "secrets",
1613
- "providers.js"
1595
+ "kubernetes",
1596
+ "restart.js"
1614
1597
  ]
1615
1598
  },
1616
- "secrets:validate": {
1617
- "aliases": [],
1618
- "args": {},
1619
- "description": "Validate that all secret references can be resolved (without showing values).",
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.",
1620
1611
  "examples": [
1621
- "<%= config.bin %> <%= command.id %>",
1622
- "<%= config.bin %> <%= command.id %> --fail-fast",
1623
- "<%= config.bin %> <%= command.id %> --json"
1612
+ "<%= config.bin %> <%= command.id %>"
1624
1613
  ],
1625
1614
  "flags": {
1626
- "json": {
1627
- "description": "Format output as json.",
1628
- "helpGroup": "GLOBAL",
1629
- "name": "json",
1630
- "allowNo": false,
1631
- "type": "boolean"
1632
- },
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.1"
1804
+ "version": "0.21.0"
1805
1805
  }