@uniformdev/cli 19.214.0 → 19.214.1-alpha.17
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.mjs
CHANGED
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
import * as dotenv from "dotenv";
|
|
23
|
-
import
|
|
23
|
+
import yargs34 from "yargs";
|
|
24
24
|
import { hideBin } from "yargs/helpers";
|
|
25
25
|
|
|
26
26
|
// src/commands/canvas/index.ts
|
|
27
|
-
import
|
|
27
|
+
import yargs17 from "yargs";
|
|
28
28
|
|
|
29
29
|
// src/commands/canvas/commands/asset.ts
|
|
30
30
|
import yargs from "yargs";
|
|
@@ -580,12 +580,12 @@ function getFileClient(options) {
|
|
|
580
580
|
var AssetGetModule = {
|
|
581
581
|
command: "get <id>",
|
|
582
582
|
describe: "Get an asset",
|
|
583
|
-
builder: (
|
|
583
|
+
builder: (yargs35) => withConfiguration(
|
|
584
584
|
withDebugOptions(
|
|
585
585
|
withFormatOptions(
|
|
586
586
|
withApiOptions(
|
|
587
587
|
withProjectOptions(
|
|
588
|
-
|
|
588
|
+
yargs35.positional("id", { demandOption: true, describe: "Asset ID to fetch" })
|
|
589
589
|
)
|
|
590
590
|
)
|
|
591
591
|
)
|
|
@@ -606,7 +606,7 @@ var AssetGetModule = {
|
|
|
606
606
|
var AssetListModule = {
|
|
607
607
|
command: "list",
|
|
608
608
|
describe: "List assets",
|
|
609
|
-
builder: (
|
|
609
|
+
builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
|
|
610
610
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
611
611
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
612
612
|
const client = getAssetClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -618,7 +618,6 @@ var AssetListModule = {
|
|
|
618
618
|
// src/files/index.ts
|
|
619
619
|
import { preferredType } from "@thi.ng/mime";
|
|
620
620
|
import { FILE_READY_STATE, getFileNameFromUrl } from "@uniformdev/files";
|
|
621
|
-
import { createHash } from "crypto";
|
|
622
621
|
import { fileTypeFromBuffer } from "file-type";
|
|
623
622
|
import fsj from "fs-jetpack";
|
|
624
623
|
import sizeOf from "image-size";
|
|
@@ -742,20 +741,16 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
742
741
|
let objectAsString = JSON.stringify(object);
|
|
743
742
|
const uniformFileUrlMatches = getUniformFileUrlMatches(objectAsString);
|
|
744
743
|
const writeDirectory = getFilesDirectory(options.directory);
|
|
745
|
-
const isPackage = isPathAPackageFile(options.directory);
|
|
746
|
-
const legacyWriteDirectory = isPackage ? dirname(options.directory) : options.directory;
|
|
747
744
|
if (uniformFileUrlMatches) {
|
|
748
745
|
const fileUploadQueue = new PQueue({ concurrency: 3 });
|
|
749
746
|
for (const match of uniformFileUrlMatches) {
|
|
750
747
|
const url = match[1];
|
|
751
748
|
const hash = urlToHash(url);
|
|
752
|
-
const legacyHash = legacyUrlToHash(url);
|
|
753
749
|
fileUploadQueue.add(async () => {
|
|
754
750
|
try {
|
|
755
751
|
const fileAlreadyExistsChecks = await Promise.all([
|
|
756
752
|
options.fileClient.get({ url }).catch(() => null),
|
|
757
|
-
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
758
|
-
options.fileClient.get({ sourceId: legacyHash }).catch(() => null)
|
|
753
|
+
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
759
754
|
]);
|
|
760
755
|
const file = fileAlreadyExistsChecks.find((check) => check !== null);
|
|
761
756
|
if (file) {
|
|
@@ -763,13 +758,8 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
763
758
|
return;
|
|
764
759
|
}
|
|
765
760
|
const localFileName = urlToFileName(url);
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
if (!fileExistsLocally) {
|
|
769
|
-
const localFileName2 = legacyUrlToFileName(url);
|
|
770
|
-
expectedFilePath = join2(legacyWriteDirectory, FILES_DIRECTORY_NAME, localFileName2);
|
|
771
|
-
fileExistsLocally = await fsj.existsAsync(expectedFilePath);
|
|
772
|
-
}
|
|
761
|
+
const expectedFilePath = join2(writeDirectory, FILES_DIRECTORY_NAME, localFileName);
|
|
762
|
+
const fileExistsLocally = await fsj.existsAsync(expectedFilePath);
|
|
773
763
|
if (!fileExistsLocally) {
|
|
774
764
|
console.warn(
|
|
775
765
|
`Skipping file ${url} as we couldn't find a local copy (looked at ${expectedFilePath})`
|
|
@@ -860,13 +850,11 @@ var swapOutUniformFileUrlsForTargetProject = async (object, options) => {
|
|
|
860
850
|
for (const match of uniformFileUrlMatches) {
|
|
861
851
|
const url = match[1];
|
|
862
852
|
const hash = urlToHash(url);
|
|
863
|
-
const legacyHash = legacyUrlToHash(url);
|
|
864
853
|
fileUrlReplacementQueue.add(async () => {
|
|
865
854
|
try {
|
|
866
855
|
const fileAlreadyExistsChecks = await Promise.all([
|
|
867
856
|
options.fileClient.get({ url }).catch(() => null),
|
|
868
|
-
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
869
|
-
options.fileClient.get({ sourceId: legacyHash }).catch(() => null)
|
|
857
|
+
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
870
858
|
]);
|
|
871
859
|
const file = fileAlreadyExistsChecks.find((check) => check !== null);
|
|
872
860
|
if (!file) {
|
|
@@ -938,16 +926,6 @@ var updateAssetFileIdBasedOnUrl = async (asset, options) => {
|
|
|
938
926
|
};
|
|
939
927
|
return asset;
|
|
940
928
|
};
|
|
941
|
-
var legacyUrlToHash = (url) => {
|
|
942
|
-
const hash = createHash("sha256");
|
|
943
|
-
hash.update(url);
|
|
944
|
-
return hash.digest("hex");
|
|
945
|
-
};
|
|
946
|
-
var legacyUrlToFileName = (url) => {
|
|
947
|
-
const fileName = legacyUrlToHash(url);
|
|
948
|
-
const fileExtension = urlToFileExtension(url);
|
|
949
|
-
return `${fileName}${fileExtension ? `.${fileExtension}` : ""}`;
|
|
950
|
-
};
|
|
951
929
|
|
|
952
930
|
// src/commands/canvas/assetEngineDataSource.ts
|
|
953
931
|
import { convertAssetToPutAsset } from "@uniformdev/assets";
|
|
@@ -965,8 +943,8 @@ function prepCompositionForDisk(composition) {
|
|
|
965
943
|
delete prepped.state;
|
|
966
944
|
return prepped;
|
|
967
945
|
}
|
|
968
|
-
function withStateOptions(
|
|
969
|
-
return
|
|
946
|
+
function withStateOptions(yargs35, defaultState = "preview") {
|
|
947
|
+
return yargs35.option("state", {
|
|
970
948
|
type: "string",
|
|
971
949
|
describe: `State to fetch.`,
|
|
972
950
|
choices: ["preview", "published"],
|
|
@@ -1048,12 +1026,12 @@ function writeCanvasPackage(filename, packageContents) {
|
|
|
1048
1026
|
var AssetPullModule = {
|
|
1049
1027
|
command: "pull <directory>",
|
|
1050
1028
|
describe: "Pulls all assets to local files in a directory",
|
|
1051
|
-
builder: (
|
|
1029
|
+
builder: (yargs35) => withConfiguration(
|
|
1052
1030
|
withApiOptions(
|
|
1053
1031
|
withDebugOptions(
|
|
1054
1032
|
withProjectOptions(
|
|
1055
1033
|
withDiffOptions(
|
|
1056
|
-
|
|
1034
|
+
yargs35.positional("directory", {
|
|
1057
1035
|
describe: "Directory to save the assets to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
1058
1036
|
type: "string"
|
|
1059
1037
|
}).option("format", {
|
|
@@ -1167,12 +1145,12 @@ var AssetPullModule = {
|
|
|
1167
1145
|
var AssetPushModule = {
|
|
1168
1146
|
command: "push <directory>",
|
|
1169
1147
|
describe: "Pushes all assets from files in a directory to Uniform",
|
|
1170
|
-
builder: (
|
|
1148
|
+
builder: (yargs35) => withConfiguration(
|
|
1171
1149
|
withApiOptions(
|
|
1172
1150
|
withDebugOptions(
|
|
1173
1151
|
withProjectOptions(
|
|
1174
1152
|
withDiffOptions(
|
|
1175
|
-
|
|
1153
|
+
yargs35.positional("directory", {
|
|
1176
1154
|
describe: "Directory to read the assets from. If a filename is used, a package will be read instead.",
|
|
1177
1155
|
type: "string"
|
|
1178
1156
|
}).option("mode", {
|
|
@@ -1296,10 +1274,10 @@ var AssetRemoveModule = {
|
|
|
1296
1274
|
command: "remove <id>",
|
|
1297
1275
|
aliases: ["delete", "rm"],
|
|
1298
1276
|
describe: "Delete an asset",
|
|
1299
|
-
builder: (
|
|
1277
|
+
builder: (yargs35) => withConfiguration(
|
|
1300
1278
|
withDebugOptions(
|
|
1301
1279
|
withApiOptions(
|
|
1302
|
-
withProjectOptions(
|
|
1280
|
+
withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Asset ID to delete" }))
|
|
1303
1281
|
)
|
|
1304
1282
|
)
|
|
1305
1283
|
),
|
|
@@ -1320,11 +1298,11 @@ var AssetUpdateModule = {
|
|
|
1320
1298
|
command: "update <filename>",
|
|
1321
1299
|
aliases: ["put"],
|
|
1322
1300
|
describe: "Insert or update an asset",
|
|
1323
|
-
builder: (
|
|
1301
|
+
builder: (yargs35) => withConfiguration(
|
|
1324
1302
|
withDebugOptions(
|
|
1325
1303
|
withApiOptions(
|
|
1326
1304
|
withProjectOptions(
|
|
1327
|
-
|
|
1305
|
+
yargs35.positional("filename", { demandOption: true, describe: "Asset file to put" })
|
|
1328
1306
|
)
|
|
1329
1307
|
)
|
|
1330
1308
|
)
|
|
@@ -1350,7 +1328,7 @@ var AssetUpdateModule = {
|
|
|
1350
1328
|
var AssetModule = {
|
|
1351
1329
|
command: "asset <command>",
|
|
1352
1330
|
describe: "Commands for Assets",
|
|
1353
|
-
builder: (
|
|
1331
|
+
builder: (yargs35) => yargs35.command(AssetGetModule).command(AssetListModule).command(AssetRemoveModule).command(AssetUpdateModule).command(AssetPullModule).command(AssetPushModule).demandCommand(),
|
|
1354
1332
|
handler: () => {
|
|
1355
1333
|
yargs.help();
|
|
1356
1334
|
}
|
|
@@ -1371,12 +1349,12 @@ function getCategoryClient(options) {
|
|
|
1371
1349
|
var CategoryGetModule = {
|
|
1372
1350
|
command: "get <id>",
|
|
1373
1351
|
describe: "Fetch a category",
|
|
1374
|
-
builder: (
|
|
1352
|
+
builder: (yargs35) => withConfiguration(
|
|
1375
1353
|
withFormatOptions(
|
|
1376
1354
|
withDebugOptions(
|
|
1377
1355
|
withApiOptions(
|
|
1378
1356
|
withProjectOptions(
|
|
1379
|
-
|
|
1357
|
+
yargs35.positional("id", { demandOption: true, describe: "Category UUID to fetch" })
|
|
1380
1358
|
)
|
|
1381
1359
|
)
|
|
1382
1360
|
)
|
|
@@ -1401,8 +1379,8 @@ var CategoryListModule = {
|
|
|
1401
1379
|
command: "list",
|
|
1402
1380
|
describe: "List categories",
|
|
1403
1381
|
aliases: ["ls"],
|
|
1404
|
-
builder: (
|
|
1405
|
-
withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(
|
|
1382
|
+
builder: (yargs35) => withConfiguration(
|
|
1383
|
+
withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs35.options({})))))
|
|
1406
1384
|
),
|
|
1407
1385
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
1408
1386
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -1446,12 +1424,12 @@ function createCategoriesEngineDataSource({
|
|
|
1446
1424
|
var CategoryPullModule = {
|
|
1447
1425
|
command: "pull <directory>",
|
|
1448
1426
|
describe: "Pulls all categories to local files in a directory",
|
|
1449
|
-
builder: (
|
|
1427
|
+
builder: (yargs35) => withConfiguration(
|
|
1450
1428
|
withApiOptions(
|
|
1451
1429
|
withProjectOptions(
|
|
1452
1430
|
withDiffOptions(
|
|
1453
1431
|
withDebugOptions(
|
|
1454
|
-
|
|
1432
|
+
yargs35.positional("directory", {
|
|
1455
1433
|
describe: "Directory to save the categories to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
1456
1434
|
type: "string"
|
|
1457
1435
|
}).option("format", {
|
|
@@ -1526,12 +1504,12 @@ var CategoryPullModule = {
|
|
|
1526
1504
|
var CategoryPushModule = {
|
|
1527
1505
|
command: "push <directory>",
|
|
1528
1506
|
describe: "Pushes all categories from files in a directory to Uniform Canvas",
|
|
1529
|
-
builder: (
|
|
1507
|
+
builder: (yargs35) => withConfiguration(
|
|
1530
1508
|
withApiOptions(
|
|
1531
1509
|
withDebugOptions(
|
|
1532
1510
|
withProjectOptions(
|
|
1533
1511
|
withDiffOptions(
|
|
1534
|
-
|
|
1512
|
+
yargs35.positional("directory", {
|
|
1535
1513
|
describe: "Directory to read the categories from. If a filename is used, a package will be read instead.",
|
|
1536
1514
|
type: "string"
|
|
1537
1515
|
}).option("mode", {
|
|
@@ -1595,11 +1573,11 @@ var CategoryRemoveModule = {
|
|
|
1595
1573
|
command: "remove <id>",
|
|
1596
1574
|
aliases: ["delete", "rm"],
|
|
1597
1575
|
describe: "Delete a category",
|
|
1598
|
-
builder: (
|
|
1576
|
+
builder: (yargs35) => withConfiguration(
|
|
1599
1577
|
withApiOptions(
|
|
1600
1578
|
withDebugOptions(
|
|
1601
1579
|
withProjectOptions(
|
|
1602
|
-
|
|
1580
|
+
yargs35.positional("id", { demandOption: true, describe: "Category UUID to delete" })
|
|
1603
1581
|
)
|
|
1604
1582
|
)
|
|
1605
1583
|
)
|
|
@@ -1620,11 +1598,11 @@ var CategoryUpdateModule = {
|
|
|
1620
1598
|
command: "update <filename>",
|
|
1621
1599
|
aliases: ["put"],
|
|
1622
1600
|
describe: "Insert or update a category",
|
|
1623
|
-
builder: (
|
|
1601
|
+
builder: (yargs35) => withConfiguration(
|
|
1624
1602
|
withApiOptions(
|
|
1625
1603
|
withDebugOptions(
|
|
1626
1604
|
withProjectOptions(
|
|
1627
|
-
|
|
1605
|
+
yargs35.positional("filename", { demandOption: true, describe: "Category file to put" })
|
|
1628
1606
|
)
|
|
1629
1607
|
)
|
|
1630
1608
|
)
|
|
@@ -1646,7 +1624,7 @@ var CategoryModule = {
|
|
|
1646
1624
|
command: "category <command>",
|
|
1647
1625
|
aliases: ["cat"],
|
|
1648
1626
|
describe: "Commands for Canvas categories",
|
|
1649
|
-
builder: (
|
|
1627
|
+
builder: (yargs35) => yargs35.command(CategoryPullModule).command(CategoryPushModule).command(CategoryGetModule).command(CategoryRemoveModule).command(CategoryListModule).command(CategoryUpdateModule).demandCommand(),
|
|
1650
1628
|
handler: () => {
|
|
1651
1629
|
yargs2.help();
|
|
1652
1630
|
}
|
|
@@ -1668,12 +1646,12 @@ function getCanvasClient(options) {
|
|
|
1668
1646
|
var ComponentGetModule = {
|
|
1669
1647
|
command: "get <id>",
|
|
1670
1648
|
describe: "Fetch a component definition",
|
|
1671
|
-
builder: (
|
|
1649
|
+
builder: (yargs35) => withConfiguration(
|
|
1672
1650
|
withFormatOptions(
|
|
1673
1651
|
withDebugOptions(
|
|
1674
1652
|
withApiOptions(
|
|
1675
1653
|
withProjectOptions(
|
|
1676
|
-
|
|
1654
|
+
yargs35.positional("id", {
|
|
1677
1655
|
demandOption: true,
|
|
1678
1656
|
describe: "Component definition public ID to fetch"
|
|
1679
1657
|
})
|
|
@@ -1707,12 +1685,12 @@ var ComponentListModule = {
|
|
|
1707
1685
|
command: "list",
|
|
1708
1686
|
describe: "List component definitions",
|
|
1709
1687
|
aliases: ["ls"],
|
|
1710
|
-
builder: (
|
|
1688
|
+
builder: (yargs35) => withConfiguration(
|
|
1711
1689
|
withFormatOptions(
|
|
1712
1690
|
withDebugOptions(
|
|
1713
1691
|
withApiOptions(
|
|
1714
1692
|
withProjectOptions(
|
|
1715
|
-
|
|
1693
|
+
yargs35.options({
|
|
1716
1694
|
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
1717
1695
|
limit: { describe: "Number of rows to fetch", type: "number", default: 20 }
|
|
1718
1696
|
})
|
|
@@ -1776,12 +1754,12 @@ function createComponentDefinitionEngineDataSource({
|
|
|
1776
1754
|
var ComponentPullModule = {
|
|
1777
1755
|
command: "pull <directory>",
|
|
1778
1756
|
describe: "Pulls all component definitions to local files in a directory",
|
|
1779
|
-
builder: (
|
|
1757
|
+
builder: (yargs35) => withConfiguration(
|
|
1780
1758
|
withApiOptions(
|
|
1781
1759
|
withDebugOptions(
|
|
1782
1760
|
withProjectOptions(
|
|
1783
1761
|
withDiffOptions(
|
|
1784
|
-
|
|
1762
|
+
yargs35.positional("directory", {
|
|
1785
1763
|
describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
1786
1764
|
type: "string"
|
|
1787
1765
|
}).option("format", {
|
|
@@ -1857,12 +1835,12 @@ var ComponentPullModule = {
|
|
|
1857
1835
|
var ComponentPushModule = {
|
|
1858
1836
|
command: "push <directory>",
|
|
1859
1837
|
describe: "Pushes all component definitions from files in a directory to Uniform Canvas",
|
|
1860
|
-
builder: (
|
|
1838
|
+
builder: (yargs35) => withConfiguration(
|
|
1861
1839
|
withApiOptions(
|
|
1862
1840
|
withDebugOptions(
|
|
1863
1841
|
withProjectOptions(
|
|
1864
1842
|
withDiffOptions(
|
|
1865
|
-
|
|
1843
|
+
yargs35.positional("directory", {
|
|
1866
1844
|
describe: "Directory to read the component definitions from. If a filename is used, a package will be read instead.",
|
|
1867
1845
|
type: "string"
|
|
1868
1846
|
}).option("mode", {
|
|
@@ -1927,11 +1905,11 @@ var ComponentRemoveModule = {
|
|
|
1927
1905
|
command: "remove <id>",
|
|
1928
1906
|
aliases: ["delete", "rm"],
|
|
1929
1907
|
describe: "Delete a component definition",
|
|
1930
|
-
builder: (
|
|
1908
|
+
builder: (yargs35) => withConfiguration(
|
|
1931
1909
|
withDebugOptions(
|
|
1932
1910
|
withApiOptions(
|
|
1933
1911
|
withProjectOptions(
|
|
1934
|
-
|
|
1912
|
+
yargs35.positional("id", {
|
|
1935
1913
|
demandOption: true,
|
|
1936
1914
|
describe: "Component definition public ID to delete"
|
|
1937
1915
|
})
|
|
@@ -1955,11 +1933,11 @@ var ComponentUpdateModule = {
|
|
|
1955
1933
|
command: "update <filename>",
|
|
1956
1934
|
aliases: ["put"],
|
|
1957
1935
|
describe: "Insert or update a component definition",
|
|
1958
|
-
builder: (
|
|
1936
|
+
builder: (yargs35) => withConfiguration(
|
|
1959
1937
|
withApiOptions(
|
|
1960
1938
|
withDebugOptions(
|
|
1961
1939
|
withProjectOptions(
|
|
1962
|
-
|
|
1940
|
+
yargs35.positional("filename", { demandOption: true, describe: "Component definition file to put" })
|
|
1963
1941
|
)
|
|
1964
1942
|
)
|
|
1965
1943
|
)
|
|
@@ -1981,7 +1959,7 @@ var ComponentModule = {
|
|
|
1981
1959
|
command: "component <command>",
|
|
1982
1960
|
aliases: ["def"],
|
|
1983
1961
|
describe: "Commands for Canvas component definitions",
|
|
1984
|
-
builder: (
|
|
1962
|
+
builder: (yargs35) => yargs35.command(ComponentPullModule).command(ComponentPushModule).command(ComponentGetModule).command(ComponentRemoveModule).command(ComponentListModule).command(ComponentUpdateModule).demandCommand(),
|
|
1985
1963
|
handler: () => {
|
|
1986
1964
|
yargs3.help();
|
|
1987
1965
|
}
|
|
@@ -1994,13 +1972,13 @@ import yargs4 from "yargs";
|
|
|
1994
1972
|
var CompositionGetModule = {
|
|
1995
1973
|
command: "get <id>",
|
|
1996
1974
|
describe: "Fetch a composition",
|
|
1997
|
-
builder: (
|
|
1975
|
+
builder: (yargs35) => withFormatOptions(
|
|
1998
1976
|
withConfiguration(
|
|
1999
1977
|
withApiOptions(
|
|
2000
1978
|
withProjectOptions(
|
|
2001
1979
|
withStateOptions(
|
|
2002
1980
|
withDebugOptions(
|
|
2003
|
-
|
|
1981
|
+
yargs35.positional("id", {
|
|
2004
1982
|
demandOption: true,
|
|
2005
1983
|
describe: "Composition/pattern public ID to fetch"
|
|
2006
1984
|
}).option({
|
|
@@ -2090,13 +2068,13 @@ var CompositionListModule = {
|
|
|
2090
2068
|
command: "list",
|
|
2091
2069
|
describe: "List compositions",
|
|
2092
2070
|
aliases: ["ls"],
|
|
2093
|
-
builder: (
|
|
2071
|
+
builder: (yargs35) => withFormatOptions(
|
|
2094
2072
|
withConfiguration(
|
|
2095
2073
|
withApiOptions(
|
|
2096
2074
|
withProjectOptions(
|
|
2097
2075
|
withDebugOptions(
|
|
2098
2076
|
withStateOptions(
|
|
2099
|
-
|
|
2077
|
+
yargs35.options({
|
|
2100
2078
|
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
2101
2079
|
limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
|
|
2102
2080
|
search: { describe: "Search query", type: "string", default: "" },
|
|
@@ -2177,13 +2155,13 @@ var CompositionListModule = {
|
|
|
2177
2155
|
var ComponentPatternListModule = {
|
|
2178
2156
|
...CompositionListModule,
|
|
2179
2157
|
describe: "List component patterns",
|
|
2180
|
-
builder: (
|
|
2158
|
+
builder: (yargs35) => withFormatOptions(
|
|
2181
2159
|
withConfiguration(
|
|
2182
2160
|
withApiOptions(
|
|
2183
2161
|
withDebugOptions(
|
|
2184
2162
|
withProjectOptions(
|
|
2185
2163
|
withStateOptions(
|
|
2186
|
-
|
|
2164
|
+
yargs35.options({
|
|
2187
2165
|
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
2188
2166
|
limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
|
|
2189
2167
|
resolvePatterns: {
|
|
@@ -2306,12 +2284,12 @@ function createComponentInstanceEngineDataSource({
|
|
|
2306
2284
|
var CompositionPublishModule = {
|
|
2307
2285
|
command: "publish [ids]",
|
|
2308
2286
|
describe: "Publishes composition(s)",
|
|
2309
|
-
builder: (
|
|
2287
|
+
builder: (yargs35) => withConfiguration(
|
|
2310
2288
|
withApiOptions(
|
|
2311
2289
|
withProjectOptions(
|
|
2312
2290
|
withDebugOptions(
|
|
2313
2291
|
withDiffOptions(
|
|
2314
|
-
|
|
2292
|
+
yargs35.positional("ids", {
|
|
2315
2293
|
describe: "Publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
2316
2294
|
type: "string"
|
|
2317
2295
|
}).option("all", {
|
|
@@ -2388,12 +2366,12 @@ var CompositionPublishModule = {
|
|
|
2388
2366
|
var ComponentPatternPublishModule = {
|
|
2389
2367
|
...CompositionPublishModule,
|
|
2390
2368
|
describe: "Publishes component pattern(s)",
|
|
2391
|
-
builder: (
|
|
2369
|
+
builder: (yargs35) => withConfiguration(
|
|
2392
2370
|
withApiOptions(
|
|
2393
2371
|
withDebugOptions(
|
|
2394
2372
|
withProjectOptions(
|
|
2395
2373
|
withDiffOptions(
|
|
2396
|
-
|
|
2374
|
+
yargs35.positional("ids", {
|
|
2397
2375
|
describe: "Publishes component pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
2398
2376
|
type: "string"
|
|
2399
2377
|
}).option("all", {
|
|
@@ -2431,13 +2409,13 @@ var ComponentPatternPublishModule = {
|
|
|
2431
2409
|
var CompositionPullModule = {
|
|
2432
2410
|
command: "pull <directory>",
|
|
2433
2411
|
describe: "Pulls all compositions to local files in a directory",
|
|
2434
|
-
builder: (
|
|
2412
|
+
builder: (yargs35) => withConfiguration(
|
|
2435
2413
|
withApiOptions(
|
|
2436
2414
|
withProjectOptions(
|
|
2437
2415
|
withStateOptions(
|
|
2438
2416
|
withDebugOptions(
|
|
2439
2417
|
withDiffOptions(
|
|
2440
|
-
|
|
2418
|
+
yargs35.positional("directory", {
|
|
2441
2419
|
describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
2442
2420
|
type: "string"
|
|
2443
2421
|
}).option("format", {
|
|
@@ -2546,13 +2524,13 @@ var CompositionPullModule = {
|
|
|
2546
2524
|
var ComponentPatternPullModule = {
|
|
2547
2525
|
...CompositionPullModule,
|
|
2548
2526
|
describe: "Pulls all component patterns to local files in a directory",
|
|
2549
|
-
builder: (
|
|
2527
|
+
builder: (yargs35) => withConfiguration(
|
|
2550
2528
|
withApiOptions(
|
|
2551
2529
|
withProjectOptions(
|
|
2552
2530
|
withDebugOptions(
|
|
2553
2531
|
withStateOptions(
|
|
2554
2532
|
withDiffOptions(
|
|
2555
|
-
|
|
2533
|
+
yargs35.positional("directory", {
|
|
2556
2534
|
describe: "Directory to save the component definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
2557
2535
|
type: "string"
|
|
2558
2536
|
}).option("format", {
|
|
@@ -2595,13 +2573,13 @@ var ComponentPatternPullModule = {
|
|
|
2595
2573
|
var CompositionPushModule = {
|
|
2596
2574
|
command: "push <directory>",
|
|
2597
2575
|
describe: "Pushes all compositions from files in a directory to Uniform Canvas",
|
|
2598
|
-
builder: (
|
|
2576
|
+
builder: (yargs35) => withConfiguration(
|
|
2599
2577
|
withApiOptions(
|
|
2600
2578
|
withProjectOptions(
|
|
2601
2579
|
withStateOptions(
|
|
2602
2580
|
withDebugOptions(
|
|
2603
2581
|
withDiffOptions(
|
|
2604
|
-
|
|
2582
|
+
yargs35.positional("directory", {
|
|
2605
2583
|
describe: "Directory to read the compositions/patterns from. If a filename is used, a package will be read instead.",
|
|
2606
2584
|
type: "string"
|
|
2607
2585
|
}).option("mode", {
|
|
@@ -2698,13 +2676,13 @@ var CompositionPushModule = {
|
|
|
2698
2676
|
var ComponentPatternPushModule = {
|
|
2699
2677
|
...CompositionPushModule,
|
|
2700
2678
|
describe: "Pushes all component patterns from files in a directory to Uniform Canvas",
|
|
2701
|
-
builder: (
|
|
2679
|
+
builder: (yargs35) => withConfiguration(
|
|
2702
2680
|
withApiOptions(
|
|
2703
2681
|
withProjectOptions(
|
|
2704
2682
|
withStateOptions(
|
|
2705
2683
|
withDiffOptions(
|
|
2706
2684
|
withDebugOptions(
|
|
2707
|
-
|
|
2685
|
+
yargs35.positional("directory", {
|
|
2708
2686
|
describe: "Directory to read the compositions/component patterns from. If a filename is used, a package will be read instead.",
|
|
2709
2687
|
type: "string"
|
|
2710
2688
|
}).option("mode", {
|
|
@@ -2737,11 +2715,11 @@ var CompositionRemoveModule = {
|
|
|
2737
2715
|
command: "remove <id>",
|
|
2738
2716
|
aliases: ["delete", "rm"],
|
|
2739
2717
|
describe: "Delete a composition",
|
|
2740
|
-
builder: (
|
|
2718
|
+
builder: (yargs35) => withConfiguration(
|
|
2741
2719
|
withApiOptions(
|
|
2742
2720
|
withDebugOptions(
|
|
2743
2721
|
withProjectOptions(
|
|
2744
|
-
|
|
2722
|
+
yargs35.positional("id", {
|
|
2745
2723
|
demandOption: true,
|
|
2746
2724
|
describe: "Composition/pattern public ID to delete"
|
|
2747
2725
|
})
|
|
@@ -2775,11 +2753,11 @@ import { diffJson as diffJson2 } from "diff";
|
|
|
2775
2753
|
var CompositionUnpublishModule = {
|
|
2776
2754
|
command: "unpublish [ids]",
|
|
2777
2755
|
describe: "Unpublish a composition(s)",
|
|
2778
|
-
builder: (
|
|
2756
|
+
builder: (yargs35) => withConfiguration(
|
|
2779
2757
|
withApiOptions(
|
|
2780
2758
|
withDebugOptions(
|
|
2781
2759
|
withProjectOptions(
|
|
2782
|
-
|
|
2760
|
+
yargs35.positional("ids", {
|
|
2783
2761
|
describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
2784
2762
|
type: "string"
|
|
2785
2763
|
}).option("all", {
|
|
@@ -2876,11 +2854,11 @@ var CompositionUnpublishModule = {
|
|
|
2876
2854
|
var ComponentPatternUnpublishModule = {
|
|
2877
2855
|
command: "unpublish [ids]",
|
|
2878
2856
|
describe: "Unpublish a component pattern(s)",
|
|
2879
|
-
builder: (
|
|
2857
|
+
builder: (yargs35) => withConfiguration(
|
|
2880
2858
|
withApiOptions(
|
|
2881
2859
|
withDebugOptions(
|
|
2882
2860
|
withProjectOptions(
|
|
2883
|
-
|
|
2861
|
+
yargs35.positional("ids", {
|
|
2884
2862
|
describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
2885
2863
|
type: "string"
|
|
2886
2864
|
}).option("all", {
|
|
@@ -2914,12 +2892,12 @@ var CompositionUpdateModule = {
|
|
|
2914
2892
|
command: "update <filename>",
|
|
2915
2893
|
aliases: ["put"],
|
|
2916
2894
|
describe: "Insert or update a composition",
|
|
2917
|
-
builder: (
|
|
2895
|
+
builder: (yargs35) => withConfiguration(
|
|
2918
2896
|
withApiOptions(
|
|
2919
2897
|
withProjectOptions(
|
|
2920
2898
|
withDebugOptions(
|
|
2921
2899
|
withStateOptions(
|
|
2922
|
-
|
|
2900
|
+
yargs35.positional("filename", {
|
|
2923
2901
|
demandOption: true,
|
|
2924
2902
|
describe: "Composition/pattern file to put"
|
|
2925
2903
|
})
|
|
@@ -2957,7 +2935,7 @@ var ComponentPatternUpdateModule = {
|
|
|
2957
2935
|
var ComponentPatternModule = {
|
|
2958
2936
|
command: "component-pattern <command>",
|
|
2959
2937
|
describe: "Commands for Canvas component patterns",
|
|
2960
|
-
builder: (
|
|
2938
|
+
builder: (yargs35) => yargs35.command(ComponentPatternPullModule).command(ComponentPatternPushModule).command(ComponentPatternGetModule).command(ComponentPatternRemoveModule).command(ComponentPatternListModule).command(ComponentPatternUpdateModule).command(ComponentPatternPublishModule).command(ComponentPatternUnpublishModule).demandCommand(),
|
|
2961
2939
|
handler: () => {
|
|
2962
2940
|
yargs4.help();
|
|
2963
2941
|
}
|
|
@@ -2969,7 +2947,7 @@ var CompositionModule = {
|
|
|
2969
2947
|
command: "composition <command>",
|
|
2970
2948
|
describe: "Commands for Canvas compositions",
|
|
2971
2949
|
aliases: ["comp"],
|
|
2972
|
-
builder: (
|
|
2950
|
+
builder: (yargs35) => yargs35.command(CompositionPullModule).command(CompositionPushModule).command(CompositionGetModule).command(CompositionRemoveModule).command(CompositionListModule).command(CompositionUpdateModule).command(CompositionPublishModule).command(CompositionUnpublishModule).demandCommand(),
|
|
2973
2951
|
handler: () => {
|
|
2974
2952
|
yargs5.help();
|
|
2975
2953
|
}
|
|
@@ -2988,13 +2966,13 @@ var CompositionPatternGetModule = {
|
|
|
2988
2966
|
var CompositionPatternListModule = {
|
|
2989
2967
|
...CompositionListModule,
|
|
2990
2968
|
describe: "List composition patterns",
|
|
2991
|
-
builder: (
|
|
2969
|
+
builder: (yargs35) => withFormatOptions(
|
|
2992
2970
|
withConfiguration(
|
|
2993
2971
|
withApiOptions(
|
|
2994
2972
|
withDebugOptions(
|
|
2995
2973
|
withProjectOptions(
|
|
2996
2974
|
withStateOptions(
|
|
2997
|
-
|
|
2975
|
+
yargs35.options({
|
|
2998
2976
|
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
2999
2977
|
limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
|
|
3000
2978
|
resolvePatterns: {
|
|
@@ -3038,12 +3016,12 @@ var CompositionPatternListModule = {
|
|
|
3038
3016
|
var CompositionPatternPublishModule = {
|
|
3039
3017
|
...CompositionPublishModule,
|
|
3040
3018
|
describe: "Publishes composition pattern(s)",
|
|
3041
|
-
builder: (
|
|
3019
|
+
builder: (yargs35) => withConfiguration(
|
|
3042
3020
|
withApiOptions(
|
|
3043
3021
|
withDebugOptions(
|
|
3044
3022
|
withProjectOptions(
|
|
3045
3023
|
withDiffOptions(
|
|
3046
|
-
|
|
3024
|
+
yargs35.positional("ids", {
|
|
3047
3025
|
describe: "Publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
3048
3026
|
type: "string"
|
|
3049
3027
|
}).option("all", {
|
|
@@ -3082,13 +3060,13 @@ var CompositionPatternPublishModule = {
|
|
|
3082
3060
|
var CompositionPatternPullModule = {
|
|
3083
3061
|
...CompositionPullModule,
|
|
3084
3062
|
describe: "Pulls all composition patterns to local files in a directory",
|
|
3085
|
-
builder: (
|
|
3063
|
+
builder: (yargs35) => withConfiguration(
|
|
3086
3064
|
withApiOptions(
|
|
3087
3065
|
withDebugOptions(
|
|
3088
3066
|
withProjectOptions(
|
|
3089
3067
|
withStateOptions(
|
|
3090
3068
|
withDiffOptions(
|
|
3091
|
-
|
|
3069
|
+
yargs35.positional("directory", {
|
|
3092
3070
|
describe: "Directory to save the composition patterns to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
3093
3071
|
type: "string"
|
|
3094
3072
|
}).option("format", {
|
|
@@ -3126,13 +3104,13 @@ var CompositionPatternPullModule = {
|
|
|
3126
3104
|
var CompositionPatternPushModule = {
|
|
3127
3105
|
...CompositionPushModule,
|
|
3128
3106
|
describe: "Pushes all composition patterns from files in a directory to Uniform Canvas",
|
|
3129
|
-
builder: (
|
|
3107
|
+
builder: (yargs35) => withConfiguration(
|
|
3130
3108
|
withApiOptions(
|
|
3131
3109
|
withDebugOptions(
|
|
3132
3110
|
withProjectOptions(
|
|
3133
3111
|
withStateOptions(
|
|
3134
3112
|
withDiffOptions(
|
|
3135
|
-
|
|
3113
|
+
yargs35.positional("directory", {
|
|
3136
3114
|
describe: "Directory to read the compositions patterns from. If a filename is used, a package will be read instead.",
|
|
3137
3115
|
type: "string"
|
|
3138
3116
|
}).option("mode", {
|
|
@@ -3170,11 +3148,11 @@ var CompositionPatternRemoveModule = {
|
|
|
3170
3148
|
var CompositionPatternUnpublishModule = {
|
|
3171
3149
|
command: "unpublish [ids]",
|
|
3172
3150
|
describe: "Unpublish a composition pattern(s)",
|
|
3173
|
-
builder: (
|
|
3151
|
+
builder: (yargs35) => withConfiguration(
|
|
3174
3152
|
withApiOptions(
|
|
3175
3153
|
withDebugOptions(
|
|
3176
3154
|
withProjectOptions(
|
|
3177
|
-
|
|
3155
|
+
yargs35.positional("ids", {
|
|
3178
3156
|
describe: "Un-publishes composition pattern(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
3179
3157
|
type: "string"
|
|
3180
3158
|
}).option("all", {
|
|
@@ -3210,7 +3188,7 @@ var CompositionPatternUpdateModule = {
|
|
|
3210
3188
|
var CompositionPatternModule = {
|
|
3211
3189
|
command: "composition-pattern <command>",
|
|
3212
3190
|
describe: "Commands for Canvas composition patterns",
|
|
3213
|
-
builder: (
|
|
3191
|
+
builder: (yargs35) => yargs35.command(CompositionPatternPullModule).command(CompositionPatternPushModule).command(CompositionPatternGetModule).command(CompositionPatternRemoveModule).command(CompositionPatternListModule).command(CompositionPatternUpdateModule).command(CompositionPatternPublishModule).command(CompositionPatternUnpublishModule).demandCommand(),
|
|
3214
3192
|
handler: () => {
|
|
3215
3193
|
yargs6.help();
|
|
3216
3194
|
}
|
|
@@ -3231,12 +3209,12 @@ function getContentClient(options) {
|
|
|
3231
3209
|
var ContentTypeGetModule = {
|
|
3232
3210
|
command: "get <id>",
|
|
3233
3211
|
describe: "Get a content type",
|
|
3234
|
-
builder: (
|
|
3212
|
+
builder: (yargs35) => withConfiguration(
|
|
3235
3213
|
withDebugOptions(
|
|
3236
3214
|
withFormatOptions(
|
|
3237
3215
|
withApiOptions(
|
|
3238
3216
|
withProjectOptions(
|
|
3239
|
-
|
|
3217
|
+
yargs35.positional("id", {
|
|
3240
3218
|
demandOption: true,
|
|
3241
3219
|
describe: "Content type public ID to fetch"
|
|
3242
3220
|
})
|
|
@@ -3261,7 +3239,7 @@ var ContentTypeGetModule = {
|
|
|
3261
3239
|
var ContentTypeListModule = {
|
|
3262
3240
|
command: "list",
|
|
3263
3241
|
describe: "List content types",
|
|
3264
|
-
builder: (
|
|
3242
|
+
builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
|
|
3265
3243
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
3266
3244
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
3267
3245
|
const client = getContentClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -3302,12 +3280,12 @@ function createContentTypeEngineDataSource({
|
|
|
3302
3280
|
var ContentTypePullModule = {
|
|
3303
3281
|
command: "pull <directory>",
|
|
3304
3282
|
describe: "Pulls all content types to local files in a directory",
|
|
3305
|
-
builder: (
|
|
3283
|
+
builder: (yargs35) => withConfiguration(
|
|
3306
3284
|
withApiOptions(
|
|
3307
3285
|
withDebugOptions(
|
|
3308
3286
|
withProjectOptions(
|
|
3309
3287
|
withDiffOptions(
|
|
3310
|
-
|
|
3288
|
+
yargs35.positional("directory", {
|
|
3311
3289
|
describe: "Directory to save the content types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
3312
3290
|
type: "string"
|
|
3313
3291
|
}).option("format", {
|
|
@@ -3387,12 +3365,12 @@ var ContentTypePullModule = {
|
|
|
3387
3365
|
var ContentTypePushModule = {
|
|
3388
3366
|
command: "push <directory>",
|
|
3389
3367
|
describe: "Pushes all content types from files in a directory to Uniform",
|
|
3390
|
-
builder: (
|
|
3368
|
+
builder: (yargs35) => withConfiguration(
|
|
3391
3369
|
withApiOptions(
|
|
3392
3370
|
withDebugOptions(
|
|
3393
3371
|
withProjectOptions(
|
|
3394
3372
|
withDiffOptions(
|
|
3395
|
-
|
|
3373
|
+
yargs35.positional("directory", {
|
|
3396
3374
|
describe: "Directory to read the content types from. If a filename is used, a package will be read instead.",
|
|
3397
3375
|
type: "string"
|
|
3398
3376
|
}).option("what-if", {
|
|
@@ -3466,11 +3444,11 @@ var ContentTypeRemoveModule = {
|
|
|
3466
3444
|
command: "remove <id>",
|
|
3467
3445
|
aliases: ["delete", "rm"],
|
|
3468
3446
|
describe: "Delete a content type",
|
|
3469
|
-
builder: (
|
|
3447
|
+
builder: (yargs35) => withConfiguration(
|
|
3470
3448
|
withDebugOptions(
|
|
3471
3449
|
withApiOptions(
|
|
3472
3450
|
withProjectOptions(
|
|
3473
|
-
|
|
3451
|
+
yargs35.positional("id", { demandOption: true, describe: "Content type public ID to delete" })
|
|
3474
3452
|
)
|
|
3475
3453
|
)
|
|
3476
3454
|
)
|
|
@@ -3491,11 +3469,11 @@ var ContentTypeUpdateModule = {
|
|
|
3491
3469
|
command: "update <filename>",
|
|
3492
3470
|
aliases: ["put"],
|
|
3493
3471
|
describe: "Insert or update a content type",
|
|
3494
|
-
builder: (
|
|
3472
|
+
builder: (yargs35) => withConfiguration(
|
|
3495
3473
|
withDebugOptions(
|
|
3496
3474
|
withApiOptions(
|
|
3497
3475
|
withProjectOptions(
|
|
3498
|
-
|
|
3476
|
+
yargs35.positional("filename", { demandOption: true, describe: "Content type file to put" })
|
|
3499
3477
|
)
|
|
3500
3478
|
)
|
|
3501
3479
|
)
|
|
@@ -3517,7 +3495,7 @@ var ContentTypeModule = {
|
|
|
3517
3495
|
command: "contenttype <command>",
|
|
3518
3496
|
aliases: ["ct"],
|
|
3519
3497
|
describe: "Commands for Content Types",
|
|
3520
|
-
builder: (
|
|
3498
|
+
builder: (yargs35) => yargs35.command(ContentTypeGetModule).command(ContentTypeListModule).command(ContentTypeRemoveModule).command(ContentTypeUpdateModule).command(ContentTypePullModule).command(ContentTypePushModule).demandCommand(),
|
|
3521
3499
|
handler: () => {
|
|
3522
3500
|
yargs7.help();
|
|
3523
3501
|
}
|
|
@@ -3536,11 +3514,11 @@ function getDataSourceClient(options) {
|
|
|
3536
3514
|
var DataSourceGetModule = {
|
|
3537
3515
|
command: "get <id>",
|
|
3538
3516
|
describe: "Get a data source by ID and writes to stdout. Please note this may contain secret data, use discretion.",
|
|
3539
|
-
builder: (
|
|
3517
|
+
builder: (yargs35) => withConfiguration(
|
|
3540
3518
|
withApiOptions(
|
|
3541
3519
|
withDebugOptions(
|
|
3542
3520
|
withProjectOptions(
|
|
3543
|
-
|
|
3521
|
+
yargs35.positional("id", { demandOption: true, describe: "Data source public ID to fetch" })
|
|
3544
3522
|
)
|
|
3545
3523
|
)
|
|
3546
3524
|
)
|
|
@@ -3558,11 +3536,11 @@ var DataSourceRemoveModule = {
|
|
|
3558
3536
|
command: "remove <id>",
|
|
3559
3537
|
aliases: ["delete", "rm"],
|
|
3560
3538
|
describe: "Delete a data source",
|
|
3561
|
-
builder: (
|
|
3539
|
+
builder: (yargs35) => withConfiguration(
|
|
3562
3540
|
withDebugOptions(
|
|
3563
3541
|
withApiOptions(
|
|
3564
3542
|
withProjectOptions(
|
|
3565
|
-
|
|
3543
|
+
yargs35.positional("id", { demandOption: true, describe: "Data source public ID to delete" })
|
|
3566
3544
|
)
|
|
3567
3545
|
)
|
|
3568
3546
|
)
|
|
@@ -3583,11 +3561,11 @@ var DataSourceUpdateModule = {
|
|
|
3583
3561
|
command: "update <dataSource>",
|
|
3584
3562
|
aliases: ["put"],
|
|
3585
3563
|
describe: "Insert or update a data source",
|
|
3586
|
-
builder: (
|
|
3564
|
+
builder: (yargs35) => withConfiguration(
|
|
3587
3565
|
withApiOptions(
|
|
3588
3566
|
withDebugOptions(
|
|
3589
3567
|
withProjectOptions(
|
|
3590
|
-
|
|
3568
|
+
yargs35.positional("dataSource", { demandOption: true, describe: "Data source JSON to put" }).option("integrationType", {
|
|
3591
3569
|
describe: "Integration type that exposes the connector type for this data source (as defined in integration manifest).",
|
|
3592
3570
|
type: "string",
|
|
3593
3571
|
demandOption: true
|
|
@@ -3622,7 +3600,7 @@ var DataSourceModule = {
|
|
|
3622
3600
|
command: "datasource <command>",
|
|
3623
3601
|
aliases: ["ds"],
|
|
3624
3602
|
describe: "Commands for Data Source definitions",
|
|
3625
|
-
builder: (
|
|
3603
|
+
builder: (yargs35) => yargs35.command(DataSourceGetModule).command(DataSourceRemoveModule).command(DataSourceUpdateModule).demandCommand(),
|
|
3626
3604
|
handler: () => {
|
|
3627
3605
|
yargs8.help();
|
|
3628
3606
|
}
|
|
@@ -3644,12 +3622,12 @@ var DataTypeGetModule = {
|
|
|
3644
3622
|
command: "get <id>",
|
|
3645
3623
|
describe: "Get a data type",
|
|
3646
3624
|
aliases: ["ls"],
|
|
3647
|
-
builder: (
|
|
3625
|
+
builder: (yargs35) => withConfiguration(
|
|
3648
3626
|
withFormatOptions(
|
|
3649
3627
|
withDebugOptions(
|
|
3650
3628
|
withApiOptions(
|
|
3651
3629
|
withProjectOptions(
|
|
3652
|
-
|
|
3630
|
+
yargs35.positional("id", { demandOption: true, describe: "Data type public ID to fetch" })
|
|
3653
3631
|
)
|
|
3654
3632
|
)
|
|
3655
3633
|
)
|
|
@@ -3672,7 +3650,7 @@ var DataTypeListModule = {
|
|
|
3672
3650
|
command: "list",
|
|
3673
3651
|
describe: "List data types",
|
|
3674
3652
|
aliases: ["ls"],
|
|
3675
|
-
builder: (
|
|
3653
|
+
builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
|
|
3676
3654
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
3677
3655
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
3678
3656
|
const client = getDataTypeClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -3715,12 +3693,12 @@ function createDataTypeEngineDataSource({
|
|
|
3715
3693
|
var DataTypePullModule = {
|
|
3716
3694
|
command: "pull <directory>",
|
|
3717
3695
|
describe: "Pulls all data types to local files in a directory",
|
|
3718
|
-
builder: (
|
|
3696
|
+
builder: (yargs35) => withConfiguration(
|
|
3719
3697
|
withApiOptions(
|
|
3720
3698
|
withDebugOptions(
|
|
3721
3699
|
withProjectOptions(
|
|
3722
3700
|
withDiffOptions(
|
|
3723
|
-
|
|
3701
|
+
yargs35.positional("directory", {
|
|
3724
3702
|
describe: "Directory to save the data types to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
3725
3703
|
type: "string"
|
|
3726
3704
|
}).option("format", {
|
|
@@ -3800,12 +3778,12 @@ var DataTypePullModule = {
|
|
|
3800
3778
|
var DataTypePushModule = {
|
|
3801
3779
|
command: "push <directory>",
|
|
3802
3780
|
describe: "Pushes all data types from files in a directory to Uniform",
|
|
3803
|
-
builder: (
|
|
3781
|
+
builder: (yargs35) => withConfiguration(
|
|
3804
3782
|
withApiOptions(
|
|
3805
3783
|
withDebugOptions(
|
|
3806
3784
|
withProjectOptions(
|
|
3807
3785
|
withDiffOptions(
|
|
3808
|
-
|
|
3786
|
+
yargs35.positional("directory", {
|
|
3809
3787
|
describe: "Directory to read the data types from. If a filename is used, a package will be read instead.",
|
|
3810
3788
|
type: "string"
|
|
3811
3789
|
}).option("mode", {
|
|
@@ -3874,11 +3852,11 @@ var DataTypeRemoveModule = {
|
|
|
3874
3852
|
command: "remove <id>",
|
|
3875
3853
|
aliases: ["delete", "rm"],
|
|
3876
3854
|
describe: "Delete a data type",
|
|
3877
|
-
builder: (
|
|
3855
|
+
builder: (yargs35) => withConfiguration(
|
|
3878
3856
|
withDebugOptions(
|
|
3879
3857
|
withApiOptions(
|
|
3880
3858
|
withProjectOptions(
|
|
3881
|
-
|
|
3859
|
+
yargs35.positional("id", { demandOption: true, describe: "Data type public ID to delete" })
|
|
3882
3860
|
)
|
|
3883
3861
|
)
|
|
3884
3862
|
)
|
|
@@ -3899,11 +3877,11 @@ var DataTypeUpdateModule = {
|
|
|
3899
3877
|
command: "update <filename>",
|
|
3900
3878
|
aliases: ["put"],
|
|
3901
3879
|
describe: "Insert or update a data type",
|
|
3902
|
-
builder: (
|
|
3880
|
+
builder: (yargs35) => withConfiguration(
|
|
3903
3881
|
withDebugOptions(
|
|
3904
3882
|
withApiOptions(
|
|
3905
3883
|
withProjectOptions(
|
|
3906
|
-
|
|
3884
|
+
yargs35.positional("filename", { demandOption: true, describe: "Data type file to put" })
|
|
3907
3885
|
)
|
|
3908
3886
|
)
|
|
3909
3887
|
)
|
|
@@ -3925,7 +3903,7 @@ var DataTypeModule = {
|
|
|
3925
3903
|
command: "datatype <command>",
|
|
3926
3904
|
aliases: ["dt"],
|
|
3927
3905
|
describe: "Commands for Data Type definitions",
|
|
3928
|
-
builder: (
|
|
3906
|
+
builder: (yargs35) => yargs35.command(DataTypeGetModule).command(DataTypePullModule).command(DataTypePushModule).command(DataTypeRemoveModule).command(DataTypeListModule).command(DataTypeUpdateModule).demandCommand(),
|
|
3929
3907
|
handler: () => {
|
|
3930
3908
|
yargs9.help();
|
|
3931
3909
|
}
|
|
@@ -3938,13 +3916,13 @@ import yargs10 from "yargs";
|
|
|
3938
3916
|
var EntryGetModule = {
|
|
3939
3917
|
command: "get <id>",
|
|
3940
3918
|
describe: "Get an entry",
|
|
3941
|
-
builder: (
|
|
3919
|
+
builder: (yargs35) => withConfiguration(
|
|
3942
3920
|
withDebugOptions(
|
|
3943
3921
|
withFormatOptions(
|
|
3944
3922
|
withApiOptions(
|
|
3945
3923
|
withProjectOptions(
|
|
3946
3924
|
withStateOptions(
|
|
3947
|
-
|
|
3925
|
+
yargs35.positional("id", { demandOption: true, describe: "Entry public ID to fetch" }).option({
|
|
3948
3926
|
resolveData: {
|
|
3949
3927
|
type: "boolean",
|
|
3950
3928
|
default: false,
|
|
@@ -4009,13 +3987,13 @@ var LEGACY_DEFAULT_LIMIT = 1e3;
|
|
|
4009
3987
|
var EntryListModule = {
|
|
4010
3988
|
command: "list",
|
|
4011
3989
|
describe: "List entries",
|
|
4012
|
-
builder: (
|
|
3990
|
+
builder: (yargs35) => withConfiguration(
|
|
4013
3991
|
withDebugOptions(
|
|
4014
3992
|
withFormatOptions(
|
|
4015
3993
|
withApiOptions(
|
|
4016
3994
|
withProjectOptions(
|
|
4017
3995
|
withStateOptions(
|
|
4018
|
-
|
|
3996
|
+
yargs35.options({
|
|
4019
3997
|
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
4020
3998
|
limit: {
|
|
4021
3999
|
describe: "Number of rows to fetch",
|
|
@@ -4143,12 +4121,12 @@ function createEntryEngineDataSource({
|
|
|
4143
4121
|
var EntryPublishModule = {
|
|
4144
4122
|
command: "publish [ids]",
|
|
4145
4123
|
describe: "Publishes entry(ies)",
|
|
4146
|
-
builder: (
|
|
4124
|
+
builder: (yargs35) => withConfiguration(
|
|
4147
4125
|
withDiffOptions(
|
|
4148
4126
|
withApiOptions(
|
|
4149
4127
|
withProjectOptions(
|
|
4150
4128
|
withDiffOptions(
|
|
4151
|
-
|
|
4129
|
+
yargs35.positional("ids", {
|
|
4152
4130
|
describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
4153
4131
|
type: "string"
|
|
4154
4132
|
}).option("all", {
|
|
@@ -4197,13 +4175,13 @@ var EntryPublishModule = {
|
|
|
4197
4175
|
var EntryPullModule = {
|
|
4198
4176
|
command: "pull <directory>",
|
|
4199
4177
|
describe: "Pulls all entries to local files in a directory",
|
|
4200
|
-
builder: (
|
|
4178
|
+
builder: (yargs35) => withConfiguration(
|
|
4201
4179
|
withDebugOptions(
|
|
4202
4180
|
withApiOptions(
|
|
4203
4181
|
withProjectOptions(
|
|
4204
4182
|
withStateOptions(
|
|
4205
4183
|
withDiffOptions(
|
|
4206
|
-
|
|
4184
|
+
yargs35.positional("directory", {
|
|
4207
4185
|
describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
4208
4186
|
type: "string"
|
|
4209
4187
|
}).option("format", {
|
|
@@ -4298,13 +4276,13 @@ var EntryPullModule = {
|
|
|
4298
4276
|
var EntryPushModule = {
|
|
4299
4277
|
command: "push <directory>",
|
|
4300
4278
|
describe: "Pushes all entries from files in a directory to Uniform",
|
|
4301
|
-
builder: (
|
|
4279
|
+
builder: (yargs35) => withConfiguration(
|
|
4302
4280
|
withDebugOptions(
|
|
4303
4281
|
withApiOptions(
|
|
4304
4282
|
withProjectOptions(
|
|
4305
4283
|
withStateOptions(
|
|
4306
4284
|
withDiffOptions(
|
|
4307
|
-
|
|
4285
|
+
yargs35.positional("directory", {
|
|
4308
4286
|
describe: "Directory to read the entries from. If a filename is used, a package will be read instead.",
|
|
4309
4287
|
type: "string"
|
|
4310
4288
|
}).option("mode", {
|
|
@@ -4387,11 +4365,11 @@ var EntryRemoveModule = {
|
|
|
4387
4365
|
command: "remove <id>",
|
|
4388
4366
|
aliases: ["delete", "rm"],
|
|
4389
4367
|
describe: "Delete an entry",
|
|
4390
|
-
builder: (
|
|
4368
|
+
builder: (yargs35) => withConfiguration(
|
|
4391
4369
|
withDebugOptions(
|
|
4392
4370
|
withApiOptions(
|
|
4393
4371
|
withProjectOptions(
|
|
4394
|
-
|
|
4372
|
+
yargs35.positional("id", { demandOption: true, describe: "Entry public ID to delete" })
|
|
4395
4373
|
)
|
|
4396
4374
|
)
|
|
4397
4375
|
)
|
|
@@ -4413,11 +4391,11 @@ import { diffJson as diffJson3 } from "diff";
|
|
|
4413
4391
|
var EntryUnpublishModule = {
|
|
4414
4392
|
command: "unpublish [ids]",
|
|
4415
4393
|
describe: "Unpublish an entry(ies)",
|
|
4416
|
-
builder: (
|
|
4394
|
+
builder: (yargs35) => withConfiguration(
|
|
4417
4395
|
withDebugOptions(
|
|
4418
4396
|
withApiOptions(
|
|
4419
4397
|
withProjectOptions(
|
|
4420
|
-
|
|
4398
|
+
yargs35.positional("ids", {
|
|
4421
4399
|
describe: "Un-publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
4422
4400
|
type: "string"
|
|
4423
4401
|
}).option("all", {
|
|
@@ -4487,12 +4465,12 @@ var EntryUpdateModule = {
|
|
|
4487
4465
|
command: "update <filename>",
|
|
4488
4466
|
aliases: ["put"],
|
|
4489
4467
|
describe: "Insert or update an entry",
|
|
4490
|
-
builder: (
|
|
4468
|
+
builder: (yargs35) => withConfiguration(
|
|
4491
4469
|
withDebugOptions(
|
|
4492
4470
|
withApiOptions(
|
|
4493
4471
|
withProjectOptions(
|
|
4494
4472
|
withStateOptions(
|
|
4495
|
-
|
|
4473
|
+
yargs35.positional("filename", { demandOption: true, describe: "Entry file to put" })
|
|
4496
4474
|
)
|
|
4497
4475
|
)
|
|
4498
4476
|
)
|
|
@@ -4524,7 +4502,7 @@ var EntryUpdateModule = {
|
|
|
4524
4502
|
var EntryModule = {
|
|
4525
4503
|
command: "entry <command>",
|
|
4526
4504
|
describe: "Commands for Entries",
|
|
4527
|
-
builder: (
|
|
4505
|
+
builder: (yargs35) => yargs35.command(EntryGetModule).command(EntryListModule).command(EntryRemoveModule).command(EntryUpdateModule).command(EntryPullModule).command(EntryPushModule).command(EntryPublishModule).command(EntryUnpublishModule).demandCommand(),
|
|
4528
4506
|
handler: () => {
|
|
4529
4507
|
yargs10.help();
|
|
4530
4508
|
}
|
|
@@ -4537,13 +4515,13 @@ import yargs11 from "yargs";
|
|
|
4537
4515
|
var EntryPatternGetModule = {
|
|
4538
4516
|
command: "get <id>",
|
|
4539
4517
|
describe: "Get an entry pattern",
|
|
4540
|
-
builder: (
|
|
4518
|
+
builder: (yargs35) => withConfiguration(
|
|
4541
4519
|
withDebugOptions(
|
|
4542
4520
|
withFormatOptions(
|
|
4543
4521
|
withApiOptions(
|
|
4544
4522
|
withProjectOptions(
|
|
4545
4523
|
withStateOptions(
|
|
4546
|
-
|
|
4524
|
+
yargs35.positional("id", {
|
|
4547
4525
|
demandOption: true,
|
|
4548
4526
|
describe: "Entry pattern public ID to fetch"
|
|
4549
4527
|
}),
|
|
@@ -4578,9 +4556,9 @@ var EntryPatternGetModule = {
|
|
|
4578
4556
|
var EntryPatternListModule = {
|
|
4579
4557
|
command: "list",
|
|
4580
4558
|
describe: "List entry patterns",
|
|
4581
|
-
builder: (
|
|
4559
|
+
builder: (yargs35) => withConfiguration(
|
|
4582
4560
|
withDebugOptions(
|
|
4583
|
-
withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(
|
|
4561
|
+
withFormatOptions(withApiOptions(withProjectOptions(withStateOptions(yargs35, "published"))))
|
|
4584
4562
|
)
|
|
4585
4563
|
),
|
|
4586
4564
|
handler: async ({
|
|
@@ -4613,12 +4591,12 @@ var EntryPatternListModule = {
|
|
|
4613
4591
|
var EntryPatternPublishModule = {
|
|
4614
4592
|
command: "publish [ids]",
|
|
4615
4593
|
describe: "Publishes entry pattern(s)",
|
|
4616
|
-
builder: (
|
|
4594
|
+
builder: (yargs35) => withConfiguration(
|
|
4617
4595
|
withDebugOptions(
|
|
4618
4596
|
withApiOptions(
|
|
4619
4597
|
withProjectOptions(
|
|
4620
4598
|
withDiffOptions(
|
|
4621
|
-
|
|
4599
|
+
yargs35.positional("ids", {
|
|
4622
4600
|
describe: "Publishes entry pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
4623
4601
|
type: "string"
|
|
4624
4602
|
}).option("all", {
|
|
@@ -4667,13 +4645,13 @@ var EntryPatternPublishModule = {
|
|
|
4667
4645
|
var EntryPatternPullModule = {
|
|
4668
4646
|
command: "pull <directory>",
|
|
4669
4647
|
describe: "Pulls all entry patterns to local files in a directory",
|
|
4670
|
-
builder: (
|
|
4648
|
+
builder: (yargs35) => withConfiguration(
|
|
4671
4649
|
withApiOptions(
|
|
4672
4650
|
withDebugOptions(
|
|
4673
4651
|
withProjectOptions(
|
|
4674
4652
|
withStateOptions(
|
|
4675
4653
|
withDiffOptions(
|
|
4676
|
-
|
|
4654
|
+
yargs35.positional("directory", {
|
|
4677
4655
|
describe: "Directory to save the entries to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
4678
4656
|
type: "string"
|
|
4679
4657
|
}).option("format", {
|
|
@@ -4768,13 +4746,13 @@ var EntryPatternPullModule = {
|
|
|
4768
4746
|
var EntryPatternPushModule = {
|
|
4769
4747
|
command: "push <directory>",
|
|
4770
4748
|
describe: "Pushes all entry patterns from files in a directory to Uniform",
|
|
4771
|
-
builder: (
|
|
4749
|
+
builder: (yargs35) => withConfiguration(
|
|
4772
4750
|
withDebugOptions(
|
|
4773
4751
|
withApiOptions(
|
|
4774
4752
|
withProjectOptions(
|
|
4775
4753
|
withStateOptions(
|
|
4776
4754
|
withDiffOptions(
|
|
4777
|
-
|
|
4755
|
+
yargs35.positional("directory", {
|
|
4778
4756
|
describe: "Directory to read the entry patterns from. If a filename is used, a package will be read instead.",
|
|
4779
4757
|
type: "string"
|
|
4780
4758
|
}).option("what-if", {
|
|
@@ -4862,11 +4840,11 @@ var EntryPatternRemoveModule = {
|
|
|
4862
4840
|
command: "remove <id>",
|
|
4863
4841
|
aliases: ["delete", "rm"],
|
|
4864
4842
|
describe: "Delete an entry pattern",
|
|
4865
|
-
builder: (
|
|
4843
|
+
builder: (yargs35) => withConfiguration(
|
|
4866
4844
|
withDebugOptions(
|
|
4867
4845
|
withApiOptions(
|
|
4868
4846
|
withProjectOptions(
|
|
4869
|
-
|
|
4847
|
+
yargs35.positional("id", { demandOption: true, describe: "Entry pattern public ID to delete" })
|
|
4870
4848
|
)
|
|
4871
4849
|
)
|
|
4872
4850
|
)
|
|
@@ -4888,11 +4866,11 @@ import { diffJson as diffJson4 } from "diff";
|
|
|
4888
4866
|
var EntryPatternUnpublishModule = {
|
|
4889
4867
|
command: "unpublish [ids]",
|
|
4890
4868
|
describe: "Unpublish an entry patterns",
|
|
4891
|
-
builder: (
|
|
4869
|
+
builder: (yargs35) => withConfiguration(
|
|
4892
4870
|
withDebugOptions(
|
|
4893
4871
|
withApiOptions(
|
|
4894
4872
|
withProjectOptions(
|
|
4895
|
-
|
|
4873
|
+
yargs35.positional("ids", {
|
|
4896
4874
|
describe: "Un-publishes entry patterns by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
4897
4875
|
type: "string"
|
|
4898
4876
|
}).option("all", {
|
|
@@ -4962,12 +4940,12 @@ var EntryPatternUpdateModule = {
|
|
|
4962
4940
|
command: "update <filename>",
|
|
4963
4941
|
aliases: ["put"],
|
|
4964
4942
|
describe: "Insert or update an entry pattern",
|
|
4965
|
-
builder: (
|
|
4943
|
+
builder: (yargs35) => withConfiguration(
|
|
4966
4944
|
withDebugOptions(
|
|
4967
4945
|
withApiOptions(
|
|
4968
4946
|
withProjectOptions(
|
|
4969
4947
|
withStateOptions(
|
|
4970
|
-
|
|
4948
|
+
yargs35.positional("filename", { demandOption: true, describe: "Entry pattern file to put" })
|
|
4971
4949
|
)
|
|
4972
4950
|
)
|
|
4973
4951
|
)
|
|
@@ -5003,7 +4981,7 @@ var EntryPatternUpdateModule = {
|
|
|
5003
4981
|
var EntryPatternModule = {
|
|
5004
4982
|
command: "entry-pattern <command>",
|
|
5005
4983
|
describe: "Commands for Entry patterns",
|
|
5006
|
-
builder: (
|
|
4984
|
+
builder: (yargs35) => yargs35.command(EntryPatternGetModule).command(EntryPatternListModule).command(EntryPatternRemoveModule).command(EntryPatternUpdateModule).command(EntryPatternPullModule).command(EntryPatternPushModule).command(EntryPatternPublishModule).command(EntryPatternUnpublishModule).demandCommand(),
|
|
5007
4985
|
handler: () => {
|
|
5008
4986
|
yargs11.help();
|
|
5009
4987
|
}
|
|
@@ -5052,12 +5030,12 @@ function getLocaleClient(options) {
|
|
|
5052
5030
|
var LocalePullModule = {
|
|
5053
5031
|
command: "pull <directory>",
|
|
5054
5032
|
describe: "Pulls all locales to local files in a directory",
|
|
5055
|
-
builder: (
|
|
5033
|
+
builder: (yargs35) => withConfiguration(
|
|
5056
5034
|
withDebugOptions(
|
|
5057
5035
|
withApiOptions(
|
|
5058
5036
|
withProjectOptions(
|
|
5059
5037
|
withDiffOptions(
|
|
5060
|
-
|
|
5038
|
+
yargs35.positional("directory", {
|
|
5061
5039
|
describe: "Directory to save the locales to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
5062
5040
|
type: "string"
|
|
5063
5041
|
}).option("format", {
|
|
@@ -5137,12 +5115,12 @@ var LocalePullModule = {
|
|
|
5137
5115
|
var LocalePushModule = {
|
|
5138
5116
|
command: "push <directory>",
|
|
5139
5117
|
describe: "Pushes all locales from files in a directory to Uniform",
|
|
5140
|
-
builder: (
|
|
5118
|
+
builder: (yargs35) => withConfiguration(
|
|
5141
5119
|
withDebugOptions(
|
|
5142
5120
|
withApiOptions(
|
|
5143
5121
|
withProjectOptions(
|
|
5144
5122
|
withDiffOptions(
|
|
5145
|
-
|
|
5123
|
+
yargs35.positional("directory", {
|
|
5146
5124
|
describe: "Directory to read the locales from. If a filename is used, a package will be read instead.",
|
|
5147
5125
|
type: "string"
|
|
5148
5126
|
}).option("mode", {
|
|
@@ -5210,241 +5188,14 @@ var LocalePushModule = {
|
|
|
5210
5188
|
var LocaleModule = {
|
|
5211
5189
|
command: "locale <command>",
|
|
5212
5190
|
describe: "Commands for locale definitions",
|
|
5213
|
-
builder: (
|
|
5191
|
+
builder: (yargs35) => yargs35.command(LocalePullModule).command(LocalePushModule),
|
|
5214
5192
|
handler: () => {
|
|
5215
5193
|
yargs12.help();
|
|
5216
5194
|
}
|
|
5217
5195
|
};
|
|
5218
5196
|
|
|
5219
|
-
// src/commands/canvas/commands/pattern.ts
|
|
5220
|
-
import yargs13 from "yargs";
|
|
5221
|
-
|
|
5222
|
-
// src/commands/canvas/commands/pattern/get.ts
|
|
5223
|
-
var PatternGetModule = {
|
|
5224
|
-
...CompositionGetModule,
|
|
5225
|
-
describe: "Fetch a pattern"
|
|
5226
|
-
};
|
|
5227
|
-
|
|
5228
|
-
// src/commands/canvas/commands/pattern/list.ts
|
|
5229
|
-
var PatternListModule = {
|
|
5230
|
-
...CompositionListModule,
|
|
5231
|
-
describe: "List patterns",
|
|
5232
|
-
builder: (yargs36) => withFormatOptions(
|
|
5233
|
-
withConfiguration(
|
|
5234
|
-
withApiOptions(
|
|
5235
|
-
withDebugOptions(
|
|
5236
|
-
withProjectOptions(
|
|
5237
|
-
withStateOptions(
|
|
5238
|
-
yargs36.options({
|
|
5239
|
-
offset: { describe: "Number of rows to skip before fetching", type: "number", default: 0 },
|
|
5240
|
-
limit: { describe: "Number of rows to fetch", type: "number", default: 20 },
|
|
5241
|
-
resolvePatterns: {
|
|
5242
|
-
type: "boolean",
|
|
5243
|
-
default: false,
|
|
5244
|
-
describe: "Resolve pattern references in the composition"
|
|
5245
|
-
},
|
|
5246
|
-
resolveOverrides: {
|
|
5247
|
-
type: "boolean",
|
|
5248
|
-
default: false,
|
|
5249
|
-
describe: "Resolves pattern overrides in the pattern and removes override definition data"
|
|
5250
|
-
},
|
|
5251
|
-
onlyPatterns: {
|
|
5252
|
-
describe: "Only pulling patterns and not compositions",
|
|
5253
|
-
// This default differentiate this list command from composition list command
|
|
5254
|
-
default: true,
|
|
5255
|
-
type: "boolean",
|
|
5256
|
-
hidden: true
|
|
5257
|
-
},
|
|
5258
|
-
componentIDs: {
|
|
5259
|
-
alias: ["componentIDs"],
|
|
5260
|
-
type: "boolean",
|
|
5261
|
-
default: false,
|
|
5262
|
-
describe: "Include individual component UIDs"
|
|
5263
|
-
}
|
|
5264
|
-
})
|
|
5265
|
-
)
|
|
5266
|
-
)
|
|
5267
|
-
)
|
|
5268
|
-
)
|
|
5269
|
-
)
|
|
5270
|
-
)
|
|
5271
|
-
};
|
|
5272
|
-
|
|
5273
|
-
// src/commands/canvas/commands/pattern/publish.ts
|
|
5274
|
-
var PatternPublishModule = {
|
|
5275
|
-
...CompositionPublishModule,
|
|
5276
|
-
describe: "Publishes pattern(s)",
|
|
5277
|
-
builder: (yargs36) => withConfiguration(
|
|
5278
|
-
withDebugOptions(
|
|
5279
|
-
withApiOptions(
|
|
5280
|
-
withProjectOptions(
|
|
5281
|
-
withDiffOptions(
|
|
5282
|
-
yargs36.positional("ids", {
|
|
5283
|
-
describe: "Publishes pattern(s) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
5284
|
-
type: "string"
|
|
5285
|
-
}).option("all", {
|
|
5286
|
-
alias: ["a"],
|
|
5287
|
-
describe: "Publishes all patterns. Use compositionId to publish one instead.",
|
|
5288
|
-
default: false,
|
|
5289
|
-
type: "boolean"
|
|
5290
|
-
}).option("publishingState", {
|
|
5291
|
-
describe: 'Publishing state to update to. Can be "published" or "preview".',
|
|
5292
|
-
default: "published",
|
|
5293
|
-
type: "string",
|
|
5294
|
-
hidden: true
|
|
5295
|
-
}).option("onlyCompositions", {
|
|
5296
|
-
describe: "Only publishing compositions and not patterns",
|
|
5297
|
-
default: false,
|
|
5298
|
-
type: "boolean"
|
|
5299
|
-
}).option("onlyPatterns", {
|
|
5300
|
-
describe: "Only pulling patterns and not compositions",
|
|
5301
|
-
default: true,
|
|
5302
|
-
type: "boolean",
|
|
5303
|
-
hidden: true
|
|
5304
|
-
})
|
|
5305
|
-
)
|
|
5306
|
-
)
|
|
5307
|
-
)
|
|
5308
|
-
)
|
|
5309
|
-
)
|
|
5310
|
-
};
|
|
5311
|
-
|
|
5312
|
-
// src/commands/canvas/commands/pattern/pull.ts
|
|
5313
|
-
var PatternPullModule = {
|
|
5314
|
-
...CompositionPullModule,
|
|
5315
|
-
describe: "Pulls all patterns to local files in a directory",
|
|
5316
|
-
builder: (yargs36) => withConfiguration(
|
|
5317
|
-
withDebugOptions(
|
|
5318
|
-
withApiOptions(
|
|
5319
|
-
withProjectOptions(
|
|
5320
|
-
withStateOptions(
|
|
5321
|
-
withDiffOptions(
|
|
5322
|
-
yargs36.positional("directory", {
|
|
5323
|
-
describe: "Directory to save the definitions to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
5324
|
-
type: "string"
|
|
5325
|
-
}).option("format", {
|
|
5326
|
-
alias: ["f"],
|
|
5327
|
-
describe: "Output format",
|
|
5328
|
-
default: "yaml",
|
|
5329
|
-
choices: ["yaml", "json"],
|
|
5330
|
-
type: "string"
|
|
5331
|
-
}).option("onlyPatterns", {
|
|
5332
|
-
describe: "Only pulling patterns and not compositions",
|
|
5333
|
-
// This default differentiate this list command from composition list command
|
|
5334
|
-
default: true,
|
|
5335
|
-
type: "boolean",
|
|
5336
|
-
hidden: true
|
|
5337
|
-
}).option("mode", {
|
|
5338
|
-
alias: ["m"],
|
|
5339
|
-
describe: 'What kind of changes can be made. "create" = create new files, update nothing. "createOrUpdate" = create new files, update existing, delete nothing. "mirror" = create, update, and delete to mirror state',
|
|
5340
|
-
choices: ["create", "createOrUpdate", "mirror"],
|
|
5341
|
-
default: "mirror",
|
|
5342
|
-
type: "string"
|
|
5343
|
-
})
|
|
5344
|
-
)
|
|
5345
|
-
)
|
|
5346
|
-
)
|
|
5347
|
-
)
|
|
5348
|
-
)
|
|
5349
|
-
)
|
|
5350
|
-
};
|
|
5351
|
-
|
|
5352
|
-
// src/commands/canvas/commands/pattern/push.ts
|
|
5353
|
-
var PatternPushModule = {
|
|
5354
|
-
...CompositionPushModule,
|
|
5355
|
-
describe: "Pushes all patterns from files in a directory to Uniform Canvas",
|
|
5356
|
-
builder: (yargs36) => withConfiguration(
|
|
5357
|
-
withDebugOptions(
|
|
5358
|
-
withApiOptions(
|
|
5359
|
-
withProjectOptions(
|
|
5360
|
-
withStateOptions(
|
|
5361
|
-
withDiffOptions(
|
|
5362
|
-
yargs36.positional("directory", {
|
|
5363
|
-
describe: "Directory to read the patterns from. If a filename is used, a package will be read instead.",
|
|
5364
|
-
type: "string"
|
|
5365
|
-
}).option("mode", {
|
|
5366
|
-
alias: ["m"],
|
|
5367
|
-
describe: 'What kind of changes can be made. "create" = create new, update nothing. "createOrUpdate" = create new, update existing, delete nothing. "mirror" = create, update, and delete',
|
|
5368
|
-
choices: ["create", "createOrUpdate", "mirror"],
|
|
5369
|
-
default: "mirror",
|
|
5370
|
-
type: "string"
|
|
5371
|
-
}).option("onlyPatterns", {
|
|
5372
|
-
describe: "Only pulling patterns and not compositions",
|
|
5373
|
-
// This default differentiate this list command from composition list command
|
|
5374
|
-
default: true,
|
|
5375
|
-
type: "boolean",
|
|
5376
|
-
hidden: true
|
|
5377
|
-
}).option("patternType", {
|
|
5378
|
-
default: "all",
|
|
5379
|
-
choices: ["all", "component", "composition"],
|
|
5380
|
-
hidden: true
|
|
5381
|
-
})
|
|
5382
|
-
)
|
|
5383
|
-
)
|
|
5384
|
-
)
|
|
5385
|
-
)
|
|
5386
|
-
)
|
|
5387
|
-
)
|
|
5388
|
-
};
|
|
5389
|
-
|
|
5390
|
-
// src/commands/canvas/commands/pattern/remove.ts
|
|
5391
|
-
var PatternRemoveModule = {
|
|
5392
|
-
...CompositionRemoveModule,
|
|
5393
|
-
describe: "Delete a pattern"
|
|
5394
|
-
};
|
|
5395
|
-
|
|
5396
|
-
// src/commands/canvas/commands/pattern/unpublish.ts
|
|
5397
|
-
var PatternUnpublishModule = {
|
|
5398
|
-
command: "unpublish [ids]",
|
|
5399
|
-
describe: "Unpublish a pattern(s)",
|
|
5400
|
-
builder: (yargs36) => withConfiguration(
|
|
5401
|
-
withDebugOptions(
|
|
5402
|
-
withApiOptions(
|
|
5403
|
-
withProjectOptions(
|
|
5404
|
-
yargs36.positional("ids", {
|
|
5405
|
-
describe: "Un-publishes composition(s) by ID. Comma-separate multiple IDs. Use --all to un-publish all instead.",
|
|
5406
|
-
type: "string"
|
|
5407
|
-
}).option("all", {
|
|
5408
|
-
alias: ["a"],
|
|
5409
|
-
describe: "Un-publishes all compositions. Use compositionId to publish one instead.",
|
|
5410
|
-
default: false,
|
|
5411
|
-
type: "boolean"
|
|
5412
|
-
}).option("onlyCompositions", {
|
|
5413
|
-
describe: "Only un-publishing compositions and not patterns",
|
|
5414
|
-
default: false,
|
|
5415
|
-
type: "boolean"
|
|
5416
|
-
}).option("onlyPatterns", {
|
|
5417
|
-
describe: "Only un-publishing patterns and not compositions",
|
|
5418
|
-
default: true,
|
|
5419
|
-
type: "boolean",
|
|
5420
|
-
hidden: true
|
|
5421
|
-
})
|
|
5422
|
-
)
|
|
5423
|
-
)
|
|
5424
|
-
)
|
|
5425
|
-
),
|
|
5426
|
-
handler: CompositionUnpublishModule.handler
|
|
5427
|
-
};
|
|
5428
|
-
|
|
5429
|
-
// src/commands/canvas/commands/pattern/update.ts
|
|
5430
|
-
var PatternUpdateModule = {
|
|
5431
|
-
...CompositionUpdateModule,
|
|
5432
|
-
describe: "Insert or update a pattern"
|
|
5433
|
-
};
|
|
5434
|
-
|
|
5435
|
-
// src/commands/canvas/commands/pattern.ts
|
|
5436
|
-
var PatternModule = {
|
|
5437
|
-
command: "pattern <command>",
|
|
5438
|
-
describe: "Commands for Canvas patterns",
|
|
5439
|
-
deprecated: 'will be removed in a future major release. Use "component-pattern" and "composition-pattern" instead.',
|
|
5440
|
-
builder: (yargs36) => yargs36.command(PatternPullModule).command(PatternPushModule).command(PatternGetModule).command(PatternRemoveModule).command(PatternListModule).command(PatternUpdateModule).command(PatternPublishModule).command(PatternUnpublishModule).demandCommand(),
|
|
5441
|
-
handler: () => {
|
|
5442
|
-
yargs13.help();
|
|
5443
|
-
}
|
|
5444
|
-
};
|
|
5445
|
-
|
|
5446
5197
|
// src/commands/canvas/commands/previewUrl.ts
|
|
5447
|
-
import
|
|
5198
|
+
import yargs13 from "yargs";
|
|
5448
5199
|
|
|
5449
5200
|
// src/commands/canvas/commands/previewUrl/_util.ts
|
|
5450
5201
|
import { PreviewClient } from "@uniformdev/canvas";
|
|
@@ -5458,12 +5209,12 @@ function getPreviewClient(options) {
|
|
|
5458
5209
|
var PreviewUrlGetModule = {
|
|
5459
5210
|
command: "get <id>",
|
|
5460
5211
|
describe: "Fetch a preview URL",
|
|
5461
|
-
builder: (
|
|
5212
|
+
builder: (yargs35) => withConfiguration(
|
|
5462
5213
|
withFormatOptions(
|
|
5463
5214
|
withDebugOptions(
|
|
5464
5215
|
withApiOptions(
|
|
5465
5216
|
withProjectOptions(
|
|
5466
|
-
|
|
5217
|
+
yargs35.positional("id", { demandOption: true, describe: "Preview URL UUID to fetch" })
|
|
5467
5218
|
)
|
|
5468
5219
|
)
|
|
5469
5220
|
)
|
|
@@ -5487,8 +5238,8 @@ var PreviewUrlListModule = {
|
|
|
5487
5238
|
command: "list",
|
|
5488
5239
|
describe: "List preview URLs",
|
|
5489
5240
|
aliases: ["ls"],
|
|
5490
|
-
builder: (
|
|
5491
|
-
withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(
|
|
5241
|
+
builder: (yargs35) => withConfiguration(
|
|
5242
|
+
withFormatOptions(withApiOptions(withDebugOptions(withProjectOptions(yargs35.options({})))))
|
|
5492
5243
|
),
|
|
5493
5244
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
5494
5245
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5530,12 +5281,12 @@ function createPreviewUrlEngineDataSource({
|
|
|
5530
5281
|
var PreviewUrlPullModule = {
|
|
5531
5282
|
command: "pull <directory>",
|
|
5532
5283
|
describe: "Pulls all preview urls to local files in a directory",
|
|
5533
|
-
builder: (
|
|
5284
|
+
builder: (yargs35) => withConfiguration(
|
|
5534
5285
|
withApiOptions(
|
|
5535
5286
|
withProjectOptions(
|
|
5536
5287
|
withDebugOptions(
|
|
5537
5288
|
withDiffOptions(
|
|
5538
|
-
|
|
5289
|
+
yargs35.positional("directory", {
|
|
5539
5290
|
describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
5540
5291
|
type: "string"
|
|
5541
5292
|
}).option("format", {
|
|
@@ -5610,12 +5361,12 @@ var PreviewUrlPullModule = {
|
|
|
5610
5361
|
var PreviewUrlPushModule = {
|
|
5611
5362
|
command: "push <directory>",
|
|
5612
5363
|
describe: "Pushes all preview urls from files in a directory to Uniform Canvas",
|
|
5613
|
-
builder: (
|
|
5364
|
+
builder: (yargs35) => withConfiguration(
|
|
5614
5365
|
withApiOptions(
|
|
5615
5366
|
withProjectOptions(
|
|
5616
5367
|
withDiffOptions(
|
|
5617
5368
|
withDebugOptions(
|
|
5618
|
-
|
|
5369
|
+
yargs35.positional("directory", {
|
|
5619
5370
|
describe: "Directory to read from. If a filename is used, a package will be read instead.",
|
|
5620
5371
|
type: "string"
|
|
5621
5372
|
}).option("mode", {
|
|
@@ -5679,11 +5430,11 @@ var PreviewUrlRemoveModule = {
|
|
|
5679
5430
|
command: "remove <id>",
|
|
5680
5431
|
aliases: ["delete", "rm"],
|
|
5681
5432
|
describe: "Delete a preview URL",
|
|
5682
|
-
builder: (
|
|
5433
|
+
builder: (yargs35) => withConfiguration(
|
|
5683
5434
|
withApiOptions(
|
|
5684
5435
|
withDebugOptions(
|
|
5685
5436
|
withProjectOptions(
|
|
5686
|
-
|
|
5437
|
+
yargs35.positional("id", { demandOption: true, describe: "Preview URL UUID to delete" })
|
|
5687
5438
|
)
|
|
5688
5439
|
)
|
|
5689
5440
|
)
|
|
@@ -5704,11 +5455,11 @@ var PreviewUrlUpdateModule = {
|
|
|
5704
5455
|
command: "update <filename>",
|
|
5705
5456
|
aliases: ["put"],
|
|
5706
5457
|
describe: "Insert or update a preview URL",
|
|
5707
|
-
builder: (
|
|
5458
|
+
builder: (yargs35) => withConfiguration(
|
|
5708
5459
|
withDebugOptions(
|
|
5709
5460
|
withApiOptions(
|
|
5710
5461
|
withProjectOptions(
|
|
5711
|
-
|
|
5462
|
+
yargs35.positional("filename", { demandOption: true, describe: "Category file to put" })
|
|
5712
5463
|
)
|
|
5713
5464
|
)
|
|
5714
5465
|
)
|
|
@@ -5730,25 +5481,25 @@ var PreviewUrlModule = {
|
|
|
5730
5481
|
command: "preview-url <command>",
|
|
5731
5482
|
aliases: ["pu"],
|
|
5732
5483
|
describe: "Commands for Canvas preview urls",
|
|
5733
|
-
builder: (
|
|
5484
|
+
builder: (yargs35) => yargs35.command(PreviewUrlPullModule).command(PreviewUrlPushModule).command(PreviewUrlGetModule).command(PreviewUrlRemoveModule).command(PreviewUrlListModule).command(PreviewUrlUpdateModule).demandCommand(),
|
|
5734
5485
|
handler: () => {
|
|
5735
|
-
|
|
5486
|
+
yargs13.help();
|
|
5736
5487
|
}
|
|
5737
5488
|
};
|
|
5738
5489
|
|
|
5739
5490
|
// src/commands/canvas/commands/previewViewport.ts
|
|
5740
|
-
import
|
|
5491
|
+
import yargs14 from "yargs";
|
|
5741
5492
|
|
|
5742
5493
|
// src/commands/canvas/commands/previewViewport/get.ts
|
|
5743
5494
|
var PreviewViewportGetModule = {
|
|
5744
5495
|
command: "get <id>",
|
|
5745
5496
|
describe: "Fetch a preview viewport",
|
|
5746
|
-
builder: (
|
|
5497
|
+
builder: (yargs35) => withConfiguration(
|
|
5747
5498
|
withFormatOptions(
|
|
5748
5499
|
withDebugOptions(
|
|
5749
5500
|
withApiOptions(
|
|
5750
5501
|
withProjectOptions(
|
|
5751
|
-
|
|
5502
|
+
yargs35.positional("id", { demandOption: true, describe: "Preview viewport UUID to fetch" })
|
|
5752
5503
|
)
|
|
5753
5504
|
)
|
|
5754
5505
|
)
|
|
@@ -5772,8 +5523,8 @@ var PreviewViewportListModule = {
|
|
|
5772
5523
|
command: "list",
|
|
5773
5524
|
describe: "List preview viewports",
|
|
5774
5525
|
aliases: ["ls"],
|
|
5775
|
-
builder: (
|
|
5776
|
-
withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(
|
|
5526
|
+
builder: (yargs35) => withConfiguration(
|
|
5527
|
+
withFormatOptions(withDebugOptions(withApiOptions(withProjectOptions(yargs35.options({})))))
|
|
5777
5528
|
),
|
|
5778
5529
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
5779
5530
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
@@ -5819,12 +5570,12 @@ function createPreviewViewportEngineDataSource({
|
|
|
5819
5570
|
var PreviewViewportPullModule = {
|
|
5820
5571
|
command: "pull <directory>",
|
|
5821
5572
|
describe: "Pulls all preview viewports to local files in a directory",
|
|
5822
|
-
builder: (
|
|
5573
|
+
builder: (yargs35) => withConfiguration(
|
|
5823
5574
|
withApiOptions(
|
|
5824
5575
|
withProjectOptions(
|
|
5825
5576
|
withDebugOptions(
|
|
5826
5577
|
withDiffOptions(
|
|
5827
|
-
|
|
5578
|
+
yargs35.positional("directory", {
|
|
5828
5579
|
describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
5829
5580
|
type: "string"
|
|
5830
5581
|
}).option("format", {
|
|
@@ -5899,12 +5650,12 @@ var PreviewViewportPullModule = {
|
|
|
5899
5650
|
var PreviewViewportPushModule = {
|
|
5900
5651
|
command: "push <directory>",
|
|
5901
5652
|
describe: "Pushes all preview viewports from files in a directory to Uniform Canvas",
|
|
5902
|
-
builder: (
|
|
5653
|
+
builder: (yargs35) => withConfiguration(
|
|
5903
5654
|
withApiOptions(
|
|
5904
5655
|
withProjectOptions(
|
|
5905
5656
|
withDiffOptions(
|
|
5906
5657
|
withDebugOptions(
|
|
5907
|
-
|
|
5658
|
+
yargs35.positional("directory", {
|
|
5908
5659
|
describe: "Directory to read from. If a filename is used, a package will be read instead.",
|
|
5909
5660
|
type: "string"
|
|
5910
5661
|
}).option("mode", {
|
|
@@ -5968,11 +5719,11 @@ var PreviewViewportRemoveModule = {
|
|
|
5968
5719
|
command: "remove <id>",
|
|
5969
5720
|
aliases: ["delete", "rm"],
|
|
5970
5721
|
describe: "Delete a preview viewport",
|
|
5971
|
-
builder: (
|
|
5722
|
+
builder: (yargs35) => withConfiguration(
|
|
5972
5723
|
withApiOptions(
|
|
5973
5724
|
withDebugOptions(
|
|
5974
5725
|
withProjectOptions(
|
|
5975
|
-
|
|
5726
|
+
yargs35.positional("id", { demandOption: true, describe: "Preview viewport UUID to delete" })
|
|
5976
5727
|
)
|
|
5977
5728
|
)
|
|
5978
5729
|
)
|
|
@@ -5993,11 +5744,11 @@ var PreviewViewportUpdateModule = {
|
|
|
5993
5744
|
command: "update <filename>",
|
|
5994
5745
|
aliases: ["put"],
|
|
5995
5746
|
describe: "Insert or update a preview viewport",
|
|
5996
|
-
builder: (
|
|
5747
|
+
builder: (yargs35) => withConfiguration(
|
|
5997
5748
|
withDebugOptions(
|
|
5998
5749
|
withApiOptions(
|
|
5999
5750
|
withProjectOptions(
|
|
6000
|
-
|
|
5751
|
+
yargs35.positional("filename", { demandOption: true, describe: "Preview viewport file to put" })
|
|
6001
5752
|
)
|
|
6002
5753
|
)
|
|
6003
5754
|
)
|
|
@@ -6019,14 +5770,14 @@ var PreviewViewportModule = {
|
|
|
6019
5770
|
command: "preview-viewport <command>",
|
|
6020
5771
|
aliases: ["pv"],
|
|
6021
5772
|
describe: "Commands for Canvas preview viewports",
|
|
6022
|
-
builder: (
|
|
5773
|
+
builder: (yargs35) => yargs35.command(PreviewViewportPullModule).command(PreviewViewportPushModule).command(PreviewViewportGetModule).command(PreviewViewportRemoveModule).command(PreviewViewportListModule).command(PreviewViewportUpdateModule).demandCommand(),
|
|
6023
5774
|
handler: () => {
|
|
6024
|
-
|
|
5775
|
+
yargs14.help();
|
|
6025
5776
|
}
|
|
6026
5777
|
};
|
|
6027
5778
|
|
|
6028
5779
|
// src/commands/canvas/commands/prompts.ts
|
|
6029
|
-
import
|
|
5780
|
+
import yargs15 from "yargs";
|
|
6030
5781
|
|
|
6031
5782
|
// src/commands/canvas/commands/prompts/_util.ts
|
|
6032
5783
|
import { PromptClient } from "@uniformdev/canvas";
|
|
@@ -6038,12 +5789,12 @@ var getPromptClient = (options) => new PromptClient({ ...options, bypassCache: t
|
|
|
6038
5789
|
var PromptGetModule = {
|
|
6039
5790
|
command: "get <id>",
|
|
6040
5791
|
describe: "Get a prompt",
|
|
6041
|
-
builder: (
|
|
5792
|
+
builder: (yargs35) => withConfiguration(
|
|
6042
5793
|
withDebugOptions(
|
|
6043
5794
|
withFormatOptions(
|
|
6044
5795
|
withApiOptions(
|
|
6045
5796
|
withProjectOptions(
|
|
6046
|
-
|
|
5797
|
+
yargs35.positional("id", { demandOption: true, describe: "Prompt ID to fetch" })
|
|
6047
5798
|
)
|
|
6048
5799
|
)
|
|
6049
5800
|
)
|
|
@@ -6064,7 +5815,7 @@ var PromptGetModule = {
|
|
|
6064
5815
|
var PromptListModule = {
|
|
6065
5816
|
command: "list",
|
|
6066
5817
|
describe: "List prompts",
|
|
6067
|
-
builder: (
|
|
5818
|
+
builder: (yargs35) => withConfiguration(withDebugOptions(withFormatOptions(withApiOptions(withProjectOptions(yargs35))))),
|
|
6068
5819
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId, verbose }) => {
|
|
6069
5820
|
const fetch2 = nodeFetchProxy(proxy, verbose);
|
|
6070
5821
|
const client = getPromptClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -6105,13 +5856,13 @@ function createPromptEngineDataSource({
|
|
|
6105
5856
|
var PromptPullModule = {
|
|
6106
5857
|
command: "pull <directory>",
|
|
6107
5858
|
describe: "Pulls all prompts to local files in a directory",
|
|
6108
|
-
builder: (
|
|
5859
|
+
builder: (yargs35) => withConfiguration(
|
|
6109
5860
|
withDebugOptions(
|
|
6110
5861
|
withApiOptions(
|
|
6111
5862
|
withProjectOptions(
|
|
6112
5863
|
withStateOptions(
|
|
6113
5864
|
withDiffOptions(
|
|
6114
|
-
|
|
5865
|
+
yargs35.positional("directory", {
|
|
6115
5866
|
describe: "Directory to save the prompts to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
6116
5867
|
type: "string"
|
|
6117
5868
|
}).option("format", {
|
|
@@ -6192,12 +5943,12 @@ var PromptPullModule = {
|
|
|
6192
5943
|
var PromptPushModule = {
|
|
6193
5944
|
command: "push <directory>",
|
|
6194
5945
|
describe: "Pushes all prompts from files in a directory to Uniform",
|
|
6195
|
-
builder: (
|
|
5946
|
+
builder: (yargs35) => withConfiguration(
|
|
6196
5947
|
withApiOptions(
|
|
6197
5948
|
withProjectOptions(
|
|
6198
5949
|
withStateOptions(
|
|
6199
5950
|
withDiffOptions(
|
|
6200
|
-
|
|
5951
|
+
yargs35.positional("directory", {
|
|
6201
5952
|
describe: "Directory to read the prompts from. If a filename is used, a package will be read instead.",
|
|
6202
5953
|
type: "string"
|
|
6203
5954
|
}).option("mode", {
|
|
@@ -6266,10 +6017,10 @@ var PromptRemoveModule = {
|
|
|
6266
6017
|
command: "remove <id>",
|
|
6267
6018
|
aliases: ["delete", "rm"],
|
|
6268
6019
|
describe: "Delete a prompt",
|
|
6269
|
-
builder: (
|
|
6020
|
+
builder: (yargs35) => withConfiguration(
|
|
6270
6021
|
withDebugOptions(
|
|
6271
6022
|
withApiOptions(
|
|
6272
|
-
withProjectOptions(
|
|
6023
|
+
withProjectOptions(yargs35.positional("id", { demandOption: true, describe: "Prompt ID to delete" }))
|
|
6273
6024
|
)
|
|
6274
6025
|
)
|
|
6275
6026
|
),
|
|
@@ -6289,11 +6040,11 @@ var PromptUpdateModule = {
|
|
|
6289
6040
|
command: "update <filename>",
|
|
6290
6041
|
aliases: ["put"],
|
|
6291
6042
|
describe: "Insert or update a prompt",
|
|
6292
|
-
builder: (
|
|
6043
|
+
builder: (yargs35) => withConfiguration(
|
|
6293
6044
|
withDebugOptions(
|
|
6294
6045
|
withApiOptions(
|
|
6295
6046
|
withProjectOptions(
|
|
6296
|
-
|
|
6047
|
+
yargs35.positional("filename", { demandOption: true, describe: "Prompt file to put" })
|
|
6297
6048
|
)
|
|
6298
6049
|
)
|
|
6299
6050
|
)
|
|
@@ -6315,14 +6066,14 @@ var PromptModule = {
|
|
|
6315
6066
|
command: "prompt <command>",
|
|
6316
6067
|
aliases: ["dt"],
|
|
6317
6068
|
describe: "Commands for AI Prompt definitions",
|
|
6318
|
-
builder: (
|
|
6069
|
+
builder: (yargs35) => yargs35.command(PromptGetModule).command(PromptListModule).command(PromptPullModule).command(PromptPushModule).command(PromptRemoveModule).command(PromptUpdateModule).demandCommand(),
|
|
6319
6070
|
handler: () => {
|
|
6320
|
-
|
|
6071
|
+
yargs15.help();
|
|
6321
6072
|
}
|
|
6322
6073
|
};
|
|
6323
6074
|
|
|
6324
6075
|
// src/commands/canvas/commands/workflow.ts
|
|
6325
|
-
import
|
|
6076
|
+
import yargs16 from "yargs";
|
|
6326
6077
|
|
|
6327
6078
|
// src/commands/canvas/commands/workflow/_util.ts
|
|
6328
6079
|
import { WorkflowClient } from "@uniformdev/canvas";
|
|
@@ -6365,12 +6116,12 @@ function createWorkflowEngineDataSource({
|
|
|
6365
6116
|
var WorkflowPullModule = {
|
|
6366
6117
|
command: "pull <directory>",
|
|
6367
6118
|
describe: "Pulls all workflows to local files in a directory",
|
|
6368
|
-
builder: (
|
|
6119
|
+
builder: (yargs35) => withConfiguration(
|
|
6369
6120
|
withApiOptions(
|
|
6370
6121
|
withDebugOptions(
|
|
6371
6122
|
withProjectOptions(
|
|
6372
6123
|
withDiffOptions(
|
|
6373
|
-
|
|
6124
|
+
yargs35.positional("directory", {
|
|
6374
6125
|
describe: "Directory to save to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
6375
6126
|
type: "string"
|
|
6376
6127
|
}).option("format", {
|
|
@@ -6445,12 +6196,12 @@ var WorkflowPullModule = {
|
|
|
6445
6196
|
var WorkflowPushModule = {
|
|
6446
6197
|
command: "push <directory>",
|
|
6447
6198
|
describe: "Pushes all workflows from files in a directory to Uniform Canvas",
|
|
6448
|
-
builder: (
|
|
6199
|
+
builder: (yargs35) => withConfiguration(
|
|
6449
6200
|
withDebugOptions(
|
|
6450
6201
|
withApiOptions(
|
|
6451
6202
|
withProjectOptions(
|
|
6452
6203
|
withDiffOptions(
|
|
6453
|
-
|
|
6204
|
+
yargs35.positional("directory", {
|
|
6454
6205
|
describe: "Directory to read from. If a filename is used, a package will be read instead.",
|
|
6455
6206
|
type: "string"
|
|
6456
6207
|
}).option("mode", {
|
|
@@ -6514,9 +6265,9 @@ var WorkflowModule = {
|
|
|
6514
6265
|
command: "workflow <command>",
|
|
6515
6266
|
aliases: ["wf"],
|
|
6516
6267
|
describe: "Commands for Canvas workflows",
|
|
6517
|
-
builder: (
|
|
6268
|
+
builder: (yargs35) => yargs35.command(WorkflowPullModule).command(WorkflowPushModule).demandCommand(),
|
|
6518
6269
|
handler: () => {
|
|
6519
|
-
|
|
6270
|
+
yargs16.help();
|
|
6520
6271
|
}
|
|
6521
6272
|
};
|
|
6522
6273
|
|
|
@@ -6525,17 +6276,17 @@ var CanvasCommand = {
|
|
|
6525
6276
|
command: "canvas <command>",
|
|
6526
6277
|
aliases: ["cv", "pm", "presentation"],
|
|
6527
6278
|
describe: "Uniform Canvas commands",
|
|
6528
|
-
builder: (
|
|
6279
|
+
builder: (yargs35) => yargs35.command(CompositionModule).command(ComponentModule).command(DataTypeModule).command(DataSourceModule).command(CategoryModule).command(ComponentPatternModule).command(CompositionPatternModule).command(ContentTypeModule).command(EntryModule).command(EntryPatternModule).command(PromptModule).command(AssetModule).command(LocaleModule).command(WorkflowModule).command(PreviewUrlModule).command(PreviewViewportModule).demandCommand(),
|
|
6529
6280
|
handler: () => {
|
|
6530
|
-
|
|
6281
|
+
yargs17.showHelp();
|
|
6531
6282
|
}
|
|
6532
6283
|
};
|
|
6533
6284
|
|
|
6534
6285
|
// src/commands/context/index.ts
|
|
6535
|
-
import
|
|
6286
|
+
import yargs24 from "yargs";
|
|
6536
6287
|
|
|
6537
6288
|
// src/commands/context/commands/aggregate.ts
|
|
6538
|
-
import
|
|
6289
|
+
import yargs18 from "yargs";
|
|
6539
6290
|
|
|
6540
6291
|
// src/commands/context/commands/aggregate/_util.ts
|
|
6541
6292
|
import { AggregateClient } from "@uniformdev/context/api";
|
|
@@ -6547,11 +6298,11 @@ var getAggregateClient = (options) => new AggregateClient({ ...options, bypassCa
|
|
|
6547
6298
|
var AggregateGetModule = {
|
|
6548
6299
|
command: "get <id>",
|
|
6549
6300
|
describe: "Fetch an aggregate",
|
|
6550
|
-
builder: (
|
|
6301
|
+
builder: (yargs35) => withConfiguration(
|
|
6551
6302
|
withFormatOptions(
|
|
6552
6303
|
withApiOptions(
|
|
6553
6304
|
withProjectOptions(
|
|
6554
|
-
|
|
6305
|
+
yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to fetch" })
|
|
6555
6306
|
)
|
|
6556
6307
|
)
|
|
6557
6308
|
)
|
|
@@ -6574,7 +6325,7 @@ var AggregateListModule = {
|
|
|
6574
6325
|
command: "list",
|
|
6575
6326
|
describe: "List aggregates",
|
|
6576
6327
|
aliases: ["ls"],
|
|
6577
|
-
builder: (
|
|
6328
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
6578
6329
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
6579
6330
|
const fetch2 = nodeFetchProxy(proxy);
|
|
6580
6331
|
const client = getAggregateClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -6637,12 +6388,12 @@ function writeContextPackage(filename, packageContents) {
|
|
|
6637
6388
|
var AggregatePullModule = {
|
|
6638
6389
|
command: "pull <directory>",
|
|
6639
6390
|
describe: "Pulls all aggregates to local files in a directory",
|
|
6640
|
-
builder: (
|
|
6391
|
+
builder: (yargs35) => withConfiguration(
|
|
6641
6392
|
withApiOptions(
|
|
6642
6393
|
withDebugOptions(
|
|
6643
6394
|
withProjectOptions(
|
|
6644
6395
|
withDiffOptions(
|
|
6645
|
-
|
|
6396
|
+
yargs35.positional("directory", {
|
|
6646
6397
|
describe: "Directory to save the aggregates to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
6647
6398
|
type: "string"
|
|
6648
6399
|
}).option("format", {
|
|
@@ -6717,12 +6468,12 @@ var AggregatePullModule = {
|
|
|
6717
6468
|
var AggregatePushModule = {
|
|
6718
6469
|
command: "push <directory>",
|
|
6719
6470
|
describe: "Pushes all aggregates from files in a directory or package to Uniform",
|
|
6720
|
-
builder: (
|
|
6471
|
+
builder: (yargs35) => withConfiguration(
|
|
6721
6472
|
withApiOptions(
|
|
6722
6473
|
withProjectOptions(
|
|
6723
6474
|
withDiffOptions(
|
|
6724
6475
|
withDebugOptions(
|
|
6725
|
-
|
|
6476
|
+
yargs35.positional("directory", {
|
|
6726
6477
|
describe: "Directory to read the aggregates from. If a filename is used, a package will be read instead.",
|
|
6727
6478
|
type: "string"
|
|
6728
6479
|
}).option("mode", {
|
|
@@ -6787,10 +6538,10 @@ var AggregateRemoveModule = {
|
|
|
6787
6538
|
command: "remove <id>",
|
|
6788
6539
|
aliases: ["delete", "rm"],
|
|
6789
6540
|
describe: "Delete an aggregate",
|
|
6790
|
-
builder: (
|
|
6541
|
+
builder: (yargs35) => withConfiguration(
|
|
6791
6542
|
withApiOptions(
|
|
6792
6543
|
withProjectOptions(
|
|
6793
|
-
|
|
6544
|
+
yargs35.positional("id", { demandOption: true, describe: "Aggregate public ID to delete" })
|
|
6794
6545
|
)
|
|
6795
6546
|
)
|
|
6796
6547
|
),
|
|
@@ -6806,10 +6557,10 @@ var AggregateUpdateModule = {
|
|
|
6806
6557
|
command: "update <filename>",
|
|
6807
6558
|
aliases: ["put"],
|
|
6808
6559
|
describe: "Insert or update an aggregate",
|
|
6809
|
-
builder: (
|
|
6560
|
+
builder: (yargs35) => withConfiguration(
|
|
6810
6561
|
withApiOptions(
|
|
6811
6562
|
withProjectOptions(
|
|
6812
|
-
|
|
6563
|
+
yargs35.positional("filename", { demandOption: true, describe: "Aggregate file to put" })
|
|
6813
6564
|
)
|
|
6814
6565
|
)
|
|
6815
6566
|
),
|
|
@@ -6826,14 +6577,14 @@ var AggregateModule = {
|
|
|
6826
6577
|
command: "aggregate <command>",
|
|
6827
6578
|
aliases: ["agg", "intent", "audience"],
|
|
6828
6579
|
describe: "Commands for Context aggregates (intents, audiences)",
|
|
6829
|
-
builder: (
|
|
6580
|
+
builder: (yargs35) => yargs35.command(AggregatePullModule).command(AggregatePushModule).command(AggregateGetModule).command(AggregateRemoveModule).command(AggregateListModule).command(AggregateUpdateModule).demandCommand(),
|
|
6830
6581
|
handler: () => {
|
|
6831
|
-
|
|
6582
|
+
yargs18.help();
|
|
6832
6583
|
}
|
|
6833
6584
|
};
|
|
6834
6585
|
|
|
6835
6586
|
// src/commands/context/commands/enrichment.ts
|
|
6836
|
-
import
|
|
6587
|
+
import yargs19 from "yargs";
|
|
6837
6588
|
|
|
6838
6589
|
// src/commands/context/commands/enrichment/_util.ts
|
|
6839
6590
|
import { UncachedEnrichmentClient } from "@uniformdev/context/api";
|
|
@@ -6847,11 +6598,11 @@ function getEnrichmentClient(options) {
|
|
|
6847
6598
|
var EnrichmentGetModule = {
|
|
6848
6599
|
command: "get <id>",
|
|
6849
6600
|
describe: "Fetch an enrichment category and its values",
|
|
6850
|
-
builder: (
|
|
6601
|
+
builder: (yargs35) => withFormatOptions(
|
|
6851
6602
|
withConfiguration(
|
|
6852
6603
|
withApiOptions(
|
|
6853
6604
|
withProjectOptions(
|
|
6854
|
-
|
|
6605
|
+
yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to fetch" })
|
|
6855
6606
|
)
|
|
6856
6607
|
)
|
|
6857
6608
|
)
|
|
@@ -6874,7 +6625,7 @@ var EnrichmentListModule = {
|
|
|
6874
6625
|
command: "list",
|
|
6875
6626
|
describe: "List enrichments",
|
|
6876
6627
|
aliases: ["ls"],
|
|
6877
|
-
builder: (
|
|
6628
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
6878
6629
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
6879
6630
|
const fetch2 = nodeFetchProxy(proxy);
|
|
6880
6631
|
const client = getEnrichmentClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -6969,12 +6720,12 @@ var createEnrichmentValueEngineDataSource = ({
|
|
|
6969
6720
|
var EnrichmentPullModule = {
|
|
6970
6721
|
command: "pull <directory>",
|
|
6971
6722
|
describe: "Pulls all enrichments to local files in a directory",
|
|
6972
|
-
builder: (
|
|
6723
|
+
builder: (yargs35) => withConfiguration(
|
|
6973
6724
|
withDebugOptions(
|
|
6974
6725
|
withApiOptions(
|
|
6975
6726
|
withProjectOptions(
|
|
6976
6727
|
withDiffOptions(
|
|
6977
|
-
|
|
6728
|
+
yargs35.positional("directory", {
|
|
6978
6729
|
describe: "Directory to save the enrichments to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
6979
6730
|
type: "string"
|
|
6980
6731
|
}).option("format", {
|
|
@@ -7049,11 +6800,11 @@ var EnrichmentPullModule = {
|
|
|
7049
6800
|
var EnrichmentPushModule = {
|
|
7050
6801
|
command: "push <directory>",
|
|
7051
6802
|
describe: "Pushes all enrichments from files in a directory or package to Uniform",
|
|
7052
|
-
builder: (
|
|
6803
|
+
builder: (yargs35) => withConfiguration(
|
|
7053
6804
|
withApiOptions(
|
|
7054
6805
|
withProjectOptions(
|
|
7055
6806
|
withDiffOptions(
|
|
7056
|
-
|
|
6807
|
+
yargs35.positional("directory", {
|
|
7057
6808
|
describe: "Directory to read the enrichments from. If a filename is used, a package will be read instead.",
|
|
7058
6809
|
type: "string"
|
|
7059
6810
|
}).option("mode", {
|
|
@@ -7116,10 +6867,10 @@ var EnrichmentRemoveModule = {
|
|
|
7116
6867
|
command: "remove <id>",
|
|
7117
6868
|
aliases: ["delete", "rm"],
|
|
7118
6869
|
describe: "Delete an enrichment category and its values",
|
|
7119
|
-
builder: (
|
|
6870
|
+
builder: (yargs35) => withConfiguration(
|
|
7120
6871
|
withApiOptions(
|
|
7121
6872
|
withProjectOptions(
|
|
7122
|
-
|
|
6873
|
+
yargs35.positional("id", { demandOption: true, describe: "Enrichment category public ID to delete" })
|
|
7123
6874
|
)
|
|
7124
6875
|
)
|
|
7125
6876
|
),
|
|
@@ -7135,14 +6886,14 @@ var EnrichmentModule = {
|
|
|
7135
6886
|
command: "enrichment <command>",
|
|
7136
6887
|
aliases: ["enr"],
|
|
7137
6888
|
describe: "Commands for Context enrichments",
|
|
7138
|
-
builder: (
|
|
6889
|
+
builder: (yargs35) => yargs35.command(EnrichmentPullModule).command(EnrichmentPushModule).command(EnrichmentGetModule).command(EnrichmentRemoveModule).command(EnrichmentListModule).demandCommand(),
|
|
7139
6890
|
handler: () => {
|
|
7140
|
-
|
|
6891
|
+
yargs19.help();
|
|
7141
6892
|
}
|
|
7142
6893
|
};
|
|
7143
6894
|
|
|
7144
6895
|
// src/commands/context/commands/manifest.ts
|
|
7145
|
-
import
|
|
6896
|
+
import yargs20 from "yargs";
|
|
7146
6897
|
|
|
7147
6898
|
// src/commands/context/commands/manifest/get.ts
|
|
7148
6899
|
import { ApiClientError as ApiClientError2, UncachedManifestClient } from "@uniformdev/context/api";
|
|
@@ -7153,10 +6904,10 @@ var ManifestGetModule = {
|
|
|
7153
6904
|
command: "get [output]",
|
|
7154
6905
|
aliases: ["dl", "download"],
|
|
7155
6906
|
describe: "Download the Uniform Context manifest for a project",
|
|
7156
|
-
builder: (
|
|
6907
|
+
builder: (yargs35) => withConfiguration(
|
|
7157
6908
|
withApiOptions(
|
|
7158
6909
|
withProjectOptions(
|
|
7159
|
-
|
|
6910
|
+
yargs35.option("preview", {
|
|
7160
6911
|
describe: "If set, fetches the unpublished preview manifest (The API key must have permission)",
|
|
7161
6912
|
default: false,
|
|
7162
6913
|
type: "boolean",
|
|
@@ -7218,7 +6969,7 @@ import { exit as exit2 } from "process";
|
|
|
7218
6969
|
var ManifestPublishModule = {
|
|
7219
6970
|
command: "publish",
|
|
7220
6971
|
describe: "Publish the Uniform Context manifest for a project",
|
|
7221
|
-
builder: (
|
|
6972
|
+
builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(yargs35))),
|
|
7222
6973
|
handler: async ({ apiKey, apiHost, proxy, project }) => {
|
|
7223
6974
|
const fetch2 = nodeFetchProxy(proxy);
|
|
7224
6975
|
try {
|
|
@@ -7251,25 +7002,25 @@ var ManifestModule = {
|
|
|
7251
7002
|
command: "manifest <command>",
|
|
7252
7003
|
describe: "Commands for context manifests",
|
|
7253
7004
|
aliases: ["man"],
|
|
7254
|
-
builder: (
|
|
7005
|
+
builder: (yargs35) => yargs35.command(ManifestGetModule).command(ManifestPublishModule).demandCommand(),
|
|
7255
7006
|
handler: () => {
|
|
7256
|
-
|
|
7007
|
+
yargs20.help();
|
|
7257
7008
|
}
|
|
7258
7009
|
};
|
|
7259
7010
|
|
|
7260
7011
|
// src/commands/context/commands/quirk.ts
|
|
7261
|
-
import
|
|
7012
|
+
import yargs21 from "yargs";
|
|
7262
7013
|
|
|
7263
7014
|
// src/commands/context/commands/quirk/get.ts
|
|
7264
7015
|
import { UncachedQuirkClient } from "@uniformdev/context/api";
|
|
7265
7016
|
var QuirkGetModule = {
|
|
7266
7017
|
command: "get <id>",
|
|
7267
7018
|
describe: "Fetch a quirk",
|
|
7268
|
-
builder: (
|
|
7019
|
+
builder: (yargs35) => withConfiguration(
|
|
7269
7020
|
withFormatOptions(
|
|
7270
7021
|
withApiOptions(
|
|
7271
7022
|
withProjectOptions(
|
|
7272
|
-
|
|
7023
|
+
yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to fetch" })
|
|
7273
7024
|
)
|
|
7274
7025
|
)
|
|
7275
7026
|
)
|
|
@@ -7293,11 +7044,11 @@ var QuirkListModule = {
|
|
|
7293
7044
|
command: "list",
|
|
7294
7045
|
describe: "List quirks",
|
|
7295
7046
|
aliases: ["ls"],
|
|
7296
|
-
builder: (
|
|
7047
|
+
builder: (yargs35) => withConfiguration(
|
|
7297
7048
|
withFormatOptions(
|
|
7298
7049
|
withApiOptions(
|
|
7299
7050
|
withProjectOptions(
|
|
7300
|
-
|
|
7051
|
+
yargs35.option("withIntegrations", {
|
|
7301
7052
|
alias: ["i"],
|
|
7302
7053
|
describe: "Whether to include meta-quirks created by integrations in the list. Defaults to false.",
|
|
7303
7054
|
type: "boolean"
|
|
@@ -7355,12 +7106,12 @@ function createQuirkEngineDataSource({
|
|
|
7355
7106
|
var QuirkPullModule = {
|
|
7356
7107
|
command: "pull <directory>",
|
|
7357
7108
|
describe: "Pulls all quirks to local files in a directory",
|
|
7358
|
-
builder: (
|
|
7109
|
+
builder: (yargs35) => withConfiguration(
|
|
7359
7110
|
withDebugOptions(
|
|
7360
7111
|
withApiOptions(
|
|
7361
7112
|
withProjectOptions(
|
|
7362
7113
|
withDiffOptions(
|
|
7363
|
-
|
|
7114
|
+
yargs35.positional("directory", {
|
|
7364
7115
|
describe: "Directory to save the quirks to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
7365
7116
|
type: "string"
|
|
7366
7117
|
}).option("format", {
|
|
@@ -7436,12 +7187,12 @@ import { UncachedQuirkClient as UncachedQuirkClient4 } from "@uniformdev/context
|
|
|
7436
7187
|
var QuirkPushModule = {
|
|
7437
7188
|
command: "push <directory>",
|
|
7438
7189
|
describe: "Pushes all quirks from files in a directory or package to Uniform",
|
|
7439
|
-
builder: (
|
|
7190
|
+
builder: (yargs35) => withConfiguration(
|
|
7440
7191
|
withDebugOptions(
|
|
7441
7192
|
withApiOptions(
|
|
7442
7193
|
withProjectOptions(
|
|
7443
7194
|
withDiffOptions(
|
|
7444
|
-
|
|
7195
|
+
yargs35.positional("directory", {
|
|
7445
7196
|
describe: "Directory to read the quirks from. If a filename is used, a package will be read instead.",
|
|
7446
7197
|
type: "string"
|
|
7447
7198
|
}).option("mode", {
|
|
@@ -7506,10 +7257,10 @@ var QuirkRemoveModule = {
|
|
|
7506
7257
|
command: "remove <id>",
|
|
7507
7258
|
aliases: ["delete", "rm"],
|
|
7508
7259
|
describe: "Delete a quirk",
|
|
7509
|
-
builder: (
|
|
7260
|
+
builder: (yargs35) => withConfiguration(
|
|
7510
7261
|
withApiOptions(
|
|
7511
7262
|
withProjectOptions(
|
|
7512
|
-
|
|
7263
|
+
yargs35.positional("id", { demandOption: true, describe: "Quirk public ID to delete" })
|
|
7513
7264
|
)
|
|
7514
7265
|
)
|
|
7515
7266
|
),
|
|
@@ -7526,10 +7277,10 @@ var QuirkUpdateModule = {
|
|
|
7526
7277
|
command: "update <filename>",
|
|
7527
7278
|
aliases: ["put"],
|
|
7528
7279
|
describe: "Insert or update a quirk",
|
|
7529
|
-
builder: (
|
|
7280
|
+
builder: (yargs35) => withConfiguration(
|
|
7530
7281
|
withApiOptions(
|
|
7531
7282
|
withProjectOptions(
|
|
7532
|
-
|
|
7283
|
+
yargs35.positional("filename", { demandOption: true, describe: "Quirk file to put" })
|
|
7533
7284
|
)
|
|
7534
7285
|
)
|
|
7535
7286
|
),
|
|
@@ -7546,25 +7297,25 @@ var QuirkModule = {
|
|
|
7546
7297
|
command: "quirk <command>",
|
|
7547
7298
|
aliases: ["qk"],
|
|
7548
7299
|
describe: "Commands for Context quirks",
|
|
7549
|
-
builder: (
|
|
7300
|
+
builder: (yargs35) => yargs35.command(QuirkPullModule).command(QuirkPushModule).command(QuirkGetModule).command(QuirkRemoveModule).command(QuirkListModule).command(QuirkUpdateModule).demandCommand(),
|
|
7550
7301
|
handler: () => {
|
|
7551
|
-
|
|
7302
|
+
yargs21.help();
|
|
7552
7303
|
}
|
|
7553
7304
|
};
|
|
7554
7305
|
|
|
7555
7306
|
// src/commands/context/commands/signal.ts
|
|
7556
|
-
import
|
|
7307
|
+
import yargs22 from "yargs";
|
|
7557
7308
|
|
|
7558
7309
|
// src/commands/context/commands/signal/get.ts
|
|
7559
7310
|
import { UncachedSignalClient } from "@uniformdev/context/api";
|
|
7560
7311
|
var SignalGetModule = {
|
|
7561
7312
|
command: "get <id>",
|
|
7562
7313
|
describe: "Fetch a signal",
|
|
7563
|
-
builder: (
|
|
7314
|
+
builder: (yargs35) => withConfiguration(
|
|
7564
7315
|
withFormatOptions(
|
|
7565
7316
|
withApiOptions(
|
|
7566
7317
|
withProjectOptions(
|
|
7567
|
-
|
|
7318
|
+
yargs35.positional("id", { demandOption: true, describe: "Signal public ID to fetch" })
|
|
7568
7319
|
)
|
|
7569
7320
|
)
|
|
7570
7321
|
)
|
|
@@ -7588,7 +7339,7 @@ var SignalListModule = {
|
|
|
7588
7339
|
command: "list",
|
|
7589
7340
|
describe: "List signals",
|
|
7590
7341
|
aliases: ["ls"],
|
|
7591
|
-
builder: (
|
|
7342
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
7592
7343
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
7593
7344
|
const fetch2 = nodeFetchProxy(proxy);
|
|
7594
7345
|
const client = new UncachedSignalClient2({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -7638,12 +7389,12 @@ function createSignalEngineDataSource({
|
|
|
7638
7389
|
var SignalPullModule = {
|
|
7639
7390
|
command: "pull <directory>",
|
|
7640
7391
|
describe: "Pulls all signals to local files in a directory",
|
|
7641
|
-
builder: (
|
|
7392
|
+
builder: (yargs35) => withConfiguration(
|
|
7642
7393
|
withDebugOptions(
|
|
7643
7394
|
withApiOptions(
|
|
7644
7395
|
withProjectOptions(
|
|
7645
7396
|
withDiffOptions(
|
|
7646
|
-
|
|
7397
|
+
yargs35.positional("directory", {
|
|
7647
7398
|
describe: "Directory to save the signals to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
7648
7399
|
type: "string"
|
|
7649
7400
|
}).option("format", {
|
|
@@ -7719,12 +7470,12 @@ import { UncachedSignalClient as UncachedSignalClient4 } from "@uniformdev/conte
|
|
|
7719
7470
|
var SignalPushModule = {
|
|
7720
7471
|
command: "push <directory>",
|
|
7721
7472
|
describe: "Pushes all signals from files in a directory or package to Uniform",
|
|
7722
|
-
builder: (
|
|
7473
|
+
builder: (yargs35) => withConfiguration(
|
|
7723
7474
|
withDebugOptions(
|
|
7724
7475
|
withApiOptions(
|
|
7725
7476
|
withProjectOptions(
|
|
7726
7477
|
withDiffOptions(
|
|
7727
|
-
|
|
7478
|
+
yargs35.positional("directory", {
|
|
7728
7479
|
describe: "Directory to read the signals from. If a filename is used, a package will be read instead.",
|
|
7729
7480
|
type: "string"
|
|
7730
7481
|
}).option("mode", {
|
|
@@ -7789,10 +7540,10 @@ var SignalRemoveModule = {
|
|
|
7789
7540
|
command: "remove <id>",
|
|
7790
7541
|
aliases: ["delete", "rm"],
|
|
7791
7542
|
describe: "Delete a signal",
|
|
7792
|
-
builder: (
|
|
7543
|
+
builder: (yargs35) => withConfiguration(
|
|
7793
7544
|
withApiOptions(
|
|
7794
7545
|
withProjectOptions(
|
|
7795
|
-
|
|
7546
|
+
yargs35.positional("id", { demandOption: true, describe: "Signal public ID to delete" })
|
|
7796
7547
|
)
|
|
7797
7548
|
)
|
|
7798
7549
|
),
|
|
@@ -7809,10 +7560,10 @@ var SignalUpdateModule = {
|
|
|
7809
7560
|
command: "update <filename>",
|
|
7810
7561
|
aliases: ["put"],
|
|
7811
7562
|
describe: "Insert or update a signal",
|
|
7812
|
-
builder: (
|
|
7563
|
+
builder: (yargs35) => withConfiguration(
|
|
7813
7564
|
withApiOptions(
|
|
7814
7565
|
withProjectOptions(
|
|
7815
|
-
|
|
7566
|
+
yargs35.positional("filename", { demandOption: true, describe: "Signal file to put" })
|
|
7816
7567
|
)
|
|
7817
7568
|
)
|
|
7818
7569
|
),
|
|
@@ -7829,25 +7580,25 @@ var SignalModule = {
|
|
|
7829
7580
|
command: "signal <command>",
|
|
7830
7581
|
aliases: ["sig"],
|
|
7831
7582
|
describe: "Commands for Context signals",
|
|
7832
|
-
builder: (
|
|
7583
|
+
builder: (yargs35) => yargs35.command(SignalPullModule).command(SignalPushModule).command(SignalGetModule).command(SignalRemoveModule).command(SignalListModule).command(SignalUpdateModule).demandCommand(),
|
|
7833
7584
|
handler: () => {
|
|
7834
|
-
|
|
7585
|
+
yargs22.help();
|
|
7835
7586
|
}
|
|
7836
7587
|
};
|
|
7837
7588
|
|
|
7838
7589
|
// src/commands/context/commands/test.ts
|
|
7839
|
-
import
|
|
7590
|
+
import yargs23 from "yargs";
|
|
7840
7591
|
|
|
7841
7592
|
// src/commands/context/commands/test/get.ts
|
|
7842
7593
|
import { UncachedTestClient } from "@uniformdev/context/api";
|
|
7843
7594
|
var TestGetModule = {
|
|
7844
7595
|
command: "get <id>",
|
|
7845
7596
|
describe: "Fetch a test",
|
|
7846
|
-
builder: (
|
|
7597
|
+
builder: (yargs35) => withConfiguration(
|
|
7847
7598
|
withFormatOptions(
|
|
7848
7599
|
withApiOptions(
|
|
7849
7600
|
withProjectOptions(
|
|
7850
|
-
|
|
7601
|
+
yargs35.positional("id", { demandOption: true, describe: "Test public ID to fetch" })
|
|
7851
7602
|
)
|
|
7852
7603
|
)
|
|
7853
7604
|
)
|
|
@@ -7871,7 +7622,7 @@ var TestListModule = {
|
|
|
7871
7622
|
command: "list",
|
|
7872
7623
|
describe: "List tests",
|
|
7873
7624
|
aliases: ["ls"],
|
|
7874
|
-
builder: (
|
|
7625
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
7875
7626
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
7876
7627
|
const fetch2 = nodeFetchProxy(proxy);
|
|
7877
7628
|
const client = new UncachedTestClient2({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -7921,12 +7672,12 @@ function createTestEngineDataSource({
|
|
|
7921
7672
|
var TestPullModule = {
|
|
7922
7673
|
command: "pull <directory>",
|
|
7923
7674
|
describe: "Pulls all tests to local files in a directory",
|
|
7924
|
-
builder: (
|
|
7675
|
+
builder: (yargs35) => withConfiguration(
|
|
7925
7676
|
withDebugOptions(
|
|
7926
7677
|
withApiOptions(
|
|
7927
7678
|
withProjectOptions(
|
|
7928
7679
|
withDiffOptions(
|
|
7929
|
-
|
|
7680
|
+
yargs35.positional("directory", {
|
|
7930
7681
|
describe: "Directory to save the tests to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
7931
7682
|
type: "string"
|
|
7932
7683
|
}).option("format", {
|
|
@@ -8002,12 +7753,12 @@ import { UncachedTestClient as UncachedTestClient4 } from "@uniformdev/context/a
|
|
|
8002
7753
|
var TestPushModule = {
|
|
8003
7754
|
command: "push <directory>",
|
|
8004
7755
|
describe: "Pushes all tests from files in a directory or package to Uniform",
|
|
8005
|
-
builder: (
|
|
7756
|
+
builder: (yargs35) => withConfiguration(
|
|
8006
7757
|
withDebugOptions(
|
|
8007
7758
|
withApiOptions(
|
|
8008
7759
|
withProjectOptions(
|
|
8009
7760
|
withDiffOptions(
|
|
8010
|
-
|
|
7761
|
+
yargs35.positional("directory", {
|
|
8011
7762
|
describe: "Directory to read the tests from. If a filename is used, a package will be read instead.",
|
|
8012
7763
|
type: "string"
|
|
8013
7764
|
}).option("mode", {
|
|
@@ -8072,10 +7823,10 @@ var TestRemoveModule = {
|
|
|
8072
7823
|
command: "remove <id>",
|
|
8073
7824
|
aliases: ["delete", "rm"],
|
|
8074
7825
|
describe: "Delete a test",
|
|
8075
|
-
builder: (
|
|
7826
|
+
builder: (yargs35) => withConfiguration(
|
|
8076
7827
|
withApiOptions(
|
|
8077
7828
|
withProjectOptions(
|
|
8078
|
-
|
|
7829
|
+
yargs35.positional("id", { demandOption: true, describe: "Test public ID to delete" })
|
|
8079
7830
|
)
|
|
8080
7831
|
)
|
|
8081
7832
|
),
|
|
@@ -8092,9 +7843,9 @@ var TestUpdateModule = {
|
|
|
8092
7843
|
command: "update <filename>",
|
|
8093
7844
|
aliases: ["put"],
|
|
8094
7845
|
describe: "Insert or update a test",
|
|
8095
|
-
builder: (
|
|
7846
|
+
builder: (yargs35) => withConfiguration(
|
|
8096
7847
|
withApiOptions(
|
|
8097
|
-
withProjectOptions(
|
|
7848
|
+
withProjectOptions(yargs35.positional("filename", { demandOption: true, describe: "Test file to put" }))
|
|
8098
7849
|
)
|
|
8099
7850
|
),
|
|
8100
7851
|
handler: async ({ apiHost, apiKey, proxy, filename, project: projectId }) => {
|
|
@@ -8109,9 +7860,9 @@ var TestUpdateModule = {
|
|
|
8109
7860
|
var TestModule = {
|
|
8110
7861
|
command: "test <command>",
|
|
8111
7862
|
describe: "Commands for Context A/B tests",
|
|
8112
|
-
builder: (
|
|
7863
|
+
builder: (yargs35) => yargs35.command(TestPullModule).command(TestPushModule).command(TestGetModule).command(TestRemoveModule).command(TestListModule).command(TestUpdateModule).demandCommand(),
|
|
8113
7864
|
handler: () => {
|
|
8114
|
-
|
|
7865
|
+
yargs23.help();
|
|
8115
7866
|
}
|
|
8116
7867
|
};
|
|
8117
7868
|
|
|
@@ -8120,20 +7871,20 @@ var ContextCommand = {
|
|
|
8120
7871
|
command: "context <command>",
|
|
8121
7872
|
aliases: ["ctx"],
|
|
8122
7873
|
describe: "Uniform Context commands",
|
|
8123
|
-
builder: (
|
|
7874
|
+
builder: (yargs35) => yargs35.command(ManifestModule).command(SignalModule).command(EnrichmentModule).command(AggregateModule).command(QuirkModule).command(TestModule).demandCommand(),
|
|
8124
7875
|
handler: () => {
|
|
8125
|
-
|
|
7876
|
+
yargs24.showHelp();
|
|
8126
7877
|
}
|
|
8127
7878
|
};
|
|
8128
7879
|
|
|
8129
7880
|
// src/commands/integration/index.ts
|
|
8130
|
-
import
|
|
7881
|
+
import yargs27 from "yargs";
|
|
8131
7882
|
|
|
8132
7883
|
// src/commands/integration/commands/definition.ts
|
|
8133
|
-
import
|
|
7884
|
+
import yargs26 from "yargs";
|
|
8134
7885
|
|
|
8135
7886
|
// src/commands/integration/commands/definition/edgehancer/edgehancer.ts
|
|
8136
|
-
import
|
|
7887
|
+
import yargs25 from "yargs";
|
|
8137
7888
|
|
|
8138
7889
|
// src/commands/integration/commands/definition/edgehancer/deploy.ts
|
|
8139
7890
|
import { readFileSync } from "fs";
|
|
@@ -8171,8 +7922,8 @@ var EdgehancerClient = class extends ApiClient {
|
|
|
8171
7922
|
};
|
|
8172
7923
|
|
|
8173
7924
|
// src/commands/integration/commands/definition/edgehancer/util.ts
|
|
8174
|
-
function withEdgehancerIdOptions(
|
|
8175
|
-
return
|
|
7925
|
+
function withEdgehancerIdOptions(yargs35) {
|
|
7926
|
+
return yargs35.option("connectorType", {
|
|
8176
7927
|
describe: "Integration data connector type to edgehance, as defined in the integration manifest file.",
|
|
8177
7928
|
demandOption: true,
|
|
8178
7929
|
type: "string"
|
|
@@ -8192,11 +7943,11 @@ function withEdgehancerIdOptions(yargs36) {
|
|
|
8192
7943
|
var IntegrationEdgehancerDeployModule = {
|
|
8193
7944
|
command: "deploy <filename>",
|
|
8194
7945
|
describe: "Deploys a custom edgehancer hook to run when a data resource of a specific archetype is fetched. The API key used must have team admin permissions.",
|
|
8195
|
-
builder: (
|
|
7946
|
+
builder: (yargs35) => withConfiguration(
|
|
8196
7947
|
withApiOptions(
|
|
8197
7948
|
withTeamOptions(
|
|
8198
7949
|
withEdgehancerIdOptions(
|
|
8199
|
-
|
|
7950
|
+
yargs35.positional("filename", {
|
|
8200
7951
|
demandOption: true,
|
|
8201
7952
|
describe: "ESM code file to run for the target edgehancer hook. Refer to the documentation for expected types."
|
|
8202
7953
|
})
|
|
@@ -8216,7 +7967,7 @@ var IntegrationEdgehancerDeployModule = {
|
|
|
8216
7967
|
var IntegrationEdgehancerRemoveModule = {
|
|
8217
7968
|
command: "remove",
|
|
8218
7969
|
describe: "Deletes a custom edgehancer hook from a data connector archetype. The API key used must have team admin permissions.",
|
|
8219
|
-
builder: (
|
|
7970
|
+
builder: (yargs35) => withConfiguration(withApiOptions(withTeamOptions(withEdgehancerIdOptions(yargs35)))),
|
|
8220
7971
|
handler: async ({ apiHost, apiKey, proxy, team: teamId, archetype, connectorType, hook }) => {
|
|
8221
7972
|
const fetch2 = nodeFetchProxy(proxy);
|
|
8222
7973
|
const client = new EdgehancerClient({ apiKey, apiHost, fetch: fetch2, teamId });
|
|
@@ -8228,9 +7979,9 @@ var IntegrationEdgehancerRemoveModule = {
|
|
|
8228
7979
|
var IntegrationEdgehancerModule = {
|
|
8229
7980
|
command: "edgehancer <command>",
|
|
8230
7981
|
describe: "Commands for managing custom integration edgehancers at the team level.",
|
|
8231
|
-
builder: (
|
|
7982
|
+
builder: (yargs35) => yargs35.command(IntegrationEdgehancerDeployModule).command(IntegrationEdgehancerRemoveModule).demandCommand(),
|
|
8232
7983
|
handler: () => {
|
|
8233
|
-
|
|
7984
|
+
yargs25.help();
|
|
8234
7985
|
}
|
|
8235
7986
|
};
|
|
8236
7987
|
|
|
@@ -8270,10 +8021,10 @@ var DefinitionClient = class extends ApiClient2 {
|
|
|
8270
8021
|
var IntegrationDefinitionRegisterModule = {
|
|
8271
8022
|
command: "register <filename>",
|
|
8272
8023
|
describe: "Registers a custom integration definition on a team. The API key used must have team admin permissions.",
|
|
8273
|
-
builder: (
|
|
8024
|
+
builder: (yargs35) => withConfiguration(
|
|
8274
8025
|
withApiOptions(
|
|
8275
8026
|
withTeamOptions(
|
|
8276
|
-
|
|
8027
|
+
yargs35.positional("filename", {
|
|
8277
8028
|
demandOption: true,
|
|
8278
8029
|
describe: "Integration definition manifest to register"
|
|
8279
8030
|
})
|
|
@@ -8292,10 +8043,10 @@ var IntegrationDefinitionRegisterModule = {
|
|
|
8292
8043
|
var IntegrationDefinitionRemoveModule = {
|
|
8293
8044
|
command: "remove <type>",
|
|
8294
8045
|
describe: "Deletes a custom integration definition from a team. This will uninstall it on any active projects. Existing usages of the integration may break. The API key used must have team admin permissions.",
|
|
8295
|
-
builder: (
|
|
8046
|
+
builder: (yargs35) => withConfiguration(
|
|
8296
8047
|
withApiOptions(
|
|
8297
8048
|
withTeamOptions(
|
|
8298
|
-
|
|
8049
|
+
yargs35.positional("type", {
|
|
8299
8050
|
demandOption: true,
|
|
8300
8051
|
describe: "Integration type (from its manifest) to remove."
|
|
8301
8052
|
})
|
|
@@ -8313,9 +8064,9 @@ var IntegrationDefinitionRemoveModule = {
|
|
|
8313
8064
|
var IntegrationDefinitionModule = {
|
|
8314
8065
|
command: "definition <command>",
|
|
8315
8066
|
describe: "Commands for managing custom integration definitions at the team level.",
|
|
8316
|
-
builder: (
|
|
8067
|
+
builder: (yargs35) => yargs35.command(IntegrationDefinitionRemoveModule).command(IntegrationDefinitionRegisterModule).command(IntegrationEdgehancerModule).demandCommand(),
|
|
8317
8068
|
handler: () => {
|
|
8318
|
-
|
|
8069
|
+
yargs26.help();
|
|
8319
8070
|
}
|
|
8320
8071
|
};
|
|
8321
8072
|
|
|
@@ -8355,10 +8106,10 @@ var InstallClient = class extends ApiClient3 {
|
|
|
8355
8106
|
var IntegrationInstallModule = {
|
|
8356
8107
|
command: "install <type>",
|
|
8357
8108
|
describe: "Installs an integration to a project. The integration may be built-in or custom. Custom integrations must be registered to the parent team first.",
|
|
8358
|
-
builder: (
|
|
8109
|
+
builder: (yargs35) => withConfiguration(
|
|
8359
8110
|
withApiOptions(
|
|
8360
8111
|
withProjectOptions(
|
|
8361
|
-
|
|
8112
|
+
yargs35.positional("type", {
|
|
8362
8113
|
demandOption: true,
|
|
8363
8114
|
describe: "Integration type to install (as defined in its manifest)"
|
|
8364
8115
|
}).option("configuration", {
|
|
@@ -8380,10 +8131,10 @@ var IntegrationInstallModule = {
|
|
|
8380
8131
|
var IntegrationUninstallModule = {
|
|
8381
8132
|
command: "uninstall <type>",
|
|
8382
8133
|
describe: "Uninstalls an integration from a project. Existing usages of the integration may break.",
|
|
8383
|
-
builder: (
|
|
8134
|
+
builder: (yargs35) => withConfiguration(
|
|
8384
8135
|
withApiOptions(
|
|
8385
8136
|
withProjectOptions(
|
|
8386
|
-
|
|
8137
|
+
yargs35.positional("type", {
|
|
8387
8138
|
demandOption: true,
|
|
8388
8139
|
describe: "Integration type to uninstall (as defined in its manifest)"
|
|
8389
8140
|
})
|
|
@@ -8401,9 +8152,9 @@ var IntegrationUninstallModule = {
|
|
|
8401
8152
|
var IntegrationCommand = {
|
|
8402
8153
|
command: "integration <command>",
|
|
8403
8154
|
describe: "Integration management commands",
|
|
8404
|
-
builder: (
|
|
8155
|
+
builder: (yargs35) => yargs35.command(IntegrationDefinitionModule).command(IntegrationInstallModule).command(IntegrationUninstallModule).demandCommand(),
|
|
8405
8156
|
handler: () => {
|
|
8406
|
-
|
|
8157
|
+
yargs27.showHelp();
|
|
8407
8158
|
}
|
|
8408
8159
|
};
|
|
8409
8160
|
|
|
@@ -9446,10 +9197,10 @@ var NewMeshCmd = {
|
|
|
9446
9197
|
};
|
|
9447
9198
|
|
|
9448
9199
|
// src/commands/project-map/index.ts
|
|
9449
|
-
import
|
|
9200
|
+
import yargs30 from "yargs";
|
|
9450
9201
|
|
|
9451
9202
|
// src/commands/project-map/commands/projectMapDefinition.ts
|
|
9452
|
-
import
|
|
9203
|
+
import yargs28 from "yargs";
|
|
9453
9204
|
|
|
9454
9205
|
// src/commands/project-map/commands/ProjectMapDefinition/_util.ts
|
|
9455
9206
|
import { UncachedProjectMapClient } from "@uniformdev/project-map";
|
|
@@ -9463,11 +9214,11 @@ function getProjectMapClient(options) {
|
|
|
9463
9214
|
var ProjectMapDefinitionGetModule = {
|
|
9464
9215
|
command: "get <id>",
|
|
9465
9216
|
describe: "Fetch a project map",
|
|
9466
|
-
builder: (
|
|
9217
|
+
builder: (yargs35) => withFormatOptions(
|
|
9467
9218
|
withConfiguration(
|
|
9468
9219
|
withApiOptions(
|
|
9469
9220
|
withProjectOptions(
|
|
9470
|
-
|
|
9221
|
+
yargs35.positional("id", { demandOption: true, describe: "ProjectMap UUID to fetch" })
|
|
9471
9222
|
)
|
|
9472
9223
|
)
|
|
9473
9224
|
)
|
|
@@ -9490,7 +9241,7 @@ var ProjectMapDefinitionListModule = {
|
|
|
9490
9241
|
command: "list",
|
|
9491
9242
|
describe: "List of project maps",
|
|
9492
9243
|
aliases: ["ls"],
|
|
9493
|
-
builder: (
|
|
9244
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
9494
9245
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
9495
9246
|
const fetch2 = nodeFetchProxy(proxy);
|
|
9496
9247
|
const client = getProjectMapClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -9544,12 +9295,12 @@ function createProjectMapDefinitionEngineDataSource({
|
|
|
9544
9295
|
var ProjectMapDefinitionPullModule = {
|
|
9545
9296
|
command: "pull <directory>",
|
|
9546
9297
|
describe: "Pulls all project maps to local files in a directory",
|
|
9547
|
-
builder: (
|
|
9298
|
+
builder: (yargs35) => withConfiguration(
|
|
9548
9299
|
withDebugOptions(
|
|
9549
9300
|
withApiOptions(
|
|
9550
9301
|
withProjectOptions(
|
|
9551
9302
|
withDiffOptions(
|
|
9552
|
-
|
|
9303
|
+
yargs35.positional("directory", {
|
|
9553
9304
|
describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
9554
9305
|
type: "string"
|
|
9555
9306
|
}).option("format", {
|
|
@@ -9624,12 +9375,12 @@ var ProjectMapDefinitionPullModule = {
|
|
|
9624
9375
|
var ProjectMapDefinitionPushModule = {
|
|
9625
9376
|
command: "push <directory>",
|
|
9626
9377
|
describe: "Pushes all project maps from files in a directory or package to Uniform",
|
|
9627
|
-
builder: (
|
|
9378
|
+
builder: (yargs35) => withConfiguration(
|
|
9628
9379
|
withDebugOptions(
|
|
9629
9380
|
withApiOptions(
|
|
9630
9381
|
withProjectOptions(
|
|
9631
9382
|
withDiffOptions(
|
|
9632
|
-
|
|
9383
|
+
yargs35.positional("directory", {
|
|
9633
9384
|
describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
|
|
9634
9385
|
type: "string"
|
|
9635
9386
|
}).option("mode", {
|
|
@@ -9693,9 +9444,9 @@ var ProjectMapDefinitionRemoveModule = {
|
|
|
9693
9444
|
command: "remove <id>",
|
|
9694
9445
|
aliases: ["delete", "rm"],
|
|
9695
9446
|
describe: "Delete a project map",
|
|
9696
|
-
builder: (
|
|
9447
|
+
builder: (yargs35) => withConfiguration(
|
|
9697
9448
|
withApiOptions(
|
|
9698
|
-
withProjectOptions(
|
|
9449
|
+
withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
|
|
9699
9450
|
)
|
|
9700
9451
|
),
|
|
9701
9452
|
handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
|
|
@@ -9710,10 +9461,10 @@ var ProjectMapDefinitionUpdateModule = {
|
|
|
9710
9461
|
command: "update <filename>",
|
|
9711
9462
|
aliases: ["put"],
|
|
9712
9463
|
describe: "Insert or update a project map",
|
|
9713
|
-
builder: (
|
|
9464
|
+
builder: (yargs35) => withConfiguration(
|
|
9714
9465
|
withApiOptions(
|
|
9715
9466
|
withProjectOptions(
|
|
9716
|
-
|
|
9467
|
+
yargs35.positional("filename", { demandOption: true, describe: "Project map file to put" })
|
|
9717
9468
|
)
|
|
9718
9469
|
)
|
|
9719
9470
|
),
|
|
@@ -9729,24 +9480,24 @@ var ProjectMapDefinitionUpdateModule = {
|
|
|
9729
9480
|
var ProjectMapDefinitionModule = {
|
|
9730
9481
|
command: "definition <command>",
|
|
9731
9482
|
describe: "Commands for ProjectMap Definitions",
|
|
9732
|
-
builder: (
|
|
9483
|
+
builder: (yargs35) => yargs35.command(ProjectMapDefinitionPullModule).command(ProjectMapDefinitionPushModule).command(ProjectMapDefinitionGetModule).command(ProjectMapDefinitionRemoveModule).command(ProjectMapDefinitionListModule).command(ProjectMapDefinitionUpdateModule).demandCommand(),
|
|
9733
9484
|
handler: () => {
|
|
9734
|
-
|
|
9485
|
+
yargs28.help();
|
|
9735
9486
|
}
|
|
9736
9487
|
};
|
|
9737
9488
|
|
|
9738
9489
|
// src/commands/project-map/commands/projectMapNode.ts
|
|
9739
|
-
import
|
|
9490
|
+
import yargs29 from "yargs";
|
|
9740
9491
|
|
|
9741
9492
|
// src/commands/project-map/commands/ProjectMapNode/get.ts
|
|
9742
9493
|
var ProjectMapNodeGetModule = {
|
|
9743
9494
|
command: "get <id> <projectMapId>",
|
|
9744
9495
|
describe: "Fetch a project map node",
|
|
9745
|
-
builder: (
|
|
9496
|
+
builder: (yargs35) => withConfiguration(
|
|
9746
9497
|
withFormatOptions(
|
|
9747
9498
|
withApiOptions(
|
|
9748
9499
|
withProjectOptions(
|
|
9749
|
-
|
|
9500
|
+
yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to fetch" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to fetch from" })
|
|
9750
9501
|
)
|
|
9751
9502
|
)
|
|
9752
9503
|
)
|
|
@@ -9770,12 +9521,12 @@ var ProjectMapNodeListModule = {
|
|
|
9770
9521
|
command: "list <projectMapId>",
|
|
9771
9522
|
describe: "List project map nodes",
|
|
9772
9523
|
aliases: ["ls"],
|
|
9773
|
-
builder: (
|
|
9524
|
+
builder: (yargs35) => withConfiguration(
|
|
9774
9525
|
withFormatOptions(
|
|
9775
9526
|
withApiOptions(
|
|
9776
9527
|
withProjectOptions(
|
|
9777
9528
|
withStateOptions(
|
|
9778
|
-
|
|
9529
|
+
yargs35.positional("projectMapId", {
|
|
9779
9530
|
demandOption: true,
|
|
9780
9531
|
describe: "ProjectMap UUID to fetch from"
|
|
9781
9532
|
})
|
|
@@ -9853,12 +9604,12 @@ function createProjectMapNodeEngineDataSource({
|
|
|
9853
9604
|
var ProjectMapNodePullModule = {
|
|
9854
9605
|
command: "pull <directory>",
|
|
9855
9606
|
describe: "Pulls all project maps nodes to local files in a directory",
|
|
9856
|
-
builder: (
|
|
9607
|
+
builder: (yargs35) => withConfiguration(
|
|
9857
9608
|
withDebugOptions(
|
|
9858
9609
|
withApiOptions(
|
|
9859
9610
|
withProjectOptions(
|
|
9860
9611
|
withDiffOptions(
|
|
9861
|
-
|
|
9612
|
+
yargs35.positional("directory", {
|
|
9862
9613
|
describe: "Directory to save project maps to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
9863
9614
|
type: "string"
|
|
9864
9615
|
}).option("format", {
|
|
@@ -9940,12 +9691,12 @@ import {
|
|
|
9940
9691
|
var ProjectMapNodePushModule = {
|
|
9941
9692
|
command: "push <directory>",
|
|
9942
9693
|
describe: "Pushes all project maps nodes from files in a directory or package to Uniform",
|
|
9943
|
-
builder: (
|
|
9694
|
+
builder: (yargs35) => withConfiguration(
|
|
9944
9695
|
withDebugOptions(
|
|
9945
9696
|
withApiOptions(
|
|
9946
9697
|
withProjectOptions(
|
|
9947
9698
|
withDiffOptions(
|
|
9948
|
-
|
|
9699
|
+
yargs35.positional("directory", {
|
|
9949
9700
|
describe: "Directory to read project maps from. If a filename is used, a package will be read instead.",
|
|
9950
9701
|
type: "string"
|
|
9951
9702
|
}).option("mode", {
|
|
@@ -10047,10 +9798,10 @@ var ProjectMapNodeRemoveModule = {
|
|
|
10047
9798
|
command: "remove <id> <projectMapId>",
|
|
10048
9799
|
aliases: ["delete", "rm"],
|
|
10049
9800
|
describe: "Delete a project map node",
|
|
10050
|
-
builder: (
|
|
9801
|
+
builder: (yargs35) => withConfiguration(
|
|
10051
9802
|
withApiOptions(
|
|
10052
9803
|
withProjectOptions(
|
|
10053
|
-
|
|
9804
|
+
yargs35.positional("id", { demandOption: true, describe: "ProjectMap Node UUID to delete" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to delete from" })
|
|
10054
9805
|
)
|
|
10055
9806
|
)
|
|
10056
9807
|
),
|
|
@@ -10066,10 +9817,10 @@ var ProjectMapNodeUpdateModule = {
|
|
|
10066
9817
|
command: "update <filename> <projectMapId>",
|
|
10067
9818
|
aliases: ["put"],
|
|
10068
9819
|
describe: "Insert or update a project map node",
|
|
10069
|
-
builder: (
|
|
9820
|
+
builder: (yargs35) => withConfiguration(
|
|
10070
9821
|
withApiOptions(
|
|
10071
9822
|
withProjectOptions(
|
|
10072
|
-
|
|
9823
|
+
yargs35.positional("filename", { demandOption: true, describe: "ProjectMap node file with nodes data" }).positional("projectMapId", { demandOption: true, describe: "ProjectMap UUID to put into" })
|
|
10073
9824
|
)
|
|
10074
9825
|
)
|
|
10075
9826
|
),
|
|
@@ -10085,9 +9836,9 @@ var ProjectMapNodeUpdateModule = {
|
|
|
10085
9836
|
var ProjectMapNodeModule = {
|
|
10086
9837
|
command: "node <command>",
|
|
10087
9838
|
describe: "Commands for ProjectMap Nodes",
|
|
10088
|
-
builder: (
|
|
9839
|
+
builder: (yargs35) => yargs35.command(ProjectMapNodePullModule).command(ProjectMapNodePushModule).command(ProjectMapNodeGetModule).command(ProjectMapNodeRemoveModule).command(ProjectMapNodeListModule).command(ProjectMapNodeUpdateModule).demandCommand(),
|
|
10089
9840
|
handler: () => {
|
|
10090
|
-
|
|
9841
|
+
yargs29.help();
|
|
10091
9842
|
}
|
|
10092
9843
|
};
|
|
10093
9844
|
|
|
@@ -10096,17 +9847,17 @@ var ProjectMapCommand = {
|
|
|
10096
9847
|
command: "project-map <command>",
|
|
10097
9848
|
aliases: ["prm"],
|
|
10098
9849
|
describe: "Uniform ProjectMap commands",
|
|
10099
|
-
builder: (
|
|
9850
|
+
builder: (yargs35) => yargs35.command(ProjectMapNodeModule).command(ProjectMapDefinitionModule).demandCommand(),
|
|
10100
9851
|
handler: () => {
|
|
10101
|
-
|
|
9852
|
+
yargs30.showHelp();
|
|
10102
9853
|
}
|
|
10103
9854
|
};
|
|
10104
9855
|
|
|
10105
9856
|
// src/commands/redirect/index.ts
|
|
10106
|
-
import
|
|
9857
|
+
import yargs32 from "yargs";
|
|
10107
9858
|
|
|
10108
9859
|
// src/commands/redirect/commands/redirect.ts
|
|
10109
|
-
import
|
|
9860
|
+
import yargs31 from "yargs";
|
|
10110
9861
|
|
|
10111
9862
|
// src/commands/redirect/commands/RedirectDefinition/_util.ts
|
|
10112
9863
|
import { UncachedRedirectClient } from "@uniformdev/redirect";
|
|
@@ -10131,11 +9882,11 @@ function getRedirectClient(options) {
|
|
|
10131
9882
|
var RedirectDefinitionGetModule = {
|
|
10132
9883
|
command: "get <id>",
|
|
10133
9884
|
describe: "Fetch a redirect",
|
|
10134
|
-
builder: (
|
|
9885
|
+
builder: (yargs35) => withConfiguration(
|
|
10135
9886
|
withFormatOptions(
|
|
10136
9887
|
withApiOptions(
|
|
10137
9888
|
withProjectOptions(
|
|
10138
|
-
|
|
9889
|
+
yargs35.positional("id", { demandOption: true, describe: "Redirect UUID to fetch" })
|
|
10139
9890
|
)
|
|
10140
9891
|
)
|
|
10141
9892
|
)
|
|
@@ -10158,7 +9909,7 @@ var RedirectDefinitionListModule = {
|
|
|
10158
9909
|
command: "list",
|
|
10159
9910
|
describe: "List of redirects",
|
|
10160
9911
|
aliases: ["ls"],
|
|
10161
|
-
builder: (
|
|
9912
|
+
builder: (yargs35) => withConfiguration(withFormatOptions(withApiOptions(withProjectOptions(yargs35)))),
|
|
10162
9913
|
handler: async ({ apiHost, apiKey, proxy, format, filename, project: projectId }) => {
|
|
10163
9914
|
const fetch2 = nodeFetchProxy(proxy);
|
|
10164
9915
|
const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
@@ -10210,12 +9961,12 @@ function createRedirectDefinitionEngineDataSource({
|
|
|
10210
9961
|
var RedirectDefinitionPullModule = {
|
|
10211
9962
|
command: "pull <directory>",
|
|
10212
9963
|
describe: "Pulls all redirects to local files in a directory",
|
|
10213
|
-
builder: (
|
|
9964
|
+
builder: (yargs35) => withConfiguration(
|
|
10214
9965
|
withDebugOptions(
|
|
10215
9966
|
withApiOptions(
|
|
10216
9967
|
withProjectOptions(
|
|
10217
9968
|
withDiffOptions(
|
|
10218
|
-
|
|
9969
|
+
yargs35.positional("directory", {
|
|
10219
9970
|
describe: "Directory to save redirects to. If a filename ending in yaml or json is used, a package file will be created instead of files in the directory.",
|
|
10220
9971
|
type: "string"
|
|
10221
9972
|
}).option("format", {
|
|
@@ -10291,12 +10042,12 @@ var RedirectDefinitionPullModule = {
|
|
|
10291
10042
|
var RedirectDefinitionPushModule = {
|
|
10292
10043
|
command: "push <directory>",
|
|
10293
10044
|
describe: "Pushes all redirects from files in a directory or package to Uniform",
|
|
10294
|
-
builder: (
|
|
10045
|
+
builder: (yargs35) => withConfiguration(
|
|
10295
10046
|
withDebugOptions(
|
|
10296
10047
|
withApiOptions(
|
|
10297
10048
|
withProjectOptions(
|
|
10298
10049
|
withDiffOptions(
|
|
10299
|
-
|
|
10050
|
+
yargs35.positional("directory", {
|
|
10300
10051
|
describe: "Directory to read redirects from. If a filename is used, a package will be read instead.",
|
|
10301
10052
|
type: "string"
|
|
10302
10053
|
}).option("mode", {
|
|
@@ -10360,9 +10111,9 @@ var RedirectDefinitionRemoveModule = {
|
|
|
10360
10111
|
command: "remove <id>",
|
|
10361
10112
|
aliases: ["delete", "rm"],
|
|
10362
10113
|
describe: "Delete a redirect",
|
|
10363
|
-
builder: (
|
|
10114
|
+
builder: (yargs35) => withConfiguration(
|
|
10364
10115
|
withApiOptions(
|
|
10365
|
-
withProjectOptions(
|
|
10116
|
+
withProjectOptions(yargs35.positional("id", { demandOption: true, describe: " UUID to delete" }))
|
|
10366
10117
|
)
|
|
10367
10118
|
),
|
|
10368
10119
|
handler: async ({ apiHost, apiKey, proxy, id, project: projectId }) => {
|
|
@@ -10377,10 +10128,10 @@ var RedirectDefinitionUpdateModule = {
|
|
|
10377
10128
|
command: "update <filename>",
|
|
10378
10129
|
aliases: ["put"],
|
|
10379
10130
|
describe: "Insert or update a redirect",
|
|
10380
|
-
builder: (
|
|
10131
|
+
builder: (yargs35) => withConfiguration(
|
|
10381
10132
|
withApiOptions(
|
|
10382
10133
|
withProjectOptions(
|
|
10383
|
-
|
|
10134
|
+
yargs35.positional("filename", { demandOption: true, describe: "Redirect file to put" })
|
|
10384
10135
|
)
|
|
10385
10136
|
)
|
|
10386
10137
|
),
|
|
@@ -10396,9 +10147,9 @@ var RedirectDefinitionUpdateModule = {
|
|
|
10396
10147
|
var RedirectDefinitionModule = {
|
|
10397
10148
|
command: "definition <command>",
|
|
10398
10149
|
describe: "Commands for Redirect Definitions",
|
|
10399
|
-
builder: (
|
|
10150
|
+
builder: (yargs35) => yargs35.command(RedirectDefinitionPullModule).command(RedirectDefinitionPushModule).command(RedirectDefinitionGetModule).command(RedirectDefinitionRemoveModule).command(RedirectDefinitionListModule).command(RedirectDefinitionUpdateModule).demandCommand(),
|
|
10400
10151
|
handler: () => {
|
|
10401
|
-
|
|
10152
|
+
yargs31.help();
|
|
10402
10153
|
}
|
|
10403
10154
|
};
|
|
10404
10155
|
|
|
@@ -10407,14 +10158,14 @@ var RedirectCommand = {
|
|
|
10407
10158
|
command: "redirect <command>",
|
|
10408
10159
|
aliases: ["red"],
|
|
10409
10160
|
describe: "Uniform Redirect commands",
|
|
10410
|
-
builder: (
|
|
10161
|
+
builder: (yargs35) => yargs35.command(RedirectDefinitionModule).demandCommand(),
|
|
10411
10162
|
handler: () => {
|
|
10412
|
-
|
|
10163
|
+
yargs32.showHelp();
|
|
10413
10164
|
}
|
|
10414
10165
|
};
|
|
10415
10166
|
|
|
10416
10167
|
// src/commands/sync/index.ts
|
|
10417
|
-
import
|
|
10168
|
+
import yargs33 from "yargs";
|
|
10418
10169
|
|
|
10419
10170
|
// src/commands/sync/commands/util.ts
|
|
10420
10171
|
import ora2 from "ora";
|
|
@@ -10530,7 +10281,7 @@ function numPad(num, spaces = 6) {
|
|
|
10530
10281
|
var SyncPullModule = {
|
|
10531
10282
|
command: "pull",
|
|
10532
10283
|
describe: "Pulls whole project to local files in a directory",
|
|
10533
|
-
builder: (
|
|
10284
|
+
builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(withDebugOptions(withDiffOptions(yargs35))))),
|
|
10534
10285
|
handler: async ({ serialization, ...otherParams }) => {
|
|
10535
10286
|
const config2 = serialization;
|
|
10536
10287
|
const enabledEntities = Object.entries({
|
|
@@ -10546,7 +10297,6 @@ var SyncPullModule = {
|
|
|
10546
10297
|
enrichment: EnrichmentPullModule,
|
|
10547
10298
|
aggregate: AggregatePullModule,
|
|
10548
10299
|
component: ComponentPullModule,
|
|
10549
|
-
pattern: PatternPullModule,
|
|
10550
10300
|
componentPattern: ComponentPatternPullModule,
|
|
10551
10301
|
compositionPattern: CompositionPatternPullModule,
|
|
10552
10302
|
composition: CompositionPullModule,
|
|
@@ -10628,7 +10378,7 @@ var getFormat = (entityType, config2) => {
|
|
|
10628
10378
|
var SyncPushModule = {
|
|
10629
10379
|
command: "push",
|
|
10630
10380
|
describe: "Pushes whole project data from files in a directory or package to Uniform",
|
|
10631
|
-
builder: (
|
|
10381
|
+
builder: (yargs35) => withConfiguration(withApiOptions(withProjectOptions(withDiffOptions(withDebugOptions(yargs35))))),
|
|
10632
10382
|
handler: async ({ serialization, ...otherParams }) => {
|
|
10633
10383
|
const config2 = serialization;
|
|
10634
10384
|
const enabledEntities = Object.entries({
|
|
@@ -10644,7 +10394,6 @@ var SyncPushModule = {
|
|
|
10644
10394
|
enrichment: EnrichmentPushModule,
|
|
10645
10395
|
aggregate: AggregatePushModule,
|
|
10646
10396
|
component: ComponentPushModule,
|
|
10647
|
-
pattern: PatternPushModule,
|
|
10648
10397
|
componentPattern: ComponentPatternPushModule,
|
|
10649
10398
|
compositionPattern: CompositionPatternPushModule,
|
|
10650
10399
|
composition: CompositionPushModule,
|
|
@@ -10820,9 +10569,9 @@ var getFormat2 = (entityType, config2) => {
|
|
|
10820
10569
|
var SyncCommand = {
|
|
10821
10570
|
command: "sync <command>",
|
|
10822
10571
|
describe: "Uniform Sync commands",
|
|
10823
|
-
builder: (
|
|
10572
|
+
builder: (yargs35) => yargs35.command(SyncPullModule).command(SyncPushModule).demandCommand(),
|
|
10824
10573
|
handler: () => {
|
|
10825
|
-
|
|
10574
|
+
yargs33.showHelp();
|
|
10826
10575
|
}
|
|
10827
10576
|
};
|
|
10828
10577
|
|
|
@@ -11074,7 +10823,7 @@ First found was: v${firstVersion}`;
|
|
|
11074
10823
|
|
|
11075
10824
|
// src/index.ts
|
|
11076
10825
|
dotenv.config();
|
|
11077
|
-
var yarggery =
|
|
10826
|
+
var yarggery = yargs34(hideBin(process.argv));
|
|
11078
10827
|
var useDefaultConfig = !process.argv.includes("--config");
|
|
11079
10828
|
var defaultConfig2 = useDefaultConfig ? loadConfig(null) : {};
|
|
11080
10829
|
yarggery.option("verbose", {
|