@enspirit/emb 0.17.0 → 0.18.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.
@@ -454,9 +454,7 @@
454
454
  ]
455
455
  },
456
456
  "components:logs": {
457
- "aliases": [
458
- "logs"
459
- ],
457
+ "aliases": [],
460
458
  "args": {
461
459
  "component": {
462
460
  "description": "The component(s) you want to see the logs of (all if omitted)",
@@ -977,27 +975,20 @@
977
975
  "push.js"
978
976
  ]
979
977
  },
980
- "resources:build": {
978
+ "kubernetes:logs": {
981
979
  "aliases": [],
982
980
  "args": {
983
981
  "component": {
984
- "description": "List of resources to build (defaults to all)",
982
+ "description": "The component you want to see the logs of",
985
983
  "name": "component",
986
- "required": false
984
+ "required": true
987
985
  }
988
986
  },
989
- "description": "Build the resources of the monorepo",
987
+ "description": "Follow kubernetes logs.",
990
988
  "examples": [
991
- "<%= config.bin %> <%= command.id %> build --flavor development"
989
+ "<%= config.bin %> <%= command.id %>"
992
990
  ],
993
991
  "flags": {
994
- "json": {
995
- "description": "Format output as json.",
996
- "helpGroup": "GLOBAL",
997
- "name": "json",
998
- "allowNo": false,
999
- "type": "boolean"
1000
- },
1001
992
  "verbose": {
1002
993
  "name": "verbose",
1003
994
  "allowNo": true,
@@ -1012,63 +1003,53 @@
1012
1003
  "multiple": false,
1013
1004
  "type": "option"
1014
1005
  },
1015
- "flavor": {
1016
- "description": "Specify the flavor to use.",
1017
- "name": "flavor",
1018
- "required": false,
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,
1019
1015
  "hasDynamicHelp": false,
1020
1016
  "multiple": false,
1021
1017
  "type": "option"
1022
1018
  },
1023
- "dry-run": {
1024
- "description": "Do not build the resources but only produce build meta information",
1025
- "name": "dry-run",
1026
- "required": false,
1027
- "allowNo": false,
1028
- "type": "boolean"
1029
- },
1030
- "force": {
1019
+ "follow": {
1031
1020
  "char": "f",
1032
- "description": "Bypass the cache and force the build",
1033
- "name": "force",
1034
- "required": false,
1035
- "allowNo": false,
1021
+ "description": "Follow log output",
1022
+ "name": "follow",
1023
+ "allowNo": true,
1036
1024
  "type": "boolean"
1037
1025
  }
1038
1026
  },
1039
1027
  "hasDynamicHelp": false,
1040
1028
  "hiddenAliases": [],
1041
- "id": "resources:build",
1029
+ "id": "kubernetes:logs",
1042
1030
  "pluginAlias": "@enspirit/emb",
1043
1031
  "pluginName": "@enspirit/emb",
1044
1032
  "pluginType": "core",
1045
- "strict": false,
1046
- "enableJsonFlag": true,
1033
+ "strict": true,
1034
+ "enableJsonFlag": false,
1047
1035
  "isESM": true,
1048
1036
  "relativePath": [
1049
1037
  "dist",
1050
1038
  "src",
1051
1039
  "cli",
1052
1040
  "commands",
1053
- "resources",
1054
- "build.js"
1041
+ "kubernetes",
1042
+ "logs.js"
1055
1043
  ]
1056
1044
  },
1057
- "resources": {
1045
+ "kubernetes:ps": {
1058
1046
  "aliases": [],
1059
1047
  "args": {},
1060
- "description": "List resources.",
1048
+ "description": "Show running pods.",
1061
1049
  "examples": [
1062
1050
  "<%= config.bin %> <%= command.id %>"
1063
1051
  ],
1064
1052
  "flags": {
1065
- "json": {
1066
- "description": "Format output as json.",
1067
- "helpGroup": "GLOBAL",
1068
- "name": "json",
1069
- "allowNo": false,
1070
- "type": "boolean"
1071
- },
1072
1053
  "verbose": {
1073
1054
  "name": "verbose",
1074
1055
  "allowNo": true,
@@ -1083,45 +1064,52 @@
1083
1064
  "multiple": false,
1084
1065
  "type": "option"
1085
1066
  },
1086
- "flavor": {
1087
- "description": "Specify the flavor to use.",
1088
- "name": "flavor",
1089
- "required": false,
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,
1090
1076
  "hasDynamicHelp": false,
1091
1077
  "multiple": false,
1092
1078
  "type": "option"
1079
+ },
1080
+ "watch": {
1081
+ "name": "watch",
1082
+ "allowNo": true,
1083
+ "type": "boolean"
1093
1084
  }
1094
1085
  },
1095
1086
  "hasDynamicHelp": false,
1096
1087
  "hiddenAliases": [],
1097
- "id": "resources",
1088
+ "id": "kubernetes:ps",
1098
1089
  "pluginAlias": "@enspirit/emb",
1099
1090
  "pluginName": "@enspirit/emb",
1100
1091
  "pluginType": "core",
1101
- "strict": true,
1102
- "enableJsonFlag": true,
1092
+ "strict": false,
1093
+ "enableJsonFlag": false,
1103
1094
  "isESM": true,
1104
1095
  "relativePath": [
1105
1096
  "dist",
1106
1097
  "src",
1107
1098
  "cli",
1108
1099
  "commands",
1109
- "resources",
1110
- "index.js"
1100
+ "kubernetes",
1101
+ "ps.js"
1111
1102
  ]
1112
1103
  },
1113
- "kubernetes:logs": {
1114
- "aliases": [
1115
- "logs"
1116
- ],
1104
+ "kubernetes:restart": {
1105
+ "aliases": [],
1117
1106
  "args": {
1118
- "component": {
1119
- "description": "The component you want to see the logs of",
1120
- "name": "component",
1121
- "required": true
1107
+ "deployment": {
1108
+ "description": "The deployment(s) to restart",
1109
+ "name": "deployment"
1122
1110
  }
1123
1111
  },
1124
- "description": "Follow kubernetes logs.",
1112
+ "description": "Restart pods of an instance.",
1125
1113
  "examples": [
1126
1114
  "<%= config.bin %> <%= command.id %>"
1127
1115
  ],
@@ -1152,22 +1140,15 @@
1152
1140
  "hasDynamicHelp": false,
1153
1141
  "multiple": false,
1154
1142
  "type": "option"
1155
- },
1156
- "follow": {
1157
- "char": "f",
1158
- "description": "Follow log output",
1159
- "name": "follow",
1160
- "allowNo": true,
1161
- "type": "boolean"
1162
1143
  }
1163
1144
  },
1164
1145
  "hasDynamicHelp": false,
1165
1146
  "hiddenAliases": [],
1166
- "id": "kubernetes:logs",
1147
+ "id": "kubernetes:restart",
1167
1148
  "pluginAlias": "@enspirit/emb",
1168
1149
  "pluginName": "@enspirit/emb",
1169
1150
  "pluginType": "core",
1170
- "strict": true,
1151
+ "strict": false,
1171
1152
  "enableJsonFlag": false,
1172
1153
  "isESM": true,
1173
1154
  "relativePath": [
@@ -1176,13 +1157,21 @@
1176
1157
  "cli",
1177
1158
  "commands",
1178
1159
  "kubernetes",
1179
- "logs.js"
1160
+ "restart.js"
1180
1161
  ]
1181
1162
  },
1182
- "kubernetes:ps": {
1183
- "aliases": [],
1184
- "args": {},
1185
- "description": "Show running pods.",
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.",
1186
1175
  "examples": [
1187
1176
  "<%= config.bin %> <%= command.id %>"
1188
1177
  ],
@@ -1214,19 +1203,23 @@
1214
1203
  "multiple": false,
1215
1204
  "type": "option"
1216
1205
  },
1217
- "watch": {
1218
- "name": "watch",
1219
- "allowNo": true,
1220
- "type": "boolean"
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"
1221
1214
  }
1222
1215
  },
1223
1216
  "hasDynamicHelp": false,
1224
1217
  "hiddenAliases": [],
1225
- "id": "kubernetes:ps",
1218
+ "id": "kubernetes:shell",
1226
1219
  "pluginAlias": "@enspirit/emb",
1227
1220
  "pluginName": "@enspirit/emb",
1228
1221
  "pluginType": "core",
1229
- "strict": false,
1222
+ "strict": true,
1230
1223
  "enableJsonFlag": false,
1231
1224
  "isESM": true,
1232
1225
  "relativePath": [
@@ -1235,22 +1228,33 @@
1235
1228
  "cli",
1236
1229
  "commands",
1237
1230
  "kubernetes",
1238
- "ps.js"
1231
+ "shell.js"
1239
1232
  ]
1240
1233
  },
1241
- "kubernetes:restart": {
1234
+ "logs:archive": {
1242
1235
  "aliases": [],
1243
1236
  "args": {
1244
- "deployment": {
1245
- "description": "The deployment(s) to restart",
1246
- "name": "deployment"
1237
+ "component": {
1238
+ "description": "The component(s) to archive logs for (all if omitted)",
1239
+ "name": "component",
1240
+ "required": false
1247
1241
  }
1248
1242
  },
1249
- "description": "Restart pods of an instance.",
1243
+ "description": "Archive docker compose logs to files (one file per component).",
1250
1244
  "examples": [
1251
- "<%= config.bin %> <%= command.id %>"
1245
+ "<%= config.bin %> <%= command.id %>",
1246
+ "<%= config.bin %> <%= command.id %> backend frontend",
1247
+ "<%= config.bin %> <%= command.id %> --timestamps",
1248
+ "<%= config.bin %> <%= command.id %> --tail 1000"
1252
1249
  ],
1253
1250
  "flags": {
1251
+ "json": {
1252
+ "description": "Format output as json.",
1253
+ "helpGroup": "GLOBAL",
1254
+ "name": "json",
1255
+ "allowNo": false,
1256
+ "type": "boolean"
1257
+ },
1254
1258
  "verbose": {
1255
1259
  "name": "verbose",
1256
1260
  "allowNo": true,
@@ -1265,15 +1269,24 @@
1265
1269
  "multiple": false,
1266
1270
  "type": "option"
1267
1271
  },
1268
- "namespace": {
1269
- "aliases": [
1270
- "ns"
1271
- ],
1272
- "char": "n",
1273
- "description": "The Kubernetes namespace to target",
1274
- "env": "K8S_NAMESPACE",
1275
- "name": "namespace",
1276
- "required": true,
1272
+ "timestamps": {
1273
+ "char": "t",
1274
+ "description": "Include timestamps in logs",
1275
+ "name": "timestamps",
1276
+ "allowNo": false,
1277
+ "type": "boolean"
1278
+ },
1279
+ "tail": {
1280
+ "description": "Number of lines to show from the end of the logs",
1281
+ "name": "tail",
1282
+ "hasDynamicHelp": false,
1283
+ "multiple": false,
1284
+ "type": "option"
1285
+ },
1286
+ "output": {
1287
+ "char": "o",
1288
+ "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1289
+ "name": "output",
1277
1290
  "hasDynamicHelp": false,
1278
1291
  "multiple": false,
1279
1292
  "type": "option"
@@ -1281,38 +1294,100 @@
1281
1294
  },
1282
1295
  "hasDynamicHelp": false,
1283
1296
  "hiddenAliases": [],
1284
- "id": "kubernetes:restart",
1297
+ "id": "logs:archive",
1285
1298
  "pluginAlias": "@enspirit/emb",
1286
1299
  "pluginName": "@enspirit/emb",
1287
1300
  "pluginType": "core",
1288
1301
  "strict": false,
1289
- "enableJsonFlag": false,
1302
+ "enableJsonFlag": true,
1290
1303
  "isESM": true,
1291
1304
  "relativePath": [
1292
1305
  "dist",
1293
1306
  "src",
1294
1307
  "cli",
1295
1308
  "commands",
1296
- "kubernetes",
1297
- "restart.js"
1309
+ "logs",
1310
+ "archive.js"
1298
1311
  ]
1299
1312
  },
1300
- "kubernetes:shell": {
1301
- "aliases": [
1302
- "shell"
1313
+ "logs": {
1314
+ "aliases": [],
1315
+ "args": {
1316
+ "component": {
1317
+ "description": "The component(s) you want to see the logs of (all if omitted)",
1318
+ "name": "component",
1319
+ "required": false
1320
+ }
1321
+ },
1322
+ "description": "Get components logs.",
1323
+ "examples": [
1324
+ "<%= config.bin %> <%= command.id %>",
1325
+ "<%= config.bin %> <%= command.id %> backend",
1326
+ "<%= config.bin %> <%= command.id %> backend frontend",
1327
+ "<%= config.bin %> <%= command.id %> --no-follow backend"
1303
1328
  ],
1329
+ "flags": {
1330
+ "verbose": {
1331
+ "name": "verbose",
1332
+ "allowNo": true,
1333
+ "type": "boolean"
1334
+ },
1335
+ "root": {
1336
+ "char": "C",
1337
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1338
+ "name": "root",
1339
+ "required": false,
1340
+ "hasDynamicHelp": false,
1341
+ "multiple": false,
1342
+ "type": "option"
1343
+ },
1344
+ "follow": {
1345
+ "char": "f",
1346
+ "description": "Follow log output",
1347
+ "name": "follow",
1348
+ "allowNo": true,
1349
+ "type": "boolean"
1350
+ }
1351
+ },
1352
+ "hasDynamicHelp": false,
1353
+ "hiddenAliases": [],
1354
+ "id": "logs",
1355
+ "pluginAlias": "@enspirit/emb",
1356
+ "pluginName": "@enspirit/emb",
1357
+ "pluginType": "core",
1358
+ "strict": false,
1359
+ "enableJsonFlag": false,
1360
+ "isESM": true,
1361
+ "relativePath": [
1362
+ "dist",
1363
+ "src",
1364
+ "cli",
1365
+ "commands",
1366
+ "logs",
1367
+ "index.js"
1368
+ ]
1369
+ },
1370
+ "resources:build": {
1371
+ "aliases": [],
1304
1372
  "args": {
1305
1373
  "component": {
1306
- "description": "The component you want to get a shell on",
1374
+ "description": "List of resources to build (defaults to all)",
1307
1375
  "name": "component",
1308
- "required": true
1376
+ "required": false
1309
1377
  }
1310
1378
  },
1311
- "description": "Get a shell on a deployed component.",
1379
+ "description": "Build the resources of the monorepo",
1312
1380
  "examples": [
1313
- "<%= config.bin %> <%= command.id %>"
1381
+ "<%= config.bin %> <%= command.id %> build --flavor development"
1314
1382
  ],
1315
1383
  "flags": {
1384
+ "json": {
1385
+ "description": "Format output as json.",
1386
+ "helpGroup": "GLOBAL",
1387
+ "name": "json",
1388
+ "allowNo": false,
1389
+ "type": "boolean"
1390
+ },
1316
1391
  "verbose": {
1317
1392
  "name": "verbose",
1318
1393
  "allowNo": true,
@@ -1327,24 +1402,81 @@
1327
1402
  "multiple": false,
1328
1403
  "type": "option"
1329
1404
  },
1330
- "namespace": {
1331
- "aliases": [
1332
- "ns"
1333
- ],
1334
- "char": "n",
1335
- "description": "The Kubernetes namespace to target",
1336
- "env": "K8S_NAMESPACE",
1337
- "name": "namespace",
1338
- "required": true,
1405
+ "flavor": {
1406
+ "description": "Specify the flavor to use.",
1407
+ "name": "flavor",
1408
+ "required": false,
1339
1409
  "hasDynamicHelp": false,
1340
1410
  "multiple": false,
1341
1411
  "type": "option"
1342
1412
  },
1343
- "shell": {
1344
- "char": "s",
1345
- "description": "The shell to run",
1346
- "name": "shell",
1347
- "default": "bash",
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
+ }
1428
+ },
1429
+ "hasDynamicHelp": false,
1430
+ "hiddenAliases": [],
1431
+ "id": "resources:build",
1432
+ "pluginAlias": "@enspirit/emb",
1433
+ "pluginName": "@enspirit/emb",
1434
+ "pluginType": "core",
1435
+ "strict": false,
1436
+ "enableJsonFlag": true,
1437
+ "isESM": true,
1438
+ "relativePath": [
1439
+ "dist",
1440
+ "src",
1441
+ "cli",
1442
+ "commands",
1443
+ "resources",
1444
+ "build.js"
1445
+ ]
1446
+ },
1447
+ "resources": {
1448
+ "aliases": [],
1449
+ "args": {},
1450
+ "description": "List resources.",
1451
+ "examples": [
1452
+ "<%= config.bin %> <%= command.id %>"
1453
+ ],
1454
+ "flags": {
1455
+ "json": {
1456
+ "description": "Format output as json.",
1457
+ "helpGroup": "GLOBAL",
1458
+ "name": "json",
1459
+ "allowNo": false,
1460
+ "type": "boolean"
1461
+ },
1462
+ "verbose": {
1463
+ "name": "verbose",
1464
+ "allowNo": true,
1465
+ "type": "boolean"
1466
+ },
1467
+ "root": {
1468
+ "char": "C",
1469
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1470
+ "name": "root",
1471
+ "required": false,
1472
+ "hasDynamicHelp": false,
1473
+ "multiple": false,
1474
+ "type": "option"
1475
+ },
1476
+ "flavor": {
1477
+ "description": "Specify the flavor to use.",
1478
+ "name": "flavor",
1479
+ "required": false,
1348
1480
  "hasDynamicHelp": false,
1349
1481
  "multiple": false,
1350
1482
  "type": "option"
@@ -1352,20 +1484,20 @@
1352
1484
  },
1353
1485
  "hasDynamicHelp": false,
1354
1486
  "hiddenAliases": [],
1355
- "id": "kubernetes:shell",
1487
+ "id": "resources",
1356
1488
  "pluginAlias": "@enspirit/emb",
1357
1489
  "pluginName": "@enspirit/emb",
1358
1490
  "pluginType": "core",
1359
1491
  "strict": true,
1360
- "enableJsonFlag": false,
1492
+ "enableJsonFlag": true,
1361
1493
  "isESM": true,
1362
1494
  "relativePath": [
1363
1495
  "dist",
1364
1496
  "src",
1365
1497
  "cli",
1366
1498
  "commands",
1367
- "kubernetes",
1368
- "shell.js"
1499
+ "resources",
1500
+ "index.js"
1369
1501
  ]
1370
1502
  },
1371
1503
  "tasks": {
@@ -1669,5 +1801,5 @@
1669
1801
  ]
1670
1802
  }
1671
1803
  },
1672
- "version": "0.17.0"
1804
+ "version": "0.18.0"
1673
1805
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enspirit/emb",
3
3
  "type": "module",
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "keywords": [
6
6
  "monorepo",
7
7
  "docker",
@@ -14,6 +14,10 @@
14
14
  "author": "Louis Lambeau <louis.lambeau@enspirit.be>",
15
15
  "license": "ISC",
16
16
  "description": "A replacement for our Makefile-for-monorepos",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/enspirit/emb"
20
+ },
17
21
  "bin": {
18
22
  "emb": "./bin/run.js"
19
23
  },