@adobe/aio-cli-plugin-app 14.3.2 → 14.4.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 +221 -188
- package/oclif.manifest.json +223 -1
- package/package.json +1 -1
- package/src/BaseCommand.js +19 -14
- package/src/commands/app/add/action.js +1 -1
- package/src/commands/app/add/event.js +2 -2
- package/src/commands/app/add/extension.js +1 -1
- package/src/commands/app/add/web-assets.js +1 -1
- package/src/commands/app/config/get/log-forwarding/errors.js +7 -3
- package/src/commands/app/config/get/log-forwarding.js +6 -1
- package/src/commands/app/config/set/log-forwarding.js +5 -1
- package/src/commands/app/delete/action.js +11 -11
- package/src/commands/app/delete/extension.js +5 -5
- package/src/commands/app/delete/web-assets.js +1 -1
- package/src/commands/app/deploy.js +1 -1
- package/src/commands/app/get-url.js +5 -5
- package/src/commands/app/info.js +1 -1
- package/src/commands/app/logs.js +1 -1
- package/src/commands/app/pack.js +6 -6
- package/src/commands/app/test.js +2 -1
- package/src/commands/app/undeploy.js +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
"allowNo": false,
|
|
19
19
|
"type": "boolean"
|
|
20
20
|
},
|
|
21
|
+
"config-validation": {
|
|
22
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
23
|
+
"name": "config-validation",
|
|
24
|
+
"allowNo": true,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
21
27
|
"actions": {
|
|
22
28
|
"description": "[default: true] Build actions if any",
|
|
23
29
|
"exclusive": [
|
|
@@ -106,6 +112,12 @@
|
|
|
106
112
|
"name": "version",
|
|
107
113
|
"allowNo": false,
|
|
108
114
|
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"config-validation": {
|
|
117
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
118
|
+
"name": "config-validation",
|
|
119
|
+
"allowNo": true,
|
|
120
|
+
"type": "boolean"
|
|
109
121
|
}
|
|
110
122
|
},
|
|
111
123
|
"hasDynamicHelp": false,
|
|
@@ -147,6 +159,12 @@
|
|
|
147
159
|
"allowNo": false,
|
|
148
160
|
"type": "boolean"
|
|
149
161
|
},
|
|
162
|
+
"config-validation": {
|
|
163
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
164
|
+
"name": "config-validation",
|
|
165
|
+
"allowNo": true,
|
|
166
|
+
"type": "boolean"
|
|
167
|
+
},
|
|
150
168
|
"import": {
|
|
151
169
|
"char": "i",
|
|
152
170
|
"description": "Import an Adobe I/O Developer Console configuration file",
|
|
@@ -189,6 +207,12 @@
|
|
|
189
207
|
"allowNo": false,
|
|
190
208
|
"type": "boolean"
|
|
191
209
|
},
|
|
210
|
+
"config-validation": {
|
|
211
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
212
|
+
"name": "config-validation",
|
|
213
|
+
"allowNo": true,
|
|
214
|
+
"type": "boolean"
|
|
215
|
+
},
|
|
192
216
|
"actions": {
|
|
193
217
|
"description": "[default: true] Deploy actions if any",
|
|
194
218
|
"exclusive": [
|
|
@@ -342,6 +366,12 @@
|
|
|
342
366
|
"allowNo": false,
|
|
343
367
|
"type": "boolean"
|
|
344
368
|
},
|
|
369
|
+
"config-validation": {
|
|
370
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
371
|
+
"name": "config-validation",
|
|
372
|
+
"allowNo": true,
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
345
375
|
"cdn": {
|
|
346
376
|
"description": "Display CDN based action URLs",
|
|
347
377
|
"name": "cdn",
|
|
@@ -402,6 +432,12 @@
|
|
|
402
432
|
"name": "version",
|
|
403
433
|
"allowNo": false,
|
|
404
434
|
"type": "boolean"
|
|
435
|
+
},
|
|
436
|
+
"config-validation": {
|
|
437
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
438
|
+
"name": "config-validation",
|
|
439
|
+
"allowNo": true,
|
|
440
|
+
"type": "boolean"
|
|
405
441
|
}
|
|
406
442
|
},
|
|
407
443
|
"hasDynamicHelp": false,
|
|
@@ -437,6 +473,12 @@
|
|
|
437
473
|
"allowNo": false,
|
|
438
474
|
"type": "boolean"
|
|
439
475
|
},
|
|
476
|
+
"config-validation": {
|
|
477
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
478
|
+
"name": "config-validation",
|
|
479
|
+
"allowNo": true,
|
|
480
|
+
"type": "boolean"
|
|
481
|
+
},
|
|
440
482
|
"json": {
|
|
441
483
|
"char": "j",
|
|
442
484
|
"description": "Output json",
|
|
@@ -516,6 +558,12 @@
|
|
|
516
558
|
"allowNo": false,
|
|
517
559
|
"type": "boolean"
|
|
518
560
|
},
|
|
561
|
+
"config-validation": {
|
|
562
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
563
|
+
"name": "config-validation",
|
|
564
|
+
"allowNo": true,
|
|
565
|
+
"type": "boolean"
|
|
566
|
+
},
|
|
519
567
|
"install": {
|
|
520
568
|
"description": "[default: true] Run npm installation after files are created",
|
|
521
569
|
"name": "install",
|
|
@@ -704,6 +752,12 @@
|
|
|
704
752
|
"allowNo": false,
|
|
705
753
|
"type": "boolean"
|
|
706
754
|
},
|
|
755
|
+
"config-validation": {
|
|
756
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
757
|
+
"name": "config-validation",
|
|
758
|
+
"allowNo": true,
|
|
759
|
+
"type": "boolean"
|
|
760
|
+
},
|
|
707
761
|
"allow-scripts": {
|
|
708
762
|
"description": "Allow post and preinstall scripts during npm install/npm ci",
|
|
709
763
|
"name": "allow-scripts",
|
|
@@ -759,6 +813,12 @@
|
|
|
759
813
|
"allowNo": false,
|
|
760
814
|
"type": "boolean"
|
|
761
815
|
},
|
|
816
|
+
"config-validation": {
|
|
817
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
818
|
+
"name": "config-validation",
|
|
819
|
+
"allowNo": true,
|
|
820
|
+
"type": "boolean"
|
|
821
|
+
},
|
|
762
822
|
"limit": {
|
|
763
823
|
"char": "l",
|
|
764
824
|
"description": "Limit number of activations to fetch logs from ( 1-50 )",
|
|
@@ -856,6 +916,12 @@
|
|
|
856
916
|
"allowNo": false,
|
|
857
917
|
"type": "boolean"
|
|
858
918
|
},
|
|
919
|
+
"config-validation": {
|
|
920
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
921
|
+
"name": "config-validation",
|
|
922
|
+
"allowNo": true,
|
|
923
|
+
"type": "boolean"
|
|
924
|
+
},
|
|
859
925
|
"lock-file": {
|
|
860
926
|
"description": "Include the package-lock.json file in the packaged app",
|
|
861
927
|
"name": "lock-file",
|
|
@@ -905,6 +971,12 @@
|
|
|
905
971
|
"allowNo": false,
|
|
906
972
|
"type": "boolean"
|
|
907
973
|
},
|
|
974
|
+
"config-validation": {
|
|
975
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
976
|
+
"name": "config-validation",
|
|
977
|
+
"allowNo": true,
|
|
978
|
+
"type": "boolean"
|
|
979
|
+
},
|
|
908
980
|
"serve": {
|
|
909
981
|
"description": "[default: true] Start frontend server (experimental)",
|
|
910
982
|
"name": "serve",
|
|
@@ -965,6 +1037,12 @@
|
|
|
965
1037
|
"allowNo": false,
|
|
966
1038
|
"type": "boolean"
|
|
967
1039
|
},
|
|
1040
|
+
"config-validation": {
|
|
1041
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1042
|
+
"name": "config-validation",
|
|
1043
|
+
"allowNo": true,
|
|
1044
|
+
"type": "boolean"
|
|
1045
|
+
},
|
|
968
1046
|
"extension": {
|
|
969
1047
|
"char": "e",
|
|
970
1048
|
"description": "the extension(s) to test",
|
|
@@ -1039,6 +1117,12 @@
|
|
|
1039
1117
|
"allowNo": false,
|
|
1040
1118
|
"type": "boolean"
|
|
1041
1119
|
},
|
|
1120
|
+
"config-validation": {
|
|
1121
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1122
|
+
"name": "config-validation",
|
|
1123
|
+
"allowNo": true,
|
|
1124
|
+
"type": "boolean"
|
|
1125
|
+
},
|
|
1042
1126
|
"actions": {
|
|
1043
1127
|
"description": "[default: true] Undeploy actions if any",
|
|
1044
1128
|
"name": "actions",
|
|
@@ -1120,6 +1204,12 @@
|
|
|
1120
1204
|
"allowNo": false,
|
|
1121
1205
|
"type": "boolean"
|
|
1122
1206
|
},
|
|
1207
|
+
"config-validation": {
|
|
1208
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1209
|
+
"name": "config-validation",
|
|
1210
|
+
"allowNo": true,
|
|
1211
|
+
"type": "boolean"
|
|
1212
|
+
},
|
|
1123
1213
|
"overwrite": {
|
|
1124
1214
|
"description": "Overwrite any .aio and .env files during import of the Adobe Developer Console configuration file",
|
|
1125
1215
|
"exclusive": [
|
|
@@ -1244,6 +1334,12 @@
|
|
|
1244
1334
|
"allowNo": false,
|
|
1245
1335
|
"type": "boolean"
|
|
1246
1336
|
},
|
|
1337
|
+
"config-validation": {
|
|
1338
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1339
|
+
"name": "config-validation",
|
|
1340
|
+
"allowNo": true,
|
|
1341
|
+
"type": "boolean"
|
|
1342
|
+
},
|
|
1247
1343
|
"install": {
|
|
1248
1344
|
"description": "[default: true] Run npm installation after files are created",
|
|
1249
1345
|
"name": "install",
|
|
@@ -1299,6 +1395,12 @@
|
|
|
1299
1395
|
"name": "version",
|
|
1300
1396
|
"allowNo": false,
|
|
1301
1397
|
"type": "boolean"
|
|
1398
|
+
},
|
|
1399
|
+
"config-validation": {
|
|
1400
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1401
|
+
"name": "config-validation",
|
|
1402
|
+
"allowNo": true,
|
|
1403
|
+
"type": "boolean"
|
|
1302
1404
|
}
|
|
1303
1405
|
},
|
|
1304
1406
|
"hasDynamicHelp": false,
|
|
@@ -1337,6 +1439,12 @@
|
|
|
1337
1439
|
"allowNo": false,
|
|
1338
1440
|
"type": "boolean"
|
|
1339
1441
|
},
|
|
1442
|
+
"config-validation": {
|
|
1443
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1444
|
+
"name": "config-validation",
|
|
1445
|
+
"allowNo": true,
|
|
1446
|
+
"type": "boolean"
|
|
1447
|
+
},
|
|
1340
1448
|
"install": {
|
|
1341
1449
|
"description": "[default: true] Run npm installation after files are created",
|
|
1342
1450
|
"name": "install",
|
|
@@ -1396,6 +1504,12 @@
|
|
|
1396
1504
|
"allowNo": false,
|
|
1397
1505
|
"type": "boolean"
|
|
1398
1506
|
},
|
|
1507
|
+
"config-validation": {
|
|
1508
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1509
|
+
"name": "config-validation",
|
|
1510
|
+
"allowNo": true,
|
|
1511
|
+
"type": "boolean"
|
|
1512
|
+
},
|
|
1399
1513
|
"install": {
|
|
1400
1514
|
"description": "[default: true] Run npm installation after files are created",
|
|
1401
1515
|
"name": "install",
|
|
@@ -1451,6 +1565,12 @@
|
|
|
1451
1565
|
"name": "version",
|
|
1452
1566
|
"allowNo": false,
|
|
1453
1567
|
"type": "boolean"
|
|
1568
|
+
},
|
|
1569
|
+
"config-validation": {
|
|
1570
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1571
|
+
"name": "config-validation",
|
|
1572
|
+
"allowNo": true,
|
|
1573
|
+
"type": "boolean"
|
|
1454
1574
|
}
|
|
1455
1575
|
},
|
|
1456
1576
|
"hasDynamicHelp": false,
|
|
@@ -1489,6 +1609,12 @@
|
|
|
1489
1609
|
"allowNo": false,
|
|
1490
1610
|
"type": "boolean"
|
|
1491
1611
|
},
|
|
1612
|
+
"config-validation": {
|
|
1613
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1614
|
+
"name": "config-validation",
|
|
1615
|
+
"allowNo": true,
|
|
1616
|
+
"type": "boolean"
|
|
1617
|
+
},
|
|
1492
1618
|
"use-jwt": {
|
|
1493
1619
|
"description": "if the config has both jwt and OAuth Server to Server Credentials (while migrating), prefer the JWT credentials",
|
|
1494
1620
|
"name": "use-jwt",
|
|
@@ -1530,6 +1656,12 @@
|
|
|
1530
1656
|
"allowNo": false,
|
|
1531
1657
|
"type": "boolean"
|
|
1532
1658
|
},
|
|
1659
|
+
"config-validation": {
|
|
1660
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1661
|
+
"name": "config-validation",
|
|
1662
|
+
"allowNo": true,
|
|
1663
|
+
"type": "boolean"
|
|
1664
|
+
},
|
|
1533
1665
|
"install": {
|
|
1534
1666
|
"description": "[default: true] Run npm installation after files are created",
|
|
1535
1667
|
"name": "install",
|
|
@@ -1588,6 +1720,12 @@
|
|
|
1588
1720
|
"name": "version",
|
|
1589
1721
|
"allowNo": false,
|
|
1590
1722
|
"type": "boolean"
|
|
1723
|
+
},
|
|
1724
|
+
"config-validation": {
|
|
1725
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1726
|
+
"name": "config-validation",
|
|
1727
|
+
"allowNo": true,
|
|
1728
|
+
"type": "boolean"
|
|
1591
1729
|
}
|
|
1592
1730
|
},
|
|
1593
1731
|
"hasDynamicHelp": false,
|
|
@@ -1633,6 +1771,12 @@
|
|
|
1633
1771
|
"allowNo": false,
|
|
1634
1772
|
"type": "boolean"
|
|
1635
1773
|
},
|
|
1774
|
+
"config-validation": {
|
|
1775
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1776
|
+
"name": "config-validation",
|
|
1777
|
+
"allowNo": true,
|
|
1778
|
+
"type": "boolean"
|
|
1779
|
+
},
|
|
1636
1780
|
"yes": {
|
|
1637
1781
|
"char": "y",
|
|
1638
1782
|
"description": "Skip questions, and use all default values",
|
|
@@ -1675,6 +1819,12 @@
|
|
|
1675
1819
|
"allowNo": false,
|
|
1676
1820
|
"type": "boolean"
|
|
1677
1821
|
},
|
|
1822
|
+
"config-validation": {
|
|
1823
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1824
|
+
"name": "config-validation",
|
|
1825
|
+
"allowNo": true,
|
|
1826
|
+
"type": "boolean"
|
|
1827
|
+
},
|
|
1678
1828
|
"yes": {
|
|
1679
1829
|
"char": "y",
|
|
1680
1830
|
"description": "Skip questions, and use all default values",
|
|
@@ -1720,6 +1870,12 @@
|
|
|
1720
1870
|
"allowNo": false,
|
|
1721
1871
|
"type": "boolean"
|
|
1722
1872
|
},
|
|
1873
|
+
"config-validation": {
|
|
1874
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1875
|
+
"name": "config-validation",
|
|
1876
|
+
"allowNo": true,
|
|
1877
|
+
"type": "boolean"
|
|
1878
|
+
},
|
|
1723
1879
|
"yes": {
|
|
1724
1880
|
"char": "y",
|
|
1725
1881
|
"description": "Skip questions, and use all default values",
|
|
@@ -1775,6 +1931,12 @@
|
|
|
1775
1931
|
"name": "version",
|
|
1776
1932
|
"allowNo": false,
|
|
1777
1933
|
"type": "boolean"
|
|
1934
|
+
},
|
|
1935
|
+
"config-validation": {
|
|
1936
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1937
|
+
"name": "config-validation",
|
|
1938
|
+
"allowNo": true,
|
|
1939
|
+
"type": "boolean"
|
|
1778
1940
|
}
|
|
1779
1941
|
},
|
|
1780
1942
|
"hasDynamicHelp": false,
|
|
@@ -1813,6 +1975,12 @@
|
|
|
1813
1975
|
"allowNo": false,
|
|
1814
1976
|
"type": "boolean"
|
|
1815
1977
|
},
|
|
1978
|
+
"config-validation": {
|
|
1979
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
1980
|
+
"name": "config-validation",
|
|
1981
|
+
"allowNo": true,
|
|
1982
|
+
"type": "boolean"
|
|
1983
|
+
},
|
|
1816
1984
|
"use-jwt": {
|
|
1817
1985
|
"description": "if the config has both jwt and OAuth Server to Server Credentials (while migrating), prefer the JWT credentials",
|
|
1818
1986
|
"name": "use-jwt",
|
|
@@ -1854,6 +2022,12 @@
|
|
|
1854
2022
|
"allowNo": false,
|
|
1855
2023
|
"type": "boolean"
|
|
1856
2024
|
},
|
|
2025
|
+
"config-validation": {
|
|
2026
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2027
|
+
"name": "config-validation",
|
|
2028
|
+
"allowNo": true,
|
|
2029
|
+
"type": "boolean"
|
|
2030
|
+
},
|
|
1857
2031
|
"yes": {
|
|
1858
2032
|
"char": "y",
|
|
1859
2033
|
"description": "Skip questions, and use all default values",
|
|
@@ -1899,6 +2073,12 @@
|
|
|
1899
2073
|
"allowNo": false,
|
|
1900
2074
|
"type": "boolean"
|
|
1901
2075
|
},
|
|
2076
|
+
"config-validation": {
|
|
2077
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2078
|
+
"name": "config-validation",
|
|
2079
|
+
"allowNo": true,
|
|
2080
|
+
"type": "boolean"
|
|
2081
|
+
},
|
|
1902
2082
|
"json": {
|
|
1903
2083
|
"char": "j",
|
|
1904
2084
|
"description": "Output json",
|
|
@@ -1951,6 +2131,12 @@
|
|
|
1951
2131
|
"allowNo": false,
|
|
1952
2132
|
"type": "boolean"
|
|
1953
2133
|
},
|
|
2134
|
+
"config-validation": {
|
|
2135
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2136
|
+
"name": "config-validation",
|
|
2137
|
+
"allowNo": true,
|
|
2138
|
+
"type": "boolean"
|
|
2139
|
+
},
|
|
1954
2140
|
"json": {
|
|
1955
2141
|
"char": "j",
|
|
1956
2142
|
"description": "Output json",
|
|
@@ -1999,6 +2185,12 @@
|
|
|
1999
2185
|
"name": "version",
|
|
2000
2186
|
"allowNo": false,
|
|
2001
2187
|
"type": "boolean"
|
|
2188
|
+
},
|
|
2189
|
+
"config-validation": {
|
|
2190
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2191
|
+
"name": "config-validation",
|
|
2192
|
+
"allowNo": true,
|
|
2193
|
+
"type": "boolean"
|
|
2002
2194
|
}
|
|
2003
2195
|
},
|
|
2004
2196
|
"hasDynamicHelp": false,
|
|
@@ -2036,6 +2228,12 @@
|
|
|
2036
2228
|
"name": "version",
|
|
2037
2229
|
"allowNo": false,
|
|
2038
2230
|
"type": "boolean"
|
|
2231
|
+
},
|
|
2232
|
+
"config-validation": {
|
|
2233
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2234
|
+
"name": "config-validation",
|
|
2235
|
+
"allowNo": true,
|
|
2236
|
+
"type": "boolean"
|
|
2039
2237
|
}
|
|
2040
2238
|
},
|
|
2041
2239
|
"hasDynamicHelp": false,
|
|
@@ -2075,6 +2273,12 @@
|
|
|
2075
2273
|
"name": "version",
|
|
2076
2274
|
"allowNo": false,
|
|
2077
2275
|
"type": "boolean"
|
|
2276
|
+
},
|
|
2277
|
+
"config-validation": {
|
|
2278
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2279
|
+
"name": "config-validation",
|
|
2280
|
+
"allowNo": true,
|
|
2281
|
+
"type": "boolean"
|
|
2078
2282
|
}
|
|
2079
2283
|
},
|
|
2080
2284
|
"hasDynamicHelp": false,
|
|
@@ -2113,6 +2317,12 @@
|
|
|
2113
2317
|
"name": "version",
|
|
2114
2318
|
"allowNo": false,
|
|
2115
2319
|
"type": "boolean"
|
|
2320
|
+
},
|
|
2321
|
+
"config-validation": {
|
|
2322
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2323
|
+
"name": "config-validation",
|
|
2324
|
+
"allowNo": true,
|
|
2325
|
+
"type": "boolean"
|
|
2116
2326
|
}
|
|
2117
2327
|
},
|
|
2118
2328
|
"hasDynamicHelp": false,
|
|
@@ -2152,6 +2362,12 @@
|
|
|
2152
2362
|
"name": "version",
|
|
2153
2363
|
"allowNo": false,
|
|
2154
2364
|
"type": "boolean"
|
|
2365
|
+
},
|
|
2366
|
+
"config-validation": {
|
|
2367
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2368
|
+
"name": "config-validation",
|
|
2369
|
+
"allowNo": true,
|
|
2370
|
+
"type": "boolean"
|
|
2155
2371
|
}
|
|
2156
2372
|
},
|
|
2157
2373
|
"hasDynamicHelp": false,
|
|
@@ -2191,6 +2407,12 @@
|
|
|
2191
2407
|
"name": "version",
|
|
2192
2408
|
"allowNo": false,
|
|
2193
2409
|
"type": "boolean"
|
|
2410
|
+
},
|
|
2411
|
+
"config-validation": {
|
|
2412
|
+
"description": "[default: true] Validate the app configuration file(s) before continuing.",
|
|
2413
|
+
"name": "config-validation",
|
|
2414
|
+
"allowNo": true,
|
|
2415
|
+
"type": "boolean"
|
|
2194
2416
|
}
|
|
2195
2417
|
},
|
|
2196
2418
|
"hasDynamicHelp": false,
|
|
@@ -2212,5 +2434,5 @@
|
|
|
2212
2434
|
]
|
|
2213
2435
|
}
|
|
2214
2436
|
},
|
|
2215
|
-
"version": "14.
|
|
2437
|
+
"version": "14.4.0"
|
|
2216
2438
|
}
|
package/package.json
CHANGED
package/src/BaseCommand.js
CHANGED
|
@@ -66,7 +66,7 @@ class BaseCommand extends Command {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
async getAppExtConfigs (flags, options = {}) {
|
|
69
|
-
const all = (await this.getFullConfig(options)).all
|
|
69
|
+
const all = (await this.getFullConfig(options, flags)).all
|
|
70
70
|
|
|
71
71
|
// default case: no flags, return all
|
|
72
72
|
let ret = all
|
|
@@ -96,41 +96,41 @@ class BaseCommand extends Command {
|
|
|
96
96
|
return ret
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
async getRuntimeManifestConfigFile (implName) {
|
|
99
|
+
async getRuntimeManifestConfigFile (implName, flags) {
|
|
100
100
|
let configKey
|
|
101
101
|
if (implName === APPLICATION_CONFIG_KEY) {
|
|
102
102
|
configKey = APPLICATION_CONFIG_KEY
|
|
103
103
|
} else {
|
|
104
104
|
configKey = `${EXTENSIONS_CONFIG_KEY}.${implName}`
|
|
105
105
|
}
|
|
106
|
-
let configData = await this.getConfigFileForKey(`${configKey}.runtimeManifest
|
|
106
|
+
let configData = await this.getConfigFileForKey(`${configKey}.runtimeManifest`, flags)
|
|
107
107
|
if (!configData.file) {
|
|
108
108
|
// first action manifest is not defined
|
|
109
|
-
configData = await this.getConfigFileForKey(`${configKey}
|
|
109
|
+
configData = await this.getConfigFileForKey(`${configKey}`, flags)
|
|
110
110
|
configData.key = configData.key + '.runtimeManifest'
|
|
111
111
|
}
|
|
112
112
|
return configData
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
async getEventsConfigFile (implName) {
|
|
115
|
+
async getEventsConfigFile (implName, flags) {
|
|
116
116
|
let configKey
|
|
117
117
|
if (implName === APPLICATION_CONFIG_KEY) {
|
|
118
118
|
configKey = APPLICATION_CONFIG_KEY
|
|
119
119
|
} else {
|
|
120
120
|
configKey = `${EXTENSIONS_CONFIG_KEY}.${implName}`
|
|
121
121
|
}
|
|
122
|
-
let configData = await this.getConfigFileForKey(`${configKey}.events
|
|
122
|
+
let configData = await this.getConfigFileForKey(`${configKey}.events`, flags)
|
|
123
123
|
if (!configData.file) {
|
|
124
124
|
// first events manifest is not defined
|
|
125
|
-
configData = await this.getConfigFileForKey(`${configKey}
|
|
125
|
+
configData = await this.getConfigFileForKey(`${configKey}`, flags)
|
|
126
126
|
configData.key = configData.key + '.events'
|
|
127
127
|
}
|
|
128
128
|
return configData
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
async getConfigFileForKey (fullKey) {
|
|
131
|
+
async getConfigFileForKey (fullKey, flags = {}) {
|
|
132
132
|
// NOTE: the index returns undefined if the key is loaded from a legacy configuration file
|
|
133
|
-
const fullConfig = await this.getFullConfig()
|
|
133
|
+
const fullConfig = await this.getFullConfig({}, flags)
|
|
134
134
|
// full key like 'extensions.dx/excshell/1.runtimeManifest'
|
|
135
135
|
// returns { key: relKey, file: configFile}
|
|
136
136
|
const configData = fullConfig.includeIndex[fullKey]
|
|
@@ -142,12 +142,12 @@ class BaseCommand extends Command {
|
|
|
142
142
|
return configData || {}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
async getFullConfig (options = {}) {
|
|
146
|
-
// validate appConfig defaults to
|
|
147
|
-
const validateAppConfig =
|
|
145
|
+
async getFullConfig (options = {}, flags = {}) {
|
|
146
|
+
// validate appConfig defaults to true unless flag is explicitly set to off
|
|
147
|
+
const validateAppConfig = flags['config-validation'] !== false
|
|
148
|
+
aioLogger.debug(`validateAppConfig=${validateAppConfig}`)
|
|
148
149
|
|
|
149
150
|
if (!this.appConfig) {
|
|
150
|
-
// this will explicitly set validateAppConfig=false if not set
|
|
151
151
|
this.appConfig = await appConfig.load({ ...options, validateAppConfig })
|
|
152
152
|
}
|
|
153
153
|
return this.appConfig
|
|
@@ -191,7 +191,12 @@ class BaseCommand extends Command {
|
|
|
191
191
|
|
|
192
192
|
BaseCommand.flags = {
|
|
193
193
|
verbose: Flags.boolean({ char: 'v', description: 'Verbose output' }),
|
|
194
|
-
version: Flags.boolean({ description: 'Show version' })
|
|
194
|
+
version: Flags.boolean({ description: 'Show version' }),
|
|
195
|
+
'config-validation': Flags.boolean({
|
|
196
|
+
description: '[default: true] Validate the app configuration file(s) before continuing.',
|
|
197
|
+
default: true,
|
|
198
|
+
allowNo: true
|
|
199
|
+
})
|
|
195
200
|
}
|
|
196
201
|
|
|
197
202
|
BaseCommand.args = {}
|
|
@@ -32,7 +32,7 @@ class AddActionCommand extends TemplatesCommand {
|
|
|
32
32
|
const config = entries[0][1]
|
|
33
33
|
|
|
34
34
|
const actionFolder = path.relative(config.root, config.actions.src)
|
|
35
|
-
const configData = await this.getRuntimeManifestConfigFile(configName)
|
|
35
|
+
const configData = await this.getRuntimeManifestConfigFile(configName, flags)
|
|
36
36
|
|
|
37
37
|
const projectOrgId = aioConfigLoader.get('project.org.id')
|
|
38
38
|
if (!projectOrgId) {
|
|
@@ -31,8 +31,8 @@ class AddEventCommand extends TemplatesCommand {
|
|
|
31
31
|
const configName = entries[0][0]
|
|
32
32
|
const config = entries[0][1]
|
|
33
33
|
const actionFolder = path.relative(config.root, config.actions.src)
|
|
34
|
-
const runtimeManifestData = await this.getRuntimeManifestConfigFile(configName)
|
|
35
|
-
const eventsData = await this.getEventsConfigFile(configName)
|
|
34
|
+
const runtimeManifestData = await this.getRuntimeManifestConfigFile(configName, flags)
|
|
35
|
+
const eventsData = await this.getEventsConfigFile(configName, flags)
|
|
36
36
|
const templateOptions = {
|
|
37
37
|
'skip-prompt': false,
|
|
38
38
|
'action-folder': actionFolder,
|
|
@@ -24,7 +24,7 @@ class AddExtensionCommand extends TemplatesCommand {
|
|
|
24
24
|
this.error('--extension= must also be provided when using --yes')
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
const fullConfig = await this.getFullConfig({ allowNoImpl: true })
|
|
27
|
+
const fullConfig = await this.getFullConfig({ allowNoImpl: true }, flags)
|
|
28
28
|
const alreadyImplemented = fullConfig.implements
|
|
29
29
|
|
|
30
30
|
if (flags.extension) {
|
|
@@ -19,7 +19,7 @@ class AddWebAssetsCommand extends TemplatesCommand {
|
|
|
19
19
|
const { flags } = await this.parse(AddWebAssetsCommand)
|
|
20
20
|
aioLogger.debug(`add web-assets with flags: ${JSON.stringify(flags)}`)
|
|
21
21
|
|
|
22
|
-
const projectName = (await this.getFullConfig()).packagejson.name
|
|
22
|
+
const projectName = (await this.getFullConfig({}, flags)).packagejson.name
|
|
23
23
|
// guaranteed to have at least one, otherwise would throw in config load or in matching the ext name
|
|
24
24
|
const entries = Object.entries(await this.getAppExtConfigs(flags))
|
|
25
25
|
if (entries.length > 1) {
|
|
@@ -16,8 +16,9 @@ const { setRuntimeApiHostAndAuthHandler } = require('../../../../../lib/auth-hel
|
|
|
16
16
|
|
|
17
17
|
class ErrorsCommand extends BaseCommand {
|
|
18
18
|
async run () {
|
|
19
|
+
const { flags } = await this.parse(ErrorsCommand)
|
|
19
20
|
const spinner = ora()
|
|
20
|
-
const lf = await this.getLogForwarding()
|
|
21
|
+
const lf = await this.getLogForwarding(flags)
|
|
21
22
|
spinner.start('Checking for errors...')
|
|
22
23
|
const res = await lf.getErrors()
|
|
23
24
|
const destinationMessage = res.configured_forwarder !== undefined
|
|
@@ -30,8 +31,8 @@ class ErrorsCommand extends BaseCommand {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
async getLogForwarding () {
|
|
34
|
-
let aioConfig = (await this.getFullConfig()).aio
|
|
34
|
+
async getLogForwarding (flags) {
|
|
35
|
+
let aioConfig = (await this.getFullConfig({}, flags)).aio
|
|
35
36
|
aioConfig = setRuntimeApiHostAndAuthHandler(aioConfig)
|
|
36
37
|
|
|
37
38
|
const runtimeConfig = aioConfig.runtime
|
|
@@ -46,5 +47,8 @@ class ErrorsCommand extends BaseCommand {
|
|
|
46
47
|
|
|
47
48
|
ErrorsCommand.description = 'Get log forwarding errors'
|
|
48
49
|
ErrorsCommand.aliases = ['app:config:get:log-forwarding:errors', 'app:config:get:lf:errors']
|
|
50
|
+
ErrorsCommand.flags = {
|
|
51
|
+
...BaseCommand.flags
|
|
52
|
+
}
|
|
49
53
|
|
|
50
54
|
module.exports = ErrorsCommand
|
|
@@ -15,7 +15,8 @@ const { setRuntimeApiHostAndAuthHandler } = require('../../../../lib/auth-helper
|
|
|
15
15
|
|
|
16
16
|
class LogForwardingCommand extends BaseCommand {
|
|
17
17
|
async run () {
|
|
18
|
-
|
|
18
|
+
const { flags } = await this.parse(LogForwardingCommand)
|
|
19
|
+
let aioConfig = (await this.getFullConfig({}, flags)).aio
|
|
19
20
|
aioConfig = setRuntimeApiHostAndAuthHandler(aioConfig)
|
|
20
21
|
const lf = await LogForwarding.init(aioConfig)
|
|
21
22
|
|
|
@@ -50,4 +51,8 @@ class LogForwardingCommand extends BaseCommand {
|
|
|
50
51
|
LogForwardingCommand.description = 'Get log forwarding destination configuration'
|
|
51
52
|
LogForwardingCommand.aliases = ['app:config:get:log-forwarding', 'app:config:get:lf']
|
|
52
53
|
|
|
54
|
+
LogForwardingCommand.flags = {
|
|
55
|
+
...BaseCommand.flags
|
|
56
|
+
}
|
|
57
|
+
|
|
53
58
|
module.exports = LogForwardingCommand
|