@openfn/cli 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -5
- package/dist/process/runner.js +6 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -629,6 +629,7 @@ var ensure = (command6, opts2) => (yargs2) => {
|
|
|
629
629
|
try {
|
|
630
630
|
opt.ensure(yargs2);
|
|
631
631
|
} catch (e) {
|
|
632
|
+
console.log(e);
|
|
632
633
|
console.error(
|
|
633
634
|
c.red(`
|
|
634
635
|
Error parsing command arguments: ${command6}.${opt.name}
|
|
@@ -725,9 +726,10 @@ var token = {
|
|
|
725
726
|
description: "Lightning Personal Access Token (PAT)"
|
|
726
727
|
}
|
|
727
728
|
};
|
|
728
|
-
var
|
|
729
|
-
name: "
|
|
729
|
+
var endpoint2 = {
|
|
730
|
+
name: "endpoint",
|
|
730
731
|
yargs: {
|
|
732
|
+
alias: ["e", "lightning"],
|
|
731
733
|
description: "URL to OpenFn server. Defaults to OPENFN_ENDPOINT or https://app.openfn.org"
|
|
732
734
|
}
|
|
733
735
|
};
|
|
@@ -780,7 +782,7 @@ var getOptions = [
|
|
|
780
782
|
collectionName,
|
|
781
783
|
key,
|
|
782
784
|
token,
|
|
783
|
-
|
|
785
|
+
endpoint2,
|
|
784
786
|
pageSize,
|
|
785
787
|
limit,
|
|
786
788
|
pretty,
|
|
@@ -816,7 +818,7 @@ var removeOptions = [
|
|
|
816
818
|
collectionName,
|
|
817
819
|
key,
|
|
818
820
|
token,
|
|
819
|
-
|
|
821
|
+
endpoint2,
|
|
820
822
|
dryRun,
|
|
821
823
|
createdBefore,
|
|
822
824
|
createdAfter,
|
|
@@ -851,7 +853,7 @@ var setOptions = [
|
|
|
851
853
|
demand: false
|
|
852
854
|
}),
|
|
853
855
|
token,
|
|
854
|
-
|
|
856
|
+
endpoint2,
|
|
855
857
|
value,
|
|
856
858
|
items,
|
|
857
859
|
override(log, {
|
package/dist/process/runner.js
CHANGED
|
@@ -1344,7 +1344,7 @@ var request_default = async (method, options6, logger) => {
|
|
|
1344
1344
|
logger.error(e);
|
|
1345
1345
|
throwAbortableError(
|
|
1346
1346
|
`CONNECTION_REFUSED: error connecting to server at ${base}`,
|
|
1347
|
-
"Check you have passed the correct URL to --
|
|
1347
|
+
"Check you have passed the correct URL to --endpoint or OPENFN_ENDPOINT"
|
|
1348
1348
|
);
|
|
1349
1349
|
}
|
|
1350
1350
|
} while (cursor && count < limit);
|
|
@@ -1432,7 +1432,7 @@ var get = async (options6, logger) => {
|
|
|
1432
1432
|
let result = await request_default(
|
|
1433
1433
|
"GET",
|
|
1434
1434
|
{
|
|
1435
|
-
lightning: options6.
|
|
1435
|
+
lightning: options6.endpoint,
|
|
1436
1436
|
token: options6.token,
|
|
1437
1437
|
pageSize: options6.pageSize,
|
|
1438
1438
|
limit: options6.limit,
|
|
@@ -1492,7 +1492,7 @@ var set = async (options6, logger) => {
|
|
|
1492
1492
|
const result = await request_default(
|
|
1493
1493
|
"POST",
|
|
1494
1494
|
{
|
|
1495
|
-
lightning: options6.
|
|
1495
|
+
lightning: options6.endpoint,
|
|
1496
1496
|
token: options6.token,
|
|
1497
1497
|
key: options6.key,
|
|
1498
1498
|
collectionName: options6.collectionName,
|
|
@@ -1512,7 +1512,7 @@ var remove = async (options6, logger) => {
|
|
|
1512
1512
|
let result = await request_default(
|
|
1513
1513
|
"GET",
|
|
1514
1514
|
{
|
|
1515
|
-
lightning: options6.
|
|
1515
|
+
lightning: options6.endpoint,
|
|
1516
1516
|
token: options6.token,
|
|
1517
1517
|
key: options6.key,
|
|
1518
1518
|
collectionName: options6.collectionName
|
|
@@ -1527,7 +1527,7 @@ var remove = async (options6, logger) => {
|
|
|
1527
1527
|
let result = await request_default(
|
|
1528
1528
|
"DELETE",
|
|
1529
1529
|
{
|
|
1530
|
-
lightning: options6.
|
|
1530
|
+
lightning: options6.endpoint,
|
|
1531
1531
|
token: options6.token,
|
|
1532
1532
|
key: options6.key,
|
|
1533
1533
|
collectionName: options6.collectionName,
|
|
@@ -2132,6 +2132,7 @@ var ensure = (command6, opts) => (yargs) => {
|
|
|
2132
2132
|
try {
|
|
2133
2133
|
opt.ensure(yargs);
|
|
2134
2134
|
} catch (e) {
|
|
2135
|
+
console.log(e);
|
|
2135
2136
|
console.error(
|
|
2136
2137
|
c2.red(`
|
|
2137
2138
|
Error parsing command arguments: ${command6}.${opt.name}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "CLI devtools for the OpenFn toolchain",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"undici": "7.12.0",
|
|
50
50
|
"ws": "^8.18.3",
|
|
51
51
|
"yargs": "^17.7.2",
|
|
52
|
+
"@openfn/compiler": "1.2.1",
|
|
52
53
|
"@openfn/deploy": "0.11.4",
|
|
53
54
|
"@openfn/describe-package": "0.1.5",
|
|
54
55
|
"@openfn/lexicon": "^1.2.7",
|
|
55
56
|
"@openfn/logger": "1.1.0",
|
|
56
|
-
"@openfn/project": "^0.9.1",
|
|
57
57
|
"@openfn/runtime": "1.7.6",
|
|
58
|
-
"@openfn/
|
|
58
|
+
"@openfn/project": "^0.9.1"
|
|
59
59
|
},
|
|
60
60
|
"files": [
|
|
61
61
|
"dist",
|