@knocklabs/cli 0.1.20 → 0.1.21
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 +51 -29
- package/dist/commands/workflow/generate-types.js +138 -0
- package/dist/lib/helpers/flag.js +16 -0
- package/dist/lib/type-generator.js +100 -0
- package/oclif.manifest.json +218 -163
- package/package.json +11 -10
package/oclif.manifest.json
CHANGED
|
@@ -770,11 +770,11 @@
|
|
|
770
770
|
"validate.js"
|
|
771
771
|
]
|
|
772
772
|
},
|
|
773
|
-
"
|
|
773
|
+
"partial:get": {
|
|
774
774
|
"aliases": [],
|
|
775
775
|
"args": {
|
|
776
|
-
"
|
|
777
|
-
"name": "
|
|
776
|
+
"partialKey": {
|
|
777
|
+
"name": "partialKey",
|
|
778
778
|
"required": true
|
|
779
779
|
}
|
|
780
780
|
},
|
|
@@ -819,24 +819,23 @@
|
|
|
819
819
|
}
|
|
820
820
|
},
|
|
821
821
|
"hasDynamicHelp": false,
|
|
822
|
-
"hidden": true,
|
|
823
822
|
"hiddenAliases": [],
|
|
824
|
-
"id": "
|
|
823
|
+
"id": "partial:get",
|
|
825
824
|
"pluginAlias": "@knocklabs/cli",
|
|
826
825
|
"pluginName": "@knocklabs/cli",
|
|
827
826
|
"pluginType": "core",
|
|
828
827
|
"strict": true,
|
|
829
|
-
"summary": "Display a single
|
|
828
|
+
"summary": "Display a single partial from an environment.",
|
|
830
829
|
"enableJsonFlag": true,
|
|
831
830
|
"isESM": false,
|
|
832
831
|
"relativePath": [
|
|
833
832
|
"dist",
|
|
834
833
|
"commands",
|
|
835
|
-
"
|
|
834
|
+
"partial",
|
|
836
835
|
"get.js"
|
|
837
836
|
]
|
|
838
837
|
},
|
|
839
|
-
"
|
|
838
|
+
"partial:list": {
|
|
840
839
|
"aliases": [],
|
|
841
840
|
"args": {},
|
|
842
841
|
"flags": {
|
|
@@ -901,28 +900,27 @@
|
|
|
901
900
|
}
|
|
902
901
|
},
|
|
903
902
|
"hasDynamicHelp": false,
|
|
904
|
-
"hidden": true,
|
|
905
903
|
"hiddenAliases": [],
|
|
906
|
-
"id": "
|
|
904
|
+
"id": "partial:list",
|
|
907
905
|
"pluginAlias": "@knocklabs/cli",
|
|
908
906
|
"pluginName": "@knocklabs/cli",
|
|
909
907
|
"pluginType": "core",
|
|
910
908
|
"strict": true,
|
|
911
|
-
"summary": "Display all
|
|
909
|
+
"summary": "Display all partials for an environment.",
|
|
912
910
|
"enableJsonFlag": true,
|
|
913
911
|
"isESM": false,
|
|
914
912
|
"relativePath": [
|
|
915
913
|
"dist",
|
|
916
914
|
"commands",
|
|
917
|
-
"
|
|
915
|
+
"partial",
|
|
918
916
|
"list.js"
|
|
919
917
|
]
|
|
920
918
|
},
|
|
921
|
-
"
|
|
919
|
+
"partial:pull": {
|
|
922
920
|
"aliases": [],
|
|
923
921
|
"args": {
|
|
924
|
-
"
|
|
925
|
-
"name": "
|
|
922
|
+
"partialKey": {
|
|
923
|
+
"name": "partialKey",
|
|
926
924
|
"required": false
|
|
927
925
|
}
|
|
928
926
|
},
|
|
@@ -954,16 +952,16 @@
|
|
|
954
952
|
},
|
|
955
953
|
"all": {
|
|
956
954
|
"name": "all",
|
|
957
|
-
"summary": "Whether to pull all
|
|
955
|
+
"summary": "Whether to pull all partials from the specified environment.",
|
|
958
956
|
"allowNo": false,
|
|
959
957
|
"type": "boolean"
|
|
960
958
|
},
|
|
961
|
-
"
|
|
959
|
+
"partials-dir": {
|
|
962
960
|
"dependsOn": [
|
|
963
961
|
"all"
|
|
964
962
|
],
|
|
965
|
-
"name": "
|
|
966
|
-
"summary": "The target directory path to pull all
|
|
963
|
+
"name": "partials-dir",
|
|
964
|
+
"summary": "The target directory path to pull all partials into.",
|
|
967
965
|
"hasDynamicHelp": false,
|
|
968
966
|
"multiple": false,
|
|
969
967
|
"type": "option"
|
|
@@ -982,28 +980,27 @@
|
|
|
982
980
|
}
|
|
983
981
|
},
|
|
984
982
|
"hasDynamicHelp": false,
|
|
985
|
-
"hidden": true,
|
|
986
983
|
"hiddenAliases": [],
|
|
987
|
-
"id": "
|
|
984
|
+
"id": "partial:pull",
|
|
988
985
|
"pluginAlias": "@knocklabs/cli",
|
|
989
986
|
"pluginName": "@knocklabs/cli",
|
|
990
987
|
"pluginType": "core",
|
|
991
988
|
"strict": true,
|
|
992
|
-
"summary": "Pull one or more
|
|
989
|
+
"summary": "Pull one or more partial from an environment into a local file system.",
|
|
993
990
|
"enableJsonFlag": false,
|
|
994
991
|
"isESM": false,
|
|
995
992
|
"relativePath": [
|
|
996
993
|
"dist",
|
|
997
994
|
"commands",
|
|
998
|
-
"
|
|
995
|
+
"partial",
|
|
999
996
|
"pull.js"
|
|
1000
997
|
]
|
|
1001
998
|
},
|
|
1002
|
-
"
|
|
999
|
+
"partial:push": {
|
|
1003
1000
|
"aliases": [],
|
|
1004
1001
|
"args": {
|
|
1005
|
-
"
|
|
1006
|
-
"name": "
|
|
1002
|
+
"partialKey": {
|
|
1003
|
+
"name": "partialKey",
|
|
1007
1004
|
"required": false
|
|
1008
1005
|
}
|
|
1009
1006
|
},
|
|
@@ -1027,7 +1024,7 @@
|
|
|
1027
1024
|
},
|
|
1028
1025
|
"environment": {
|
|
1029
1026
|
"name": "environment",
|
|
1030
|
-
"summary": "Pushing a
|
|
1027
|
+
"summary": "Pushing a partial is only allowed in the development environment",
|
|
1031
1028
|
"default": "development",
|
|
1032
1029
|
"hasDynamicHelp": false,
|
|
1033
1030
|
"multiple": false,
|
|
@@ -1038,23 +1035,23 @@
|
|
|
1038
1035
|
},
|
|
1039
1036
|
"all": {
|
|
1040
1037
|
"name": "all",
|
|
1041
|
-
"summary": "Whether to push all
|
|
1038
|
+
"summary": "Whether to push all partials from the target directory.",
|
|
1042
1039
|
"allowNo": false,
|
|
1043
1040
|
"type": "boolean"
|
|
1044
1041
|
},
|
|
1045
|
-
"
|
|
1042
|
+
"partials-dir": {
|
|
1046
1043
|
"dependsOn": [
|
|
1047
1044
|
"all"
|
|
1048
1045
|
],
|
|
1049
|
-
"name": "
|
|
1050
|
-
"summary": "The target directory path to find all
|
|
1046
|
+
"name": "partials-dir",
|
|
1047
|
+
"summary": "The target directory path to find all partials to push.",
|
|
1051
1048
|
"hasDynamicHelp": false,
|
|
1052
1049
|
"multiple": false,
|
|
1053
1050
|
"type": "option"
|
|
1054
1051
|
},
|
|
1055
1052
|
"commit": {
|
|
1056
1053
|
"name": "commit",
|
|
1057
|
-
"summary": "Push and commit the
|
|
1054
|
+
"summary": "Push and commit the partial(s) at the same time",
|
|
1058
1055
|
"allowNo": false,
|
|
1059
1056
|
"type": "boolean"
|
|
1060
1057
|
},
|
|
@@ -1071,28 +1068,27 @@
|
|
|
1071
1068
|
}
|
|
1072
1069
|
},
|
|
1073
1070
|
"hasDynamicHelp": false,
|
|
1074
|
-
"hidden": true,
|
|
1075
1071
|
"hiddenAliases": [],
|
|
1076
|
-
"id": "
|
|
1072
|
+
"id": "partial:push",
|
|
1077
1073
|
"pluginAlias": "@knocklabs/cli",
|
|
1078
1074
|
"pluginName": "@knocklabs/cli",
|
|
1079
1075
|
"pluginType": "core",
|
|
1080
1076
|
"strict": true,
|
|
1081
|
-
"summary": "Push one or more
|
|
1077
|
+
"summary": "Push one or more partials from a local file system to Knock.",
|
|
1082
1078
|
"enableJsonFlag": false,
|
|
1083
1079
|
"isESM": false,
|
|
1084
1080
|
"relativePath": [
|
|
1085
1081
|
"dist",
|
|
1086
1082
|
"commands",
|
|
1087
|
-
"
|
|
1083
|
+
"partial",
|
|
1088
1084
|
"push.js"
|
|
1089
1085
|
]
|
|
1090
1086
|
},
|
|
1091
|
-
"
|
|
1087
|
+
"partial:validate": {
|
|
1092
1088
|
"aliases": [],
|
|
1093
1089
|
"args": {
|
|
1094
|
-
"
|
|
1095
|
-
"name": "
|
|
1090
|
+
"partialKey": {
|
|
1091
|
+
"name": "partialKey",
|
|
1096
1092
|
"required": false
|
|
1097
1093
|
}
|
|
1098
1094
|
},
|
|
@@ -1116,7 +1112,7 @@
|
|
|
1116
1112
|
},
|
|
1117
1113
|
"environment": {
|
|
1118
1114
|
"name": "environment",
|
|
1119
|
-
"summary": "Validating a
|
|
1115
|
+
"summary": "Validating a partial is only done in the development environment",
|
|
1120
1116
|
"default": "development",
|
|
1121
1117
|
"hasDynamicHelp": false,
|
|
1122
1118
|
"multiple": false,
|
|
@@ -1127,44 +1123,44 @@
|
|
|
1127
1123
|
},
|
|
1128
1124
|
"all": {
|
|
1129
1125
|
"name": "all",
|
|
1130
|
-
"summary": "Whether to validate all
|
|
1126
|
+
"summary": "Whether to validate all partials from the target directory.",
|
|
1131
1127
|
"allowNo": false,
|
|
1132
1128
|
"type": "boolean"
|
|
1133
1129
|
},
|
|
1134
|
-
"
|
|
1130
|
+
"partials-dir": {
|
|
1135
1131
|
"dependsOn": [
|
|
1136
1132
|
"all"
|
|
1137
1133
|
],
|
|
1138
|
-
"name": "
|
|
1139
|
-
"summary": "The target directory path to find all
|
|
1134
|
+
"name": "partials-dir",
|
|
1135
|
+
"summary": "The target directory path to find all partials to validate.",
|
|
1140
1136
|
"hasDynamicHelp": false,
|
|
1141
1137
|
"multiple": false,
|
|
1142
1138
|
"type": "option"
|
|
1143
1139
|
}
|
|
1144
1140
|
},
|
|
1145
1141
|
"hasDynamicHelp": false,
|
|
1146
|
-
"hidden": true,
|
|
1147
1142
|
"hiddenAliases": [],
|
|
1148
|
-
"id": "
|
|
1143
|
+
"id": "partial:validate",
|
|
1149
1144
|
"pluginAlias": "@knocklabs/cli",
|
|
1150
1145
|
"pluginName": "@knocklabs/cli",
|
|
1151
1146
|
"pluginType": "core",
|
|
1152
1147
|
"strict": true,
|
|
1153
|
-
"summary": "Validate one or more
|
|
1148
|
+
"summary": "Validate one or more partials from a local file system.",
|
|
1154
1149
|
"enableJsonFlag": false,
|
|
1155
1150
|
"isESM": false,
|
|
1156
1151
|
"relativePath": [
|
|
1157
1152
|
"dist",
|
|
1158
1153
|
"commands",
|
|
1159
|
-
"
|
|
1154
|
+
"partial",
|
|
1160
1155
|
"validate.js"
|
|
1161
1156
|
]
|
|
1162
1157
|
},
|
|
1163
|
-
"
|
|
1158
|
+
"translation:get": {
|
|
1164
1159
|
"aliases": [],
|
|
1165
1160
|
"args": {
|
|
1166
|
-
"
|
|
1167
|
-
"
|
|
1161
|
+
"translationRef": {
|
|
1162
|
+
"description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
|
|
1163
|
+
"name": "translationRef",
|
|
1168
1164
|
"required": true
|
|
1169
1165
|
}
|
|
1170
1166
|
},
|
|
@@ -1206,26 +1202,38 @@
|
|
|
1206
1202
|
"summary": "Hide any uncommitted changes.",
|
|
1207
1203
|
"allowNo": false,
|
|
1208
1204
|
"type": "boolean"
|
|
1205
|
+
},
|
|
1206
|
+
"format": {
|
|
1207
|
+
"name": "format",
|
|
1208
|
+
"summary": "Specify the output format of the returned translations.",
|
|
1209
|
+
"default": "json",
|
|
1210
|
+
"hasDynamicHelp": false,
|
|
1211
|
+
"multiple": false,
|
|
1212
|
+
"options": [
|
|
1213
|
+
"json",
|
|
1214
|
+
"po"
|
|
1215
|
+
],
|
|
1216
|
+
"type": "option"
|
|
1209
1217
|
}
|
|
1210
1218
|
},
|
|
1211
1219
|
"hasDynamicHelp": false,
|
|
1212
1220
|
"hiddenAliases": [],
|
|
1213
|
-
"id": "
|
|
1221
|
+
"id": "translation:get",
|
|
1214
1222
|
"pluginAlias": "@knocklabs/cli",
|
|
1215
1223
|
"pluginName": "@knocklabs/cli",
|
|
1216
1224
|
"pluginType": "core",
|
|
1217
1225
|
"strict": true,
|
|
1218
|
-
"summary": "Display a single
|
|
1226
|
+
"summary": "Display a single translation from an environment.",
|
|
1219
1227
|
"enableJsonFlag": true,
|
|
1220
1228
|
"isESM": false,
|
|
1221
1229
|
"relativePath": [
|
|
1222
1230
|
"dist",
|
|
1223
1231
|
"commands",
|
|
1224
|
-
"
|
|
1232
|
+
"translation",
|
|
1225
1233
|
"get.js"
|
|
1226
1234
|
]
|
|
1227
1235
|
},
|
|
1228
|
-
"
|
|
1236
|
+
"translation:list": {
|
|
1229
1237
|
"aliases": [],
|
|
1230
1238
|
"args": {},
|
|
1231
1239
|
"flags": {
|
|
@@ -1291,26 +1299,27 @@
|
|
|
1291
1299
|
},
|
|
1292
1300
|
"hasDynamicHelp": false,
|
|
1293
1301
|
"hiddenAliases": [],
|
|
1294
|
-
"id": "
|
|
1302
|
+
"id": "translation:list",
|
|
1295
1303
|
"pluginAlias": "@knocklabs/cli",
|
|
1296
1304
|
"pluginName": "@knocklabs/cli",
|
|
1297
1305
|
"pluginType": "core",
|
|
1298
1306
|
"strict": true,
|
|
1299
|
-
"summary": "Display all
|
|
1307
|
+
"summary": "Display all translations for an environment.",
|
|
1300
1308
|
"enableJsonFlag": true,
|
|
1301
1309
|
"isESM": false,
|
|
1302
1310
|
"relativePath": [
|
|
1303
1311
|
"dist",
|
|
1304
1312
|
"commands",
|
|
1305
|
-
"
|
|
1313
|
+
"translation",
|
|
1306
1314
|
"list.js"
|
|
1307
1315
|
]
|
|
1308
1316
|
},
|
|
1309
|
-
"
|
|
1317
|
+
"translation:pull": {
|
|
1310
1318
|
"aliases": [],
|
|
1311
1319
|
"args": {
|
|
1312
|
-
"
|
|
1313
|
-
"
|
|
1320
|
+
"translationRef": {
|
|
1321
|
+
"description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
|
|
1322
|
+
"name": "translationRef",
|
|
1314
1323
|
"required": false
|
|
1315
1324
|
}
|
|
1316
1325
|
},
|
|
@@ -1342,16 +1351,16 @@
|
|
|
1342
1351
|
},
|
|
1343
1352
|
"all": {
|
|
1344
1353
|
"name": "all",
|
|
1345
|
-
"summary": "Whether to pull all
|
|
1354
|
+
"summary": "Whether to pull all translations from the specified environment.",
|
|
1346
1355
|
"allowNo": false,
|
|
1347
1356
|
"type": "boolean"
|
|
1348
1357
|
},
|
|
1349
|
-
"
|
|
1358
|
+
"translations-dir": {
|
|
1350
1359
|
"dependsOn": [
|
|
1351
1360
|
"all"
|
|
1352
1361
|
],
|
|
1353
|
-
"name": "
|
|
1354
|
-
"summary": "The target directory path to pull all
|
|
1362
|
+
"name": "translations-dir",
|
|
1363
|
+
"summary": "The target directory path to pull all translations into.",
|
|
1355
1364
|
"hasDynamicHelp": false,
|
|
1356
1365
|
"multiple": false,
|
|
1357
1366
|
"type": "option"
|
|
@@ -1367,30 +1376,43 @@
|
|
|
1367
1376
|
"summary": "Remove the confirmation prompt.",
|
|
1368
1377
|
"allowNo": false,
|
|
1369
1378
|
"type": "boolean"
|
|
1379
|
+
},
|
|
1380
|
+
"format": {
|
|
1381
|
+
"name": "format",
|
|
1382
|
+
"summary": "Specify the output format of the returned translations.",
|
|
1383
|
+
"default": "json",
|
|
1384
|
+
"hasDynamicHelp": false,
|
|
1385
|
+
"multiple": false,
|
|
1386
|
+
"options": [
|
|
1387
|
+
"json",
|
|
1388
|
+
"po"
|
|
1389
|
+
],
|
|
1390
|
+
"type": "option"
|
|
1370
1391
|
}
|
|
1371
1392
|
},
|
|
1372
1393
|
"hasDynamicHelp": false,
|
|
1373
1394
|
"hiddenAliases": [],
|
|
1374
|
-
"id": "
|
|
1395
|
+
"id": "translation:pull",
|
|
1375
1396
|
"pluginAlias": "@knocklabs/cli",
|
|
1376
1397
|
"pluginName": "@knocklabs/cli",
|
|
1377
1398
|
"pluginType": "core",
|
|
1378
1399
|
"strict": true,
|
|
1379
|
-
"summary": "Pull one or more
|
|
1400
|
+
"summary": "Pull one or more translations from an environment into a local file system.",
|
|
1380
1401
|
"enableJsonFlag": false,
|
|
1381
1402
|
"isESM": false,
|
|
1382
1403
|
"relativePath": [
|
|
1383
1404
|
"dist",
|
|
1384
1405
|
"commands",
|
|
1385
|
-
"
|
|
1406
|
+
"translation",
|
|
1386
1407
|
"pull.js"
|
|
1387
1408
|
]
|
|
1388
1409
|
},
|
|
1389
|
-
"
|
|
1410
|
+
"translation:push": {
|
|
1390
1411
|
"aliases": [],
|
|
1391
1412
|
"args": {
|
|
1392
|
-
"
|
|
1393
|
-
"
|
|
1413
|
+
"translationRef": {
|
|
1414
|
+
"description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
|
|
1415
|
+
"name": "translationRef",
|
|
1394
1416
|
"required": false
|
|
1395
1417
|
}
|
|
1396
1418
|
},
|
|
@@ -1414,7 +1436,7 @@
|
|
|
1414
1436
|
},
|
|
1415
1437
|
"environment": {
|
|
1416
1438
|
"name": "environment",
|
|
1417
|
-
"summary": "Pushing a
|
|
1439
|
+
"summary": "Pushing a translation is only allowed in the development environment",
|
|
1418
1440
|
"default": "development",
|
|
1419
1441
|
"hasDynamicHelp": false,
|
|
1420
1442
|
"multiple": false,
|
|
@@ -1425,23 +1447,23 @@
|
|
|
1425
1447
|
},
|
|
1426
1448
|
"all": {
|
|
1427
1449
|
"name": "all",
|
|
1428
|
-
"summary": "Whether to push all
|
|
1450
|
+
"summary": "Whether to push all translations from the target directory.",
|
|
1429
1451
|
"allowNo": false,
|
|
1430
1452
|
"type": "boolean"
|
|
1431
1453
|
},
|
|
1432
|
-
"
|
|
1454
|
+
"translations-dir": {
|
|
1433
1455
|
"dependsOn": [
|
|
1434
1456
|
"all"
|
|
1435
1457
|
],
|
|
1436
|
-
"name": "
|
|
1437
|
-
"summary": "The target directory path to find all
|
|
1458
|
+
"name": "translations-dir",
|
|
1459
|
+
"summary": "The target directory path to find all translations to push.",
|
|
1438
1460
|
"hasDynamicHelp": false,
|
|
1439
1461
|
"multiple": false,
|
|
1440
1462
|
"type": "option"
|
|
1441
1463
|
},
|
|
1442
1464
|
"commit": {
|
|
1443
1465
|
"name": "commit",
|
|
1444
|
-
"summary": "Push and commit the
|
|
1466
|
+
"summary": "Push and commit the translation(s) at the same time",
|
|
1445
1467
|
"allowNo": false,
|
|
1446
1468
|
"type": "boolean"
|
|
1447
1469
|
},
|
|
@@ -1459,26 +1481,27 @@
|
|
|
1459
1481
|
},
|
|
1460
1482
|
"hasDynamicHelp": false,
|
|
1461
1483
|
"hiddenAliases": [],
|
|
1462
|
-
"id": "
|
|
1484
|
+
"id": "translation:push",
|
|
1463
1485
|
"pluginAlias": "@knocklabs/cli",
|
|
1464
1486
|
"pluginName": "@knocklabs/cli",
|
|
1465
1487
|
"pluginType": "core",
|
|
1466
1488
|
"strict": true,
|
|
1467
|
-
"summary": "Push one or more
|
|
1489
|
+
"summary": "Push one or more translations from a local file system to Knock.",
|
|
1468
1490
|
"enableJsonFlag": false,
|
|
1469
1491
|
"isESM": false,
|
|
1470
1492
|
"relativePath": [
|
|
1471
1493
|
"dist",
|
|
1472
1494
|
"commands",
|
|
1473
|
-
"
|
|
1495
|
+
"translation",
|
|
1474
1496
|
"push.js"
|
|
1475
1497
|
]
|
|
1476
1498
|
},
|
|
1477
|
-
"
|
|
1499
|
+
"translation:validate": {
|
|
1478
1500
|
"aliases": [],
|
|
1479
1501
|
"args": {
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1502
|
+
"translationRef": {
|
|
1503
|
+
"description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
|
|
1504
|
+
"name": "translationRef",
|
|
1482
1505
|
"required": false
|
|
1483
1506
|
}
|
|
1484
1507
|
},
|
|
@@ -1502,7 +1525,7 @@
|
|
|
1502
1525
|
},
|
|
1503
1526
|
"environment": {
|
|
1504
1527
|
"name": "environment",
|
|
1505
|
-
"summary": "Validating a
|
|
1528
|
+
"summary": "Validating a translation is only done in the development environment",
|
|
1506
1529
|
"default": "development",
|
|
1507
1530
|
"hasDynamicHelp": false,
|
|
1508
1531
|
"multiple": false,
|
|
@@ -1513,16 +1536,16 @@
|
|
|
1513
1536
|
},
|
|
1514
1537
|
"all": {
|
|
1515
1538
|
"name": "all",
|
|
1516
|
-
"summary": "Whether to validate all
|
|
1539
|
+
"summary": "Whether to validate all translations from the target directory.",
|
|
1517
1540
|
"allowNo": false,
|
|
1518
1541
|
"type": "boolean"
|
|
1519
1542
|
},
|
|
1520
|
-
"
|
|
1543
|
+
"translations-dir": {
|
|
1521
1544
|
"dependsOn": [
|
|
1522
1545
|
"all"
|
|
1523
1546
|
],
|
|
1524
|
-
"name": "
|
|
1525
|
-
"summary": "The target directory path to find all
|
|
1547
|
+
"name": "translations-dir",
|
|
1548
|
+
"summary": "The target directory path to find all translations to validate.",
|
|
1526
1549
|
"hasDynamicHelp": false,
|
|
1527
1550
|
"multiple": false,
|
|
1528
1551
|
"type": "option"
|
|
@@ -1530,27 +1553,26 @@
|
|
|
1530
1553
|
},
|
|
1531
1554
|
"hasDynamicHelp": false,
|
|
1532
1555
|
"hiddenAliases": [],
|
|
1533
|
-
"id": "
|
|
1556
|
+
"id": "translation:validate",
|
|
1534
1557
|
"pluginAlias": "@knocklabs/cli",
|
|
1535
1558
|
"pluginName": "@knocklabs/cli",
|
|
1536
1559
|
"pluginType": "core",
|
|
1537
1560
|
"strict": true,
|
|
1538
|
-
"summary": "Validate one or more
|
|
1561
|
+
"summary": "Validate one or more translations from a local file system.",
|
|
1539
1562
|
"enableJsonFlag": false,
|
|
1540
1563
|
"isESM": false,
|
|
1541
1564
|
"relativePath": [
|
|
1542
1565
|
"dist",
|
|
1543
1566
|
"commands",
|
|
1544
|
-
"
|
|
1567
|
+
"translation",
|
|
1545
1568
|
"validate.js"
|
|
1546
1569
|
]
|
|
1547
1570
|
},
|
|
1548
|
-
"
|
|
1571
|
+
"message-type:get": {
|
|
1549
1572
|
"aliases": [],
|
|
1550
1573
|
"args": {
|
|
1551
|
-
"
|
|
1552
|
-
"
|
|
1553
|
-
"name": "translationRef",
|
|
1574
|
+
"messageTypeKey": {
|
|
1575
|
+
"name": "messageTypeKey",
|
|
1554
1576
|
"required": true
|
|
1555
1577
|
}
|
|
1556
1578
|
},
|
|
@@ -1592,38 +1614,27 @@
|
|
|
1592
1614
|
"summary": "Hide any uncommitted changes.",
|
|
1593
1615
|
"allowNo": false,
|
|
1594
1616
|
"type": "boolean"
|
|
1595
|
-
},
|
|
1596
|
-
"format": {
|
|
1597
|
-
"name": "format",
|
|
1598
|
-
"summary": "Specify the output format of the returned translations.",
|
|
1599
|
-
"default": "json",
|
|
1600
|
-
"hasDynamicHelp": false,
|
|
1601
|
-
"multiple": false,
|
|
1602
|
-
"options": [
|
|
1603
|
-
"json",
|
|
1604
|
-
"po"
|
|
1605
|
-
],
|
|
1606
|
-
"type": "option"
|
|
1607
1617
|
}
|
|
1608
1618
|
},
|
|
1609
1619
|
"hasDynamicHelp": false,
|
|
1620
|
+
"hidden": true,
|
|
1610
1621
|
"hiddenAliases": [],
|
|
1611
|
-
"id": "
|
|
1622
|
+
"id": "message-type:get",
|
|
1612
1623
|
"pluginAlias": "@knocklabs/cli",
|
|
1613
1624
|
"pluginName": "@knocklabs/cli",
|
|
1614
1625
|
"pluginType": "core",
|
|
1615
1626
|
"strict": true,
|
|
1616
|
-
"summary": "Display a single
|
|
1627
|
+
"summary": "Display a single in-app message type from an environment.",
|
|
1617
1628
|
"enableJsonFlag": true,
|
|
1618
1629
|
"isESM": false,
|
|
1619
1630
|
"relativePath": [
|
|
1620
1631
|
"dist",
|
|
1621
1632
|
"commands",
|
|
1622
|
-
"
|
|
1633
|
+
"message-type",
|
|
1623
1634
|
"get.js"
|
|
1624
1635
|
]
|
|
1625
1636
|
},
|
|
1626
|
-
"
|
|
1637
|
+
"message-type:list": {
|
|
1627
1638
|
"aliases": [],
|
|
1628
1639
|
"args": {},
|
|
1629
1640
|
"flags": {
|
|
@@ -1688,28 +1699,28 @@
|
|
|
1688
1699
|
}
|
|
1689
1700
|
},
|
|
1690
1701
|
"hasDynamicHelp": false,
|
|
1702
|
+
"hidden": true,
|
|
1691
1703
|
"hiddenAliases": [],
|
|
1692
|
-
"id": "
|
|
1704
|
+
"id": "message-type:list",
|
|
1693
1705
|
"pluginAlias": "@knocklabs/cli",
|
|
1694
1706
|
"pluginName": "@knocklabs/cli",
|
|
1695
1707
|
"pluginType": "core",
|
|
1696
1708
|
"strict": true,
|
|
1697
|
-
"summary": "Display all
|
|
1709
|
+
"summary": "Display all in-app message types for an environment.",
|
|
1698
1710
|
"enableJsonFlag": true,
|
|
1699
1711
|
"isESM": false,
|
|
1700
1712
|
"relativePath": [
|
|
1701
1713
|
"dist",
|
|
1702
1714
|
"commands",
|
|
1703
|
-
"
|
|
1715
|
+
"message-type",
|
|
1704
1716
|
"list.js"
|
|
1705
1717
|
]
|
|
1706
1718
|
},
|
|
1707
|
-
"
|
|
1719
|
+
"message-type:pull": {
|
|
1708
1720
|
"aliases": [],
|
|
1709
1721
|
"args": {
|
|
1710
|
-
"
|
|
1711
|
-
"
|
|
1712
|
-
"name": "translationRef",
|
|
1722
|
+
"messageTypeKey": {
|
|
1723
|
+
"name": "messageTypeKey",
|
|
1713
1724
|
"required": false
|
|
1714
1725
|
}
|
|
1715
1726
|
},
|
|
@@ -1741,16 +1752,16 @@
|
|
|
1741
1752
|
},
|
|
1742
1753
|
"all": {
|
|
1743
1754
|
"name": "all",
|
|
1744
|
-
"summary": "Whether to pull all
|
|
1755
|
+
"summary": "Whether to pull all in-app message types from the specified environment.",
|
|
1745
1756
|
"allowNo": false,
|
|
1746
1757
|
"type": "boolean"
|
|
1747
1758
|
},
|
|
1748
|
-
"
|
|
1759
|
+
"message-types-dir": {
|
|
1749
1760
|
"dependsOn": [
|
|
1750
1761
|
"all"
|
|
1751
1762
|
],
|
|
1752
|
-
"name": "
|
|
1753
|
-
"summary": "The target directory path to pull all
|
|
1763
|
+
"name": "message-types-dir",
|
|
1764
|
+
"summary": "The target directory path to pull all in-app message types into.",
|
|
1754
1765
|
"hasDynamicHelp": false,
|
|
1755
1766
|
"multiple": false,
|
|
1756
1767
|
"type": "option"
|
|
@@ -1766,43 +1777,31 @@
|
|
|
1766
1777
|
"summary": "Remove the confirmation prompt.",
|
|
1767
1778
|
"allowNo": false,
|
|
1768
1779
|
"type": "boolean"
|
|
1769
|
-
},
|
|
1770
|
-
"format": {
|
|
1771
|
-
"name": "format",
|
|
1772
|
-
"summary": "Specify the output format of the returned translations.",
|
|
1773
|
-
"default": "json",
|
|
1774
|
-
"hasDynamicHelp": false,
|
|
1775
|
-
"multiple": false,
|
|
1776
|
-
"options": [
|
|
1777
|
-
"json",
|
|
1778
|
-
"po"
|
|
1779
|
-
],
|
|
1780
|
-
"type": "option"
|
|
1781
1780
|
}
|
|
1782
1781
|
},
|
|
1783
1782
|
"hasDynamicHelp": false,
|
|
1783
|
+
"hidden": true,
|
|
1784
1784
|
"hiddenAliases": [],
|
|
1785
|
-
"id": "
|
|
1785
|
+
"id": "message-type:pull",
|
|
1786
1786
|
"pluginAlias": "@knocklabs/cli",
|
|
1787
1787
|
"pluginName": "@knocklabs/cli",
|
|
1788
1788
|
"pluginType": "core",
|
|
1789
1789
|
"strict": true,
|
|
1790
|
-
"summary": "Pull one or more
|
|
1790
|
+
"summary": "Pull one or more in-app message types from an environment into a local file system.",
|
|
1791
1791
|
"enableJsonFlag": false,
|
|
1792
1792
|
"isESM": false,
|
|
1793
1793
|
"relativePath": [
|
|
1794
1794
|
"dist",
|
|
1795
1795
|
"commands",
|
|
1796
|
-
"
|
|
1796
|
+
"message-type",
|
|
1797
1797
|
"pull.js"
|
|
1798
1798
|
]
|
|
1799
1799
|
},
|
|
1800
|
-
"
|
|
1800
|
+
"message-type:push": {
|
|
1801
1801
|
"aliases": [],
|
|
1802
1802
|
"args": {
|
|
1803
|
-
"
|
|
1804
|
-
"
|
|
1805
|
-
"name": "translationRef",
|
|
1803
|
+
"messageTypeKey": {
|
|
1804
|
+
"name": "messageTypeKey",
|
|
1806
1805
|
"required": false
|
|
1807
1806
|
}
|
|
1808
1807
|
},
|
|
@@ -1826,7 +1825,7 @@
|
|
|
1826
1825
|
},
|
|
1827
1826
|
"environment": {
|
|
1828
1827
|
"name": "environment",
|
|
1829
|
-
"summary": "Pushing a
|
|
1828
|
+
"summary": "Pushing a message type is only allowed in the development environment",
|
|
1830
1829
|
"default": "development",
|
|
1831
1830
|
"hasDynamicHelp": false,
|
|
1832
1831
|
"multiple": false,
|
|
@@ -1837,23 +1836,23 @@
|
|
|
1837
1836
|
},
|
|
1838
1837
|
"all": {
|
|
1839
1838
|
"name": "all",
|
|
1840
|
-
"summary": "Whether to push all
|
|
1839
|
+
"summary": "Whether to push all message types from the target directory.",
|
|
1841
1840
|
"allowNo": false,
|
|
1842
1841
|
"type": "boolean"
|
|
1843
1842
|
},
|
|
1844
|
-
"
|
|
1843
|
+
"message-types-dir": {
|
|
1845
1844
|
"dependsOn": [
|
|
1846
1845
|
"all"
|
|
1847
1846
|
],
|
|
1848
|
-
"name": "
|
|
1849
|
-
"summary": "The target directory path to find all
|
|
1847
|
+
"name": "message-types-dir",
|
|
1848
|
+
"summary": "The target directory path to find all message types to push.",
|
|
1850
1849
|
"hasDynamicHelp": false,
|
|
1851
1850
|
"multiple": false,
|
|
1852
1851
|
"type": "option"
|
|
1853
1852
|
},
|
|
1854
1853
|
"commit": {
|
|
1855
1854
|
"name": "commit",
|
|
1856
|
-
"summary": "Push and commit the
|
|
1855
|
+
"summary": "Push and commit the message type(s) at the same time",
|
|
1857
1856
|
"allowNo": false,
|
|
1858
1857
|
"type": "boolean"
|
|
1859
1858
|
},
|
|
@@ -1870,28 +1869,28 @@
|
|
|
1870
1869
|
}
|
|
1871
1870
|
},
|
|
1872
1871
|
"hasDynamicHelp": false,
|
|
1872
|
+
"hidden": true,
|
|
1873
1873
|
"hiddenAliases": [],
|
|
1874
|
-
"id": "
|
|
1874
|
+
"id": "message-type:push",
|
|
1875
1875
|
"pluginAlias": "@knocklabs/cli",
|
|
1876
1876
|
"pluginName": "@knocklabs/cli",
|
|
1877
1877
|
"pluginType": "core",
|
|
1878
1878
|
"strict": true,
|
|
1879
|
-
"summary": "Push one or more
|
|
1879
|
+
"summary": "Push one or more message types from a local file system to Knock.",
|
|
1880
1880
|
"enableJsonFlag": false,
|
|
1881
1881
|
"isESM": false,
|
|
1882
1882
|
"relativePath": [
|
|
1883
1883
|
"dist",
|
|
1884
1884
|
"commands",
|
|
1885
|
-
"
|
|
1885
|
+
"message-type",
|
|
1886
1886
|
"push.js"
|
|
1887
1887
|
]
|
|
1888
1888
|
},
|
|
1889
|
-
"
|
|
1889
|
+
"message-type:validate": {
|
|
1890
1890
|
"aliases": [],
|
|
1891
1891
|
"args": {
|
|
1892
|
-
"
|
|
1893
|
-
"
|
|
1894
|
-
"name": "translationRef",
|
|
1892
|
+
"messageTypeKey": {
|
|
1893
|
+
"name": "messageTypeKey",
|
|
1895
1894
|
"required": false
|
|
1896
1895
|
}
|
|
1897
1896
|
},
|
|
@@ -1915,7 +1914,7 @@
|
|
|
1915
1914
|
},
|
|
1916
1915
|
"environment": {
|
|
1917
1916
|
"name": "environment",
|
|
1918
|
-
"summary": "Validating a
|
|
1917
|
+
"summary": "Validating a message type is only done in the development environment",
|
|
1919
1918
|
"default": "development",
|
|
1920
1919
|
"hasDynamicHelp": false,
|
|
1921
1920
|
"multiple": false,
|
|
@@ -1926,35 +1925,36 @@
|
|
|
1926
1925
|
},
|
|
1927
1926
|
"all": {
|
|
1928
1927
|
"name": "all",
|
|
1929
|
-
"summary": "Whether to validate all
|
|
1928
|
+
"summary": "Whether to validate all message types from the target directory.",
|
|
1930
1929
|
"allowNo": false,
|
|
1931
1930
|
"type": "boolean"
|
|
1932
1931
|
},
|
|
1933
|
-
"
|
|
1932
|
+
"message-types-dir": {
|
|
1934
1933
|
"dependsOn": [
|
|
1935
1934
|
"all"
|
|
1936
1935
|
],
|
|
1937
|
-
"name": "
|
|
1938
|
-
"summary": "The target directory path to find all
|
|
1936
|
+
"name": "message-types-dir",
|
|
1937
|
+
"summary": "The target directory path to find all message types to validate.",
|
|
1939
1938
|
"hasDynamicHelp": false,
|
|
1940
1939
|
"multiple": false,
|
|
1941
1940
|
"type": "option"
|
|
1942
1941
|
}
|
|
1943
1942
|
},
|
|
1944
1943
|
"hasDynamicHelp": false,
|
|
1944
|
+
"hidden": true,
|
|
1945
1945
|
"hiddenAliases": [],
|
|
1946
|
-
"id": "
|
|
1946
|
+
"id": "message-type:validate",
|
|
1947
1947
|
"pluginAlias": "@knocklabs/cli",
|
|
1948
1948
|
"pluginName": "@knocklabs/cli",
|
|
1949
1949
|
"pluginType": "core",
|
|
1950
1950
|
"strict": true,
|
|
1951
|
-
"summary": "Validate one or more
|
|
1951
|
+
"summary": "Validate one or more message types from a local file system.",
|
|
1952
1952
|
"enableJsonFlag": false,
|
|
1953
1953
|
"isESM": false,
|
|
1954
1954
|
"relativePath": [
|
|
1955
1955
|
"dist",
|
|
1956
1956
|
"commands",
|
|
1957
|
-
"
|
|
1957
|
+
"message-type",
|
|
1958
1958
|
"validate.js"
|
|
1959
1959
|
]
|
|
1960
1960
|
},
|
|
@@ -2029,6 +2029,61 @@
|
|
|
2029
2029
|
"activate.js"
|
|
2030
2030
|
]
|
|
2031
2031
|
},
|
|
2032
|
+
"workflow:generate-types": {
|
|
2033
|
+
"aliases": [],
|
|
2034
|
+
"args": {},
|
|
2035
|
+
"description": "Generate types for all workflows in the development environment and write them to a file.",
|
|
2036
|
+
"flags": {
|
|
2037
|
+
"service-token": {
|
|
2038
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
2039
|
+
"name": "service-token",
|
|
2040
|
+
"required": true,
|
|
2041
|
+
"summary": "The service token to authenticate with.",
|
|
2042
|
+
"hasDynamicHelp": false,
|
|
2043
|
+
"multiple": false,
|
|
2044
|
+
"type": "option"
|
|
2045
|
+
},
|
|
2046
|
+
"api-origin": {
|
|
2047
|
+
"hidden": true,
|
|
2048
|
+
"name": "api-origin",
|
|
2049
|
+
"required": false,
|
|
2050
|
+
"hasDynamicHelp": false,
|
|
2051
|
+
"multiple": false,
|
|
2052
|
+
"type": "option"
|
|
2053
|
+
},
|
|
2054
|
+
"environment": {
|
|
2055
|
+
"name": "environment",
|
|
2056
|
+
"summary": "Select the environment to generate types for.",
|
|
2057
|
+
"default": "development",
|
|
2058
|
+
"hasDynamicHelp": false,
|
|
2059
|
+
"multiple": false,
|
|
2060
|
+
"type": "option"
|
|
2061
|
+
},
|
|
2062
|
+
"output-file": {
|
|
2063
|
+
"name": "output-file",
|
|
2064
|
+
"required": true,
|
|
2065
|
+
"summary": "The output file to write the generated types to. We currently support .ts, .rb, .go, .py files only. Your file extension will determine the target language for the generated types.",
|
|
2066
|
+
"hasDynamicHelp": false,
|
|
2067
|
+
"multiple": false,
|
|
2068
|
+
"type": "option"
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"hasDynamicHelp": false,
|
|
2072
|
+
"hiddenAliases": [],
|
|
2073
|
+
"id": "workflow:generate-types",
|
|
2074
|
+
"pluginAlias": "@knocklabs/cli",
|
|
2075
|
+
"pluginName": "@knocklabs/cli",
|
|
2076
|
+
"pluginType": "core",
|
|
2077
|
+
"strict": true,
|
|
2078
|
+
"enableJsonFlag": false,
|
|
2079
|
+
"isESM": false,
|
|
2080
|
+
"relativePath": [
|
|
2081
|
+
"dist",
|
|
2082
|
+
"commands",
|
|
2083
|
+
"workflow",
|
|
2084
|
+
"generate-types.js"
|
|
2085
|
+
]
|
|
2086
|
+
},
|
|
2032
2087
|
"workflow:get": {
|
|
2033
2088
|
"aliases": [],
|
|
2034
2089
|
"args": {
|
|
@@ -2557,5 +2612,5 @@
|
|
|
2557
2612
|
]
|
|
2558
2613
|
}
|
|
2559
2614
|
},
|
|
2560
|
-
"version": "0.1.
|
|
2615
|
+
"version": "0.1.21"
|
|
2561
2616
|
}
|