@tenderprompt/cli 0.1.7 → 0.1.8
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/dist/index.js +131 -141
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,9 +68,6 @@ Commands:
|
|
|
68
68
|
tender app generate-env-types
|
|
69
69
|
Regenerate src/env.d.ts from app.json and bindings
|
|
70
70
|
|
|
71
|
-
Compatibility:
|
|
72
|
-
tender artifacts ... Legacy alias for Tender App commands
|
|
73
|
-
|
|
74
71
|
Examples:
|
|
75
72
|
tender capabilities --json
|
|
76
73
|
tender auth login --device --profile edit-preview --artifact artifact_123 --ttl 7d
|
|
@@ -220,12 +217,6 @@ Examples:
|
|
|
220
217
|
tender app doctor --json
|
|
221
218
|
tender app git remote artifact_123 --ttl 7d --json`;
|
|
222
219
|
}
|
|
223
|
-
function artifactsHelp() {
|
|
224
|
-
return `${appHelp()}
|
|
225
|
-
|
|
226
|
-
Legacy alias:
|
|
227
|
-
tender artifacts ... continues to work for existing automation. Prefer tender app ... for new workflows.`;
|
|
228
|
-
}
|
|
229
220
|
function capabilitiesHelp() {
|
|
230
221
|
return `Usage: tender capabilities [--json]
|
|
231
222
|
|
|
@@ -927,7 +918,7 @@ function parseTtl(value) {
|
|
|
927
918
|
}
|
|
928
919
|
function parseGitRemoteArgs(args) {
|
|
929
920
|
if (args.includes("--help") || args.includes("-h")) {
|
|
930
|
-
return { command: "help", topic: "
|
|
921
|
+
return { command: "help", topic: "app git remote" };
|
|
931
922
|
}
|
|
932
923
|
const artifactId = args[0];
|
|
933
924
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -967,7 +958,7 @@ function parseGitRemoteArgs(args) {
|
|
|
967
958
|
throw new TenderCliUsageError(`Unknown git remote option: ${arg}`);
|
|
968
959
|
}
|
|
969
960
|
return {
|
|
970
|
-
command: "
|
|
961
|
+
command: "app git remote",
|
|
971
962
|
artifactId,
|
|
972
963
|
baseUrl,
|
|
973
964
|
flagToken,
|
|
@@ -987,7 +978,7 @@ function parseRemoteName(value) {
|
|
|
987
978
|
}
|
|
988
979
|
function parseGitSetupArgs(args) {
|
|
989
980
|
if (args.includes("--help") || args.includes("-h")) {
|
|
990
|
-
return { command: "help", topic: "
|
|
981
|
+
return { command: "help", topic: "app git setup" };
|
|
991
982
|
}
|
|
992
983
|
const artifactId = args[0];
|
|
993
984
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1048,7 +1039,7 @@ function parseGitSetupArgs(args) {
|
|
|
1048
1039
|
throw new TenderCliUsageError(`Unknown git setup option: ${arg}`);
|
|
1049
1040
|
}
|
|
1050
1041
|
return {
|
|
1051
|
-
command: "
|
|
1042
|
+
command: "app git setup",
|
|
1052
1043
|
artifactId,
|
|
1053
1044
|
dir,
|
|
1054
1045
|
remoteName,
|
|
@@ -1080,7 +1071,7 @@ function isGitCredentialOperation(value) {
|
|
|
1080
1071
|
}
|
|
1081
1072
|
function parseGitCredentialArgs(args) {
|
|
1082
1073
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1083
|
-
return { command: "help", topic: "
|
|
1074
|
+
return { command: "help", topic: "app git credential" };
|
|
1084
1075
|
}
|
|
1085
1076
|
const artifactId = args[0];
|
|
1086
1077
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1141,7 +1132,7 @@ function parseGitCredentialArgs(args) {
|
|
|
1141
1132
|
throw new TenderCliUsageError(`Unknown git credential option: ${arg}`);
|
|
1142
1133
|
}
|
|
1143
1134
|
return {
|
|
1144
|
-
command: "
|
|
1135
|
+
command: "app git credential",
|
|
1145
1136
|
artifactId,
|
|
1146
1137
|
operation,
|
|
1147
1138
|
baseUrl,
|
|
@@ -1154,7 +1145,7 @@ function parseGitCredentialArgs(args) {
|
|
|
1154
1145
|
}
|
|
1155
1146
|
function parseValidateArgs(args) {
|
|
1156
1147
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1157
|
-
return { command: "help", topic: "
|
|
1148
|
+
return { command: "help", topic: "app validate" };
|
|
1158
1149
|
}
|
|
1159
1150
|
const artifactId = args[0];
|
|
1160
1151
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1193,7 +1184,7 @@ function parseValidateArgs(args) {
|
|
|
1193
1184
|
throw new TenderCliUsageError(`Unknown validate option: ${arg}`);
|
|
1194
1185
|
}
|
|
1195
1186
|
return {
|
|
1196
|
-
command: "
|
|
1187
|
+
command: "app validate",
|
|
1197
1188
|
artifactId,
|
|
1198
1189
|
baseUrl,
|
|
1199
1190
|
flagToken,
|
|
@@ -1204,7 +1195,7 @@ function parseValidateArgs(args) {
|
|
|
1204
1195
|
}
|
|
1205
1196
|
function parseBuildArgs(args) {
|
|
1206
1197
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1207
|
-
return { command: "help", topic: "
|
|
1198
|
+
return { command: "help", topic: "app build" };
|
|
1208
1199
|
}
|
|
1209
1200
|
const artifactId = args[0];
|
|
1210
1201
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1253,7 +1244,7 @@ function parseBuildArgs(args) {
|
|
|
1253
1244
|
throw new TenderCliUsageError(`Unknown build option: ${arg}`);
|
|
1254
1245
|
}
|
|
1255
1246
|
return {
|
|
1256
|
-
command: "
|
|
1247
|
+
command: "app build",
|
|
1257
1248
|
artifactId,
|
|
1258
1249
|
commitSha,
|
|
1259
1250
|
baseUrl,
|
|
@@ -1265,7 +1256,7 @@ function parseBuildArgs(args) {
|
|
|
1265
1256
|
}
|
|
1266
1257
|
function parsePreviewRebuildArgs(args) {
|
|
1267
1258
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1268
|
-
return { command: "help", topic: "
|
|
1259
|
+
return { command: "help", topic: "app preview rebuild" };
|
|
1269
1260
|
}
|
|
1270
1261
|
const artifactId = args[0];
|
|
1271
1262
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1314,7 +1305,7 @@ function parsePreviewRebuildArgs(args) {
|
|
|
1314
1305
|
throw new TenderCliUsageError(`Unknown preview rebuild option: ${arg}`);
|
|
1315
1306
|
}
|
|
1316
1307
|
return {
|
|
1317
|
-
command: "
|
|
1308
|
+
command: "app preview rebuild",
|
|
1318
1309
|
artifactId,
|
|
1319
1310
|
commitSha,
|
|
1320
1311
|
baseUrl,
|
|
@@ -1392,7 +1383,7 @@ function readPreviewLookupOptions(input) {
|
|
|
1392
1383
|
}
|
|
1393
1384
|
function parsePreviewStatusArgs(args) {
|
|
1394
1385
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1395
|
-
return { command: "help", topic: "
|
|
1386
|
+
return { command: "help", topic: "app preview status" };
|
|
1396
1387
|
}
|
|
1397
1388
|
const artifactId = args[0];
|
|
1398
1389
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1407,7 +1398,7 @@ function parsePreviewStatusArgs(args) {
|
|
|
1407
1398
|
throw new TenderCliUsageError("preview status does not support --stream. Use tender app preview watch.");
|
|
1408
1399
|
}
|
|
1409
1400
|
return {
|
|
1410
|
-
command: "
|
|
1401
|
+
command: "app preview status",
|
|
1411
1402
|
artifactId,
|
|
1412
1403
|
commitSha: options.commitSha,
|
|
1413
1404
|
jobId: options.jobId,
|
|
@@ -1419,7 +1410,7 @@ function parsePreviewStatusArgs(args) {
|
|
|
1419
1410
|
}
|
|
1420
1411
|
function parsePreviewWatchArgs(args) {
|
|
1421
1412
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1422
|
-
return { command: "help", topic: "
|
|
1413
|
+
return { command: "help", topic: "app preview watch" };
|
|
1423
1414
|
}
|
|
1424
1415
|
const artifactId = args[0];
|
|
1425
1416
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1431,7 +1422,7 @@ function parsePreviewWatchArgs(args) {
|
|
|
1431
1422
|
commandName: "preview watch",
|
|
1432
1423
|
});
|
|
1433
1424
|
return {
|
|
1434
|
-
command: "
|
|
1425
|
+
command: "app preview watch",
|
|
1435
1426
|
artifactId,
|
|
1436
1427
|
commitSha: options.commitSha,
|
|
1437
1428
|
jobId: options.jobId,
|
|
@@ -1444,7 +1435,7 @@ function parsePreviewWatchArgs(args) {
|
|
|
1444
1435
|
}
|
|
1445
1436
|
function parsePublishArgs(args) {
|
|
1446
1437
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1447
|
-
return { command: "help", topic: "
|
|
1438
|
+
return { command: "help", topic: "app publish" };
|
|
1448
1439
|
}
|
|
1449
1440
|
const artifactId = args[0];
|
|
1450
1441
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1521,7 +1512,7 @@ function parsePublishArgs(args) {
|
|
|
1521
1512
|
throw new TenderCliUsageError("publish requires --dry-run or --confirm publish.");
|
|
1522
1513
|
}
|
|
1523
1514
|
return {
|
|
1524
|
-
command: "
|
|
1515
|
+
command: "app publish",
|
|
1525
1516
|
artifactId,
|
|
1526
1517
|
commitSha,
|
|
1527
1518
|
baseUrl,
|
|
@@ -1591,7 +1582,7 @@ function readPublishJobLookupOptions(input) {
|
|
|
1591
1582
|
}
|
|
1592
1583
|
function parsePublishStatusArgs(args) {
|
|
1593
1584
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1594
|
-
return { command: "help", topic: "
|
|
1585
|
+
return { command: "help", topic: "app publish status" };
|
|
1595
1586
|
}
|
|
1596
1587
|
const artifactId = args[0];
|
|
1597
1588
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1606,7 +1597,7 @@ function parsePublishStatusArgs(args) {
|
|
|
1606
1597
|
throw new TenderCliUsageError("publish status does not support --stream. Use tender app publish watch.");
|
|
1607
1598
|
}
|
|
1608
1599
|
return {
|
|
1609
|
-
command: "
|
|
1600
|
+
command: "app publish status",
|
|
1610
1601
|
artifactId,
|
|
1611
1602
|
jobId: options.jobId,
|
|
1612
1603
|
baseUrl: options.baseUrl,
|
|
@@ -1617,7 +1608,7 @@ function parsePublishStatusArgs(args) {
|
|
|
1617
1608
|
}
|
|
1618
1609
|
function parsePublishWatchArgs(args) {
|
|
1619
1610
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1620
|
-
return { command: "help", topic: "
|
|
1611
|
+
return { command: "help", topic: "app publish watch" };
|
|
1621
1612
|
}
|
|
1622
1613
|
const artifactId = args[0];
|
|
1623
1614
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1629,7 +1620,7 @@ function parsePublishWatchArgs(args) {
|
|
|
1629
1620
|
commandName: "publish watch",
|
|
1630
1621
|
});
|
|
1631
1622
|
return {
|
|
1632
|
-
command: "
|
|
1623
|
+
command: "app publish watch",
|
|
1633
1624
|
artifactId,
|
|
1634
1625
|
jobId: options.jobId,
|
|
1635
1626
|
baseUrl: options.baseUrl,
|
|
@@ -1641,7 +1632,7 @@ function parsePublishWatchArgs(args) {
|
|
|
1641
1632
|
}
|
|
1642
1633
|
function parseArtifactsListArgs(args) {
|
|
1643
1634
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1644
|
-
return { command: "help", topic: "
|
|
1635
|
+
return { command: "help", topic: "app list" };
|
|
1645
1636
|
}
|
|
1646
1637
|
let baseUrl = null;
|
|
1647
1638
|
let flagToken = null;
|
|
@@ -1671,7 +1662,7 @@ function parseArtifactsListArgs(args) {
|
|
|
1671
1662
|
throw new TenderCliUsageError(`Unknown app list option: ${arg}`);
|
|
1672
1663
|
}
|
|
1673
1664
|
return {
|
|
1674
|
-
command: "
|
|
1665
|
+
command: "app list",
|
|
1675
1666
|
baseUrl,
|
|
1676
1667
|
flagToken,
|
|
1677
1668
|
profileName,
|
|
@@ -1680,7 +1671,7 @@ function parseArtifactsListArgs(args) {
|
|
|
1680
1671
|
}
|
|
1681
1672
|
function parseArtifactsCreateArgs(args) {
|
|
1682
1673
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1683
|
-
return { command: "help", topic: "
|
|
1674
|
+
return { command: "help", topic: "app create" };
|
|
1684
1675
|
}
|
|
1685
1676
|
let name = "";
|
|
1686
1677
|
let targetPackId = null;
|
|
@@ -1743,7 +1734,7 @@ function parseArtifactsCreateArgs(args) {
|
|
|
1743
1734
|
throw new TenderCliUsageError("--name is required. Example: tender app create --name \"Exit Intent Widget\" --json");
|
|
1744
1735
|
}
|
|
1745
1736
|
return {
|
|
1746
|
-
command: "
|
|
1737
|
+
command: "app create",
|
|
1747
1738
|
name: name.trim(),
|
|
1748
1739
|
targetPackId,
|
|
1749
1740
|
targetPackVersion,
|
|
@@ -1755,7 +1746,7 @@ function parseArtifactsCreateArgs(args) {
|
|
|
1755
1746
|
}
|
|
1756
1747
|
function parseArtifactsUpdateArgs(args) {
|
|
1757
1748
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1758
|
-
return { command: "help", topic: "
|
|
1749
|
+
return { command: "help", topic: "app update" };
|
|
1759
1750
|
}
|
|
1760
1751
|
const artifactId = args[0];
|
|
1761
1752
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1802,7 +1793,7 @@ function parseArtifactsUpdateArgs(args) {
|
|
|
1802
1793
|
throw new TenderCliUsageError("--name is required. Example: tender app update artifact_123 --name \"Sale Widget\" --json");
|
|
1803
1794
|
}
|
|
1804
1795
|
return {
|
|
1805
|
-
command: "
|
|
1796
|
+
command: "app update",
|
|
1806
1797
|
artifactId,
|
|
1807
1798
|
name: name.trim(),
|
|
1808
1799
|
baseUrl,
|
|
@@ -1813,7 +1804,7 @@ function parseArtifactsUpdateArgs(args) {
|
|
|
1813
1804
|
}
|
|
1814
1805
|
function parseArtifactsInitArgs(args) {
|
|
1815
1806
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1816
|
-
return { command: "help", topic: "
|
|
1807
|
+
return { command: "help", topic: "app init" };
|
|
1817
1808
|
}
|
|
1818
1809
|
const artifactId = args[0];
|
|
1819
1810
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1879,7 +1870,7 @@ function parseArtifactsInitArgs(args) {
|
|
|
1879
1870
|
throw new TenderCliUsageError(`Unknown app init option: ${arg}`);
|
|
1880
1871
|
}
|
|
1881
1872
|
return {
|
|
1882
|
-
command: "
|
|
1873
|
+
command: "app init",
|
|
1883
1874
|
artifactId,
|
|
1884
1875
|
dir,
|
|
1885
1876
|
remoteName,
|
|
@@ -1894,7 +1885,7 @@ function parseArtifactsInitArgs(args) {
|
|
|
1894
1885
|
}
|
|
1895
1886
|
function parseContextFetchArgs(args) {
|
|
1896
1887
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1897
|
-
return { command: "help", topic: "
|
|
1888
|
+
return { command: "help", topic: "app context fetch" };
|
|
1898
1889
|
}
|
|
1899
1890
|
const artifactId = args[0];
|
|
1900
1891
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -1948,7 +1939,7 @@ function parseContextFetchArgs(args) {
|
|
|
1948
1939
|
throw new TenderCliUsageError(`Unknown context fetch option: ${arg}`);
|
|
1949
1940
|
}
|
|
1950
1941
|
return {
|
|
1951
|
-
command: "
|
|
1942
|
+
command: "app context fetch",
|
|
1952
1943
|
artifactId,
|
|
1953
1944
|
dir,
|
|
1954
1945
|
baseUrl,
|
|
@@ -1961,7 +1952,7 @@ function parseContextFetchArgs(args) {
|
|
|
1961
1952
|
}
|
|
1962
1953
|
function parseContextStatusArgs(args) {
|
|
1963
1954
|
if (args.includes("--help") || args.includes("-h")) {
|
|
1964
|
-
return { command: "help", topic: "
|
|
1955
|
+
return { command: "help", topic: "app context status" };
|
|
1965
1956
|
}
|
|
1966
1957
|
const artifactId = args[0];
|
|
1967
1958
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2005,7 +1996,7 @@ function parseContextStatusArgs(args) {
|
|
|
2005
1996
|
throw new TenderCliUsageError(`Unknown context status option: ${arg}`);
|
|
2006
1997
|
}
|
|
2007
1998
|
return {
|
|
2008
|
-
command: "
|
|
1999
|
+
command: "app context status",
|
|
2009
2000
|
artifactId,
|
|
2010
2001
|
dir,
|
|
2011
2002
|
baseUrl,
|
|
@@ -2016,7 +2007,7 @@ function parseContextStatusArgs(args) {
|
|
|
2016
2007
|
}
|
|
2017
2008
|
function parseContextRefreshArgs(args) {
|
|
2018
2009
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2019
|
-
return { command: "help", topic: "
|
|
2010
|
+
return { command: "help", topic: "app context refresh" };
|
|
2020
2011
|
}
|
|
2021
2012
|
const artifactId = args[0];
|
|
2022
2013
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2070,7 +2061,7 @@ function parseContextRefreshArgs(args) {
|
|
|
2070
2061
|
throw new TenderCliUsageError(`Unknown context refresh option: ${arg}`);
|
|
2071
2062
|
}
|
|
2072
2063
|
return {
|
|
2073
|
-
command: "
|
|
2064
|
+
command: "app context refresh",
|
|
2074
2065
|
artifactId,
|
|
2075
2066
|
dir,
|
|
2076
2067
|
baseUrl,
|
|
@@ -2201,7 +2192,7 @@ function parseAuthStatusArgs(args) {
|
|
|
2201
2192
|
}
|
|
2202
2193
|
function parseGenerateEnvTypesArgs(args) {
|
|
2203
2194
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2204
|
-
return { command: "help", topic: "
|
|
2195
|
+
return { command: "help", topic: "app generate-env-types" };
|
|
2205
2196
|
}
|
|
2206
2197
|
let dir = ".";
|
|
2207
2198
|
let json = false;
|
|
@@ -2223,7 +2214,7 @@ function parseGenerateEnvTypesArgs(args) {
|
|
|
2223
2214
|
throw new TenderCliUsageError(`Unknown generate-env-types option: ${arg}`);
|
|
2224
2215
|
}
|
|
2225
2216
|
return {
|
|
2226
|
-
command: "
|
|
2217
|
+
command: "app generate-env-types",
|
|
2227
2218
|
dir,
|
|
2228
2219
|
json,
|
|
2229
2220
|
};
|
|
@@ -2310,7 +2301,7 @@ function parseTypeName(value, flag) {
|
|
|
2310
2301
|
}
|
|
2311
2302
|
function parseBindingsOutboundArgs(args) {
|
|
2312
2303
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2313
|
-
return { command: "help", topic: "
|
|
2304
|
+
return { command: "help", topic: "app bindings outbound" };
|
|
2314
2305
|
}
|
|
2315
2306
|
let id = null;
|
|
2316
2307
|
let host = null;
|
|
@@ -2363,7 +2354,7 @@ function parseBindingsOutboundArgs(args) {
|
|
|
2363
2354
|
throw new TenderCliUsageError("bindings outbound currently requires --dry-run. Example: tender app bindings outbound --id shopify --host admin.shopify.com --dry-run --json");
|
|
2364
2355
|
}
|
|
2365
2356
|
return {
|
|
2366
|
-
command: "
|
|
2357
|
+
command: "app bindings outbound",
|
|
2367
2358
|
id,
|
|
2368
2359
|
host,
|
|
2369
2360
|
name,
|
|
@@ -2406,7 +2397,7 @@ function parseAnalyticsCommonArgs(args, startIndex) {
|
|
|
2406
2397
|
}
|
|
2407
2398
|
function parseAnalyticsSummaryArgs(args) {
|
|
2408
2399
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2409
|
-
return { command: "help", topic: "
|
|
2400
|
+
return { command: "help", topic: "app analytics summary" };
|
|
2410
2401
|
}
|
|
2411
2402
|
const artifactId = args[0];
|
|
2412
2403
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2423,11 +2414,11 @@ function parseAnalyticsSummaryArgs(args) {
|
|
|
2423
2414
|
}
|
|
2424
2415
|
throw new TenderCliUsageError(`Unknown analytics summary option: ${arg}`);
|
|
2425
2416
|
}
|
|
2426
|
-
return { command: "
|
|
2417
|
+
return { command: "app analytics summary", artifactId, range, ...parsed };
|
|
2427
2418
|
}
|
|
2428
2419
|
function parseAnalyticsQueryArgs(args) {
|
|
2429
2420
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2430
|
-
return { command: "help", topic: "
|
|
2421
|
+
return { command: "help", topic: "app analytics query" };
|
|
2431
2422
|
}
|
|
2432
2423
|
const artifactId = args[0];
|
|
2433
2424
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2447,11 +2438,11 @@ function parseAnalyticsQueryArgs(args) {
|
|
|
2447
2438
|
if (!specPath) {
|
|
2448
2439
|
throw new TenderCliUsageError("--spec is required. Example: tender app analytics query artifact_123 --spec chart.json --json");
|
|
2449
2440
|
}
|
|
2450
|
-
return { command: "
|
|
2441
|
+
return { command: "app analytics query", artifactId, specPath, ...parsed };
|
|
2451
2442
|
}
|
|
2452
2443
|
function parseAnalyticsCapabilitiesArgs(args) {
|
|
2453
2444
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2454
|
-
return { command: "help", topic: "
|
|
2445
|
+
return { command: "help", topic: "app analytics capabilities" };
|
|
2455
2446
|
}
|
|
2456
2447
|
const artifactId = args[0];
|
|
2457
2448
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2474,7 +2465,7 @@ function parseAnalyticsCapabilitiesArgs(args) {
|
|
|
2474
2465
|
throw new TenderCliUsageError(`Unknown analytics capabilities option: ${arg}`);
|
|
2475
2466
|
}
|
|
2476
2467
|
return {
|
|
2477
|
-
command: "
|
|
2468
|
+
command: "app analytics capabilities",
|
|
2478
2469
|
artifactId,
|
|
2479
2470
|
includeCatalog,
|
|
2480
2471
|
range,
|
|
@@ -2483,7 +2474,7 @@ function parseAnalyticsCapabilitiesArgs(args) {
|
|
|
2483
2474
|
}
|
|
2484
2475
|
function parseAnalyticsSuggestionsArgs(args) {
|
|
2485
2476
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2486
|
-
return { command: "help", topic: "
|
|
2477
|
+
return { command: "help", topic: "app analytics suggestions" };
|
|
2487
2478
|
}
|
|
2488
2479
|
const artifactId = args[0];
|
|
2489
2480
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2500,11 +2491,11 @@ function parseAnalyticsSuggestionsArgs(args) {
|
|
|
2500
2491
|
}
|
|
2501
2492
|
throw new TenderCliUsageError(`Unknown analytics suggestions option: ${arg}`);
|
|
2502
2493
|
}
|
|
2503
|
-
return { command: "
|
|
2494
|
+
return { command: "app analytics suggestions", artifactId, range, ...parsed };
|
|
2504
2495
|
}
|
|
2505
2496
|
function parseAnalyticsDashboardsArgs(args) {
|
|
2506
2497
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2507
|
-
return { command: "help", topic: "
|
|
2498
|
+
return { command: "help", topic: "app analytics dashboards" };
|
|
2508
2499
|
}
|
|
2509
2500
|
const artifactId = args[0];
|
|
2510
2501
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2529,11 +2520,11 @@ function parseAnalyticsDashboardsArgs(args) {
|
|
|
2529
2520
|
if (dryRun && !name) {
|
|
2530
2521
|
throw new TenderCliUsageError("--dry-run is only valid with --create. Example: tender app analytics dashboards artifact_123 --create \"Agent dashboard\" --dry-run --json");
|
|
2531
2522
|
}
|
|
2532
|
-
return { command: "
|
|
2523
|
+
return { command: "app analytics dashboards", artifactId, name, dryRun, ...parsed };
|
|
2533
2524
|
}
|
|
2534
2525
|
function parseAnalyticsExportCatalogArgs(args) {
|
|
2535
2526
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2536
|
-
return { command: "help", topic: "
|
|
2527
|
+
return { command: "help", topic: "app analytics export catalog" };
|
|
2537
2528
|
}
|
|
2538
2529
|
const artifactId = args[0];
|
|
2539
2530
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2561,7 +2552,7 @@ function parseAnalyticsExportCatalogArgs(args) {
|
|
|
2561
2552
|
throw new TenderCliUsageError(`Unknown analytics export catalog option: ${arg}`);
|
|
2562
2553
|
}
|
|
2563
2554
|
return {
|
|
2564
|
-
command: "
|
|
2555
|
+
command: "app analytics export catalog",
|
|
2565
2556
|
artifactId,
|
|
2566
2557
|
format,
|
|
2567
2558
|
range,
|
|
@@ -2570,7 +2561,7 @@ function parseAnalyticsExportCatalogArgs(args) {
|
|
|
2570
2561
|
}
|
|
2571
2562
|
function parseAnalyticsExportQueryArgs(args) {
|
|
2572
2563
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2573
|
-
return { command: "help", topic: "
|
|
2564
|
+
return { command: "help", topic: "app analytics export query" };
|
|
2574
2565
|
}
|
|
2575
2566
|
const artifactId = args[0];
|
|
2576
2567
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2601,7 +2592,7 @@ function parseAnalyticsExportQueryArgs(args) {
|
|
|
2601
2592
|
throw new TenderCliUsageError("--spec is required. Example: tender app analytics export query artifact_123 --spec chart.json --format csv");
|
|
2602
2593
|
}
|
|
2603
2594
|
return {
|
|
2604
|
-
command: "
|
|
2595
|
+
command: "app analytics export query",
|
|
2605
2596
|
artifactId,
|
|
2606
2597
|
specPath,
|
|
2607
2598
|
format,
|
|
@@ -2610,7 +2601,7 @@ function parseAnalyticsExportQueryArgs(args) {
|
|
|
2610
2601
|
}
|
|
2611
2602
|
function parseAnalyticsChartsCreateArgs(args) {
|
|
2612
2603
|
if (args.includes("--help") || args.includes("-h")) {
|
|
2613
|
-
return { command: "help", topic: "
|
|
2604
|
+
return { command: "help", topic: "app analytics charts create" };
|
|
2614
2605
|
}
|
|
2615
2606
|
const artifactId = args[0];
|
|
2616
2607
|
if (!artifactId || artifactId.startsWith("-")) {
|
|
@@ -2648,7 +2639,7 @@ function parseAnalyticsChartsCreateArgs(args) {
|
|
|
2648
2639
|
throw new TenderCliUsageError("--dashboard, --title, and --spec are required. Example: tender app analytics charts create artifact_123 --dashboard analytics_dashboard_123 --title \"Signup funnel\" --spec chart.json --json");
|
|
2649
2640
|
}
|
|
2650
2641
|
return {
|
|
2651
|
-
command: "
|
|
2642
|
+
command: "app analytics charts create",
|
|
2652
2643
|
artifactId,
|
|
2653
2644
|
dashboardId,
|
|
2654
2645
|
title,
|
|
@@ -2679,15 +2670,14 @@ function parseTenderArgs(args) {
|
|
|
2679
2670
|
if (args[0] === "apps") {
|
|
2680
2671
|
throw new TenderCliUsageError("Unknown command: apps. Use `tender app ...` for Tender App workflows.");
|
|
2681
2672
|
}
|
|
2682
|
-
if (args[0] !== "
|
|
2673
|
+
if (args[0] !== "app") {
|
|
2683
2674
|
throw new TenderCliUsageError(`Unknown command: ${args[0]}`);
|
|
2684
2675
|
}
|
|
2685
2676
|
const resourceArgs = normalizeAppArgs(args);
|
|
2686
|
-
const resourceName = args[0] === "app" ? "app" : "artifacts";
|
|
2687
2677
|
if (resourceArgs[1] === undefined ||
|
|
2688
2678
|
resourceArgs[1] === "--help" ||
|
|
2689
2679
|
resourceArgs[1] === "-h") {
|
|
2690
|
-
return { command: "help", topic: "
|
|
2680
|
+
return { command: "help", topic: "app" };
|
|
2691
2681
|
}
|
|
2692
2682
|
if (resourceArgs[1] !== "doctor") {
|
|
2693
2683
|
if (resourceArgs[1] === "list") {
|
|
@@ -2718,13 +2708,13 @@ function parseTenderArgs(args) {
|
|
|
2718
2708
|
(resourceArgs[2] === undefined ||
|
|
2719
2709
|
resourceArgs[2] === "--help" ||
|
|
2720
2710
|
resourceArgs[2] === "-h")) {
|
|
2721
|
-
return { command: "help", topic: "
|
|
2711
|
+
return { command: "help", topic: "app bindings outbound" };
|
|
2722
2712
|
}
|
|
2723
2713
|
if (resourceArgs[1] === "analytics" &&
|
|
2724
2714
|
(resourceArgs[2] === undefined ||
|
|
2725
2715
|
resourceArgs[2] === "--help" ||
|
|
2726
2716
|
resourceArgs[2] === "-h")) {
|
|
2727
|
-
return { command: "help", topic: "
|
|
2717
|
+
return { command: "help", topic: "app analytics" };
|
|
2728
2718
|
}
|
|
2729
2719
|
if (resourceArgs[1] === "analytics" && resourceArgs[2] === "summary") {
|
|
2730
2720
|
return parseAnalyticsSummaryArgs(resourceArgs.slice(3));
|
|
@@ -2746,7 +2736,7 @@ function parseTenderArgs(args) {
|
|
|
2746
2736
|
(resourceArgs[3] === undefined ||
|
|
2747
2737
|
resourceArgs[3] === "--help" ||
|
|
2748
2738
|
resourceArgs[3] === "-h")) {
|
|
2749
|
-
return { command: "help", topic: "
|
|
2739
|
+
return { command: "help", topic: "app analytics export" };
|
|
2750
2740
|
}
|
|
2751
2741
|
if (resourceArgs[1] === "analytics" &&
|
|
2752
2742
|
resourceArgs[2] === "export" &&
|
|
@@ -2767,7 +2757,7 @@ function parseTenderArgs(args) {
|
|
|
2767
2757
|
(resourceArgs[2] === undefined ||
|
|
2768
2758
|
resourceArgs[2] === "--help" ||
|
|
2769
2759
|
resourceArgs[2] === "-h")) {
|
|
2770
|
-
return { command: "help", topic: "
|
|
2760
|
+
return { command: "help", topic: "app" };
|
|
2771
2761
|
}
|
|
2772
2762
|
if (resourceArgs[1] === "git" && resourceArgs[2] === "remote") {
|
|
2773
2763
|
return parseGitRemoteArgs(resourceArgs.slice(3));
|
|
@@ -2800,7 +2790,7 @@ function parseTenderArgs(args) {
|
|
|
2800
2790
|
(resourceArgs[2] === undefined ||
|
|
2801
2791
|
resourceArgs[2] === "--help" ||
|
|
2802
2792
|
resourceArgs[2] === "-h")) {
|
|
2803
|
-
return { command: "help", topic: "
|
|
2793
|
+
return { command: "help", topic: "app" };
|
|
2804
2794
|
}
|
|
2805
2795
|
if (resourceArgs[1] === "publish" && resourceArgs[2] === "status") {
|
|
2806
2796
|
return parsePublishStatusArgs(resourceArgs.slice(3));
|
|
@@ -2815,13 +2805,13 @@ function parseTenderArgs(args) {
|
|
|
2815
2805
|
(resourceArgs[2] === undefined ||
|
|
2816
2806
|
resourceArgs[2] === "--help" ||
|
|
2817
2807
|
resourceArgs[2] === "-h")) {
|
|
2818
|
-
return { command: "help", topic: "
|
|
2808
|
+
return { command: "help", topic: "app" };
|
|
2819
2809
|
}
|
|
2820
|
-
throw new TenderCliUsageError(`Unknown
|
|
2810
|
+
throw new TenderCliUsageError(`Unknown app command: ${resourceArgs[1]}`);
|
|
2821
2811
|
}
|
|
2822
2812
|
const rest = resourceArgs.slice(2);
|
|
2823
2813
|
if (rest.includes("--help") || rest.includes("-h")) {
|
|
2824
|
-
return { command: "help", topic: "
|
|
2814
|
+
return { command: "help", topic: "app doctor" };
|
|
2825
2815
|
}
|
|
2826
2816
|
let dir = ".";
|
|
2827
2817
|
let json = false;
|
|
@@ -2843,7 +2833,7 @@ function parseTenderArgs(args) {
|
|
|
2843
2833
|
throw new TenderCliUsageError(`Unknown doctor option: ${arg}`);
|
|
2844
2834
|
}
|
|
2845
2835
|
return {
|
|
2846
|
-
command: "
|
|
2836
|
+
command: "app doctor",
|
|
2847
2837
|
dir,
|
|
2848
2838
|
json,
|
|
2849
2839
|
};
|
|
@@ -2859,9 +2849,9 @@ function normalizeAppArgs(args) {
|
|
|
2859
2849
|
args[2] !== "watch" &&
|
|
2860
2850
|
args[2] !== "--help" &&
|
|
2861
2851
|
args[2] !== "-h") {
|
|
2862
|
-
return ["
|
|
2852
|
+
return ["app", "preview", "rebuild", ...args.slice(2)];
|
|
2863
2853
|
}
|
|
2864
|
-
return
|
|
2854
|
+
return args;
|
|
2865
2855
|
}
|
|
2866
2856
|
function formatDoctorHuman(result) {
|
|
2867
2857
|
if (result.diagnostics.length === 0) {
|
|
@@ -5390,101 +5380,101 @@ export async function runTenderCli(args, io = {
|
|
|
5390
5380
|
else if (command.topic === "auth") {
|
|
5391
5381
|
io.stdout(authHelp());
|
|
5392
5382
|
}
|
|
5393
|
-
else if (command.topic === "
|
|
5383
|
+
else if (command.topic === "app create") {
|
|
5394
5384
|
io.stdout(artifactsCreateHelp());
|
|
5395
5385
|
}
|
|
5396
|
-
else if (command.topic === "
|
|
5386
|
+
else if (command.topic === "app update") {
|
|
5397
5387
|
io.stdout(artifactsUpdateHelp());
|
|
5398
5388
|
}
|
|
5399
|
-
else if (command.topic === "
|
|
5389
|
+
else if (command.topic === "app init") {
|
|
5400
5390
|
io.stdout(artifactsInitHelp());
|
|
5401
5391
|
}
|
|
5402
|
-
else if (command.topic === "
|
|
5392
|
+
else if (command.topic === "app doctor") {
|
|
5403
5393
|
io.stdout(doctorHelp());
|
|
5404
5394
|
}
|
|
5405
|
-
else if (command.topic === "
|
|
5395
|
+
else if (command.topic === "app generate-env-types") {
|
|
5406
5396
|
io.stdout(generateEnvTypesHelp());
|
|
5407
5397
|
}
|
|
5408
|
-
else if (command.topic === "
|
|
5398
|
+
else if (command.topic === "app list") {
|
|
5409
5399
|
io.stdout(artifactsListHelp());
|
|
5410
5400
|
}
|
|
5411
|
-
else if (command.topic === "
|
|
5401
|
+
else if (command.topic === "app context fetch") {
|
|
5412
5402
|
io.stdout(artifactsContextFetchHelp());
|
|
5413
5403
|
}
|
|
5414
|
-
else if (command.topic === "
|
|
5404
|
+
else if (command.topic === "app context status") {
|
|
5415
5405
|
io.stdout(artifactsContextStatusHelp());
|
|
5416
5406
|
}
|
|
5417
|
-
else if (command.topic === "
|
|
5407
|
+
else if (command.topic === "app context refresh") {
|
|
5418
5408
|
io.stdout(artifactsContextRefreshHelp());
|
|
5419
5409
|
}
|
|
5420
|
-
else if (command.topic === "
|
|
5410
|
+
else if (command.topic === "app bindings outbound") {
|
|
5421
5411
|
io.stdout(bindingsOutboundHelp());
|
|
5422
5412
|
}
|
|
5423
|
-
else if (command.topic === "
|
|
5413
|
+
else if (command.topic === "app git setup") {
|
|
5424
5414
|
io.stdout(gitSetupHelp());
|
|
5425
5415
|
}
|
|
5426
|
-
else if (command.topic === "
|
|
5416
|
+
else if (command.topic === "app git credential") {
|
|
5427
5417
|
io.stdout(gitCredentialHelp());
|
|
5428
5418
|
}
|
|
5429
|
-
else if (command.topic === "
|
|
5419
|
+
else if (command.topic === "app git remote") {
|
|
5430
5420
|
io.stdout(gitRemoteHelp());
|
|
5431
5421
|
}
|
|
5432
|
-
else if (command.topic === "
|
|
5422
|
+
else if (command.topic === "app validate") {
|
|
5433
5423
|
io.stdout(validateHelp());
|
|
5434
5424
|
}
|
|
5435
|
-
else if (command.topic === "
|
|
5425
|
+
else if (command.topic === "app build") {
|
|
5436
5426
|
io.stdout(buildHelp());
|
|
5437
5427
|
}
|
|
5438
|
-
else if (command.topic === "
|
|
5428
|
+
else if (command.topic === "app preview rebuild") {
|
|
5439
5429
|
io.stdout(previewRebuildHelp());
|
|
5440
5430
|
}
|
|
5441
|
-
else if (command.topic === "
|
|
5431
|
+
else if (command.topic === "app preview status") {
|
|
5442
5432
|
io.stdout(previewStatusHelp());
|
|
5443
5433
|
}
|
|
5444
|
-
else if (command.topic === "
|
|
5434
|
+
else if (command.topic === "app preview watch") {
|
|
5445
5435
|
io.stdout(previewWatchHelp());
|
|
5446
5436
|
}
|
|
5447
|
-
else if (command.topic === "
|
|
5437
|
+
else if (command.topic === "app publish") {
|
|
5448
5438
|
io.stdout(publishHelp());
|
|
5449
5439
|
}
|
|
5450
|
-
else if (command.topic === "
|
|
5440
|
+
else if (command.topic === "app publish status") {
|
|
5451
5441
|
io.stdout(publishStatusHelp());
|
|
5452
5442
|
}
|
|
5453
|
-
else if (command.topic === "
|
|
5443
|
+
else if (command.topic === "app publish watch") {
|
|
5454
5444
|
io.stdout(publishWatchHelp());
|
|
5455
5445
|
}
|
|
5456
|
-
else if (command.topic === "
|
|
5446
|
+
else if (command.topic === "app analytics") {
|
|
5457
5447
|
io.stdout(analyticsHelp());
|
|
5458
5448
|
}
|
|
5459
|
-
else if (command.topic === "
|
|
5449
|
+
else if (command.topic === "app analytics summary") {
|
|
5460
5450
|
io.stdout(analyticsSummaryHelp());
|
|
5461
5451
|
}
|
|
5462
|
-
else if (command.topic === "
|
|
5452
|
+
else if (command.topic === "app analytics query") {
|
|
5463
5453
|
io.stdout(analyticsQueryHelp());
|
|
5464
5454
|
}
|
|
5465
|
-
else if (command.topic === "
|
|
5455
|
+
else if (command.topic === "app analytics capabilities") {
|
|
5466
5456
|
io.stdout(analyticsCapabilitiesHelp());
|
|
5467
5457
|
}
|
|
5468
|
-
else if (command.topic === "
|
|
5458
|
+
else if (command.topic === "app analytics suggestions") {
|
|
5469
5459
|
io.stdout(analyticsSuggestionsHelp());
|
|
5470
5460
|
}
|
|
5471
|
-
else if (command.topic === "
|
|
5461
|
+
else if (command.topic === "app analytics dashboards") {
|
|
5472
5462
|
io.stdout(analyticsDashboardsHelp());
|
|
5473
5463
|
}
|
|
5474
|
-
else if (command.topic === "
|
|
5464
|
+
else if (command.topic === "app analytics export") {
|
|
5475
5465
|
io.stdout(analyticsExportHelp());
|
|
5476
5466
|
}
|
|
5477
|
-
else if (command.topic === "
|
|
5467
|
+
else if (command.topic === "app analytics export catalog") {
|
|
5478
5468
|
io.stdout(analyticsExportCatalogHelp());
|
|
5479
5469
|
}
|
|
5480
|
-
else if (command.topic === "
|
|
5470
|
+
else if (command.topic === "app analytics export query") {
|
|
5481
5471
|
io.stdout(analyticsExportQueryHelp());
|
|
5482
5472
|
}
|
|
5483
|
-
else if (command.topic === "
|
|
5473
|
+
else if (command.topic === "app analytics charts create") {
|
|
5484
5474
|
io.stdout(analyticsChartsCreateHelp());
|
|
5485
5475
|
}
|
|
5486
|
-
else if (command.topic === "
|
|
5487
|
-
io.stdout(
|
|
5476
|
+
else if (command.topic === "app") {
|
|
5477
|
+
io.stdout(appHelp());
|
|
5488
5478
|
}
|
|
5489
5479
|
else {
|
|
5490
5480
|
io.stdout(rootHelp());
|
|
@@ -5500,88 +5490,88 @@ export async function runTenderCli(args, io = {
|
|
|
5500
5490
|
if (command.command === "auth status") {
|
|
5501
5491
|
return await runAuthStatus(command, io, runtime);
|
|
5502
5492
|
}
|
|
5503
|
-
if (command.command === "
|
|
5493
|
+
if (command.command === "app list") {
|
|
5504
5494
|
return await runArtifactsList(command, io, runtime);
|
|
5505
5495
|
}
|
|
5506
|
-
if (command.command === "
|
|
5496
|
+
if (command.command === "app create") {
|
|
5507
5497
|
return await runArtifactsCreate(command, io, runtime);
|
|
5508
5498
|
}
|
|
5509
|
-
if (command.command === "
|
|
5499
|
+
if (command.command === "app update") {
|
|
5510
5500
|
return await runArtifactsUpdate(command, io, runtime);
|
|
5511
5501
|
}
|
|
5512
|
-
if (command.command === "
|
|
5502
|
+
if (command.command === "app init") {
|
|
5513
5503
|
return await runArtifactsInit(command, io, runtime);
|
|
5514
5504
|
}
|
|
5515
|
-
if (command.command === "
|
|
5505
|
+
if (command.command === "app generate-env-types") {
|
|
5516
5506
|
return await runGenerateEnvTypes(command, io);
|
|
5517
5507
|
}
|
|
5518
|
-
if (command.command === "
|
|
5508
|
+
if (command.command === "app context fetch") {
|
|
5519
5509
|
return await runContextFetch(command, io, runtime);
|
|
5520
5510
|
}
|
|
5521
|
-
if (command.command === "
|
|
5511
|
+
if (command.command === "app context status") {
|
|
5522
5512
|
return await runContextStatus(command, io, runtime);
|
|
5523
5513
|
}
|
|
5524
|
-
if (command.command === "
|
|
5514
|
+
if (command.command === "app context refresh") {
|
|
5525
5515
|
return await runContextFetch(command, io, runtime);
|
|
5526
5516
|
}
|
|
5527
|
-
if (command.command === "
|
|
5517
|
+
if (command.command === "app bindings outbound") {
|
|
5528
5518
|
return runBindingsOutbound(command, io);
|
|
5529
5519
|
}
|
|
5530
|
-
if (command.command === "
|
|
5520
|
+
if (command.command === "app git setup") {
|
|
5531
5521
|
return await runGitSetup(command, io, runtime);
|
|
5532
5522
|
}
|
|
5533
|
-
if (command.command === "
|
|
5523
|
+
if (command.command === "app git credential") {
|
|
5534
5524
|
return await runGitCredential(command, io, runtime);
|
|
5535
5525
|
}
|
|
5536
|
-
if (command.command === "
|
|
5526
|
+
if (command.command === "app validate") {
|
|
5537
5527
|
return await runValidate(command, io, runtime);
|
|
5538
5528
|
}
|
|
5539
|
-
if (command.command === "
|
|
5529
|
+
if (command.command === "app build") {
|
|
5540
5530
|
return await runBuild(command, io, runtime);
|
|
5541
5531
|
}
|
|
5542
|
-
if (command.command === "
|
|
5532
|
+
if (command.command === "app preview rebuild") {
|
|
5543
5533
|
return await runPreviewRebuild(command, io, runtime);
|
|
5544
5534
|
}
|
|
5545
|
-
if (command.command === "
|
|
5535
|
+
if (command.command === "app preview status") {
|
|
5546
5536
|
return await runPreviewStatus(command, io, runtime);
|
|
5547
5537
|
}
|
|
5548
|
-
if (command.command === "
|
|
5538
|
+
if (command.command === "app preview watch") {
|
|
5549
5539
|
return await runPreviewWatch(command, io, runtime);
|
|
5550
5540
|
}
|
|
5551
|
-
if (command.command === "
|
|
5541
|
+
if (command.command === "app publish") {
|
|
5552
5542
|
return await runPublish(command, io, runtime);
|
|
5553
5543
|
}
|
|
5554
|
-
if (command.command === "
|
|
5544
|
+
if (command.command === "app publish status") {
|
|
5555
5545
|
return await runPublishStatus(command, io, runtime);
|
|
5556
5546
|
}
|
|
5557
|
-
if (command.command === "
|
|
5547
|
+
if (command.command === "app publish watch") {
|
|
5558
5548
|
return await runPublishWatch(command, io, runtime);
|
|
5559
5549
|
}
|
|
5560
|
-
if (command.command === "
|
|
5550
|
+
if (command.command === "app analytics summary") {
|
|
5561
5551
|
return await runAnalyticsSummary(command, io, runtime);
|
|
5562
5552
|
}
|
|
5563
|
-
if (command.command === "
|
|
5553
|
+
if (command.command === "app analytics query") {
|
|
5564
5554
|
return await runAnalyticsQuery(command, io, runtime);
|
|
5565
5555
|
}
|
|
5566
|
-
if (command.command === "
|
|
5556
|
+
if (command.command === "app analytics capabilities") {
|
|
5567
5557
|
return await runAnalyticsCapabilities(command, io, runtime);
|
|
5568
5558
|
}
|
|
5569
|
-
if (command.command === "
|
|
5559
|
+
if (command.command === "app analytics suggestions") {
|
|
5570
5560
|
return await runAnalyticsSuggestions(command, io, runtime);
|
|
5571
5561
|
}
|
|
5572
|
-
if (command.command === "
|
|
5562
|
+
if (command.command === "app analytics dashboards") {
|
|
5573
5563
|
return await runAnalyticsDashboards(command, io, runtime);
|
|
5574
5564
|
}
|
|
5575
|
-
if (command.command === "
|
|
5565
|
+
if (command.command === "app analytics export catalog") {
|
|
5576
5566
|
return await runAnalyticsExportCatalog(command, io, runtime);
|
|
5577
5567
|
}
|
|
5578
|
-
if (command.command === "
|
|
5568
|
+
if (command.command === "app analytics export query") {
|
|
5579
5569
|
return await runAnalyticsExportQuery(command, io, runtime);
|
|
5580
5570
|
}
|
|
5581
|
-
if (command.command === "
|
|
5571
|
+
if (command.command === "app analytics charts create") {
|
|
5582
5572
|
return await runAnalyticsChartsCreate(command, io, runtime);
|
|
5583
5573
|
}
|
|
5584
|
-
if (command.command === "
|
|
5574
|
+
if (command.command === "app git remote") {
|
|
5585
5575
|
return await runGitRemote(command, io, runtime);
|
|
5586
5576
|
}
|
|
5587
5577
|
return await runDoctor(command, io);
|
|
@@ -5594,7 +5584,7 @@ export async function runTenderCli(args, io = {
|
|
|
5594
5584
|
}
|
|
5595
5585
|
const currentFile = fileURLToPath(import.meta.url);
|
|
5596
5586
|
function shouldReadEntrypointStdin(args) {
|
|
5597
|
-
return (
|
|
5587
|
+
return (args[0] === "app" &&
|
|
5598
5588
|
((args[1] === "git" && args[2] === "credential") ||
|
|
5599
5589
|
(args[1] === "analytics" && args.includes("--spec") && args.includes("-"))));
|
|
5600
5590
|
}
|