@deftai/directive 0.126.1 → 0.126.2
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.
|
@@ -46,6 +46,28 @@ export function parseArgs(argv) {
|
|
|
46
46
|
else if (arg?.startsWith("--plan-id=")) {
|
|
47
47
|
parsed.planId = arg.slice("--plan-id=".length);
|
|
48
48
|
}
|
|
49
|
+
else if (arg === "--pr") {
|
|
50
|
+
const value = argv[i + 1];
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return { ...parsed, error: "argument --pr: expected one argument" };
|
|
53
|
+
}
|
|
54
|
+
parsed.pr = value;
|
|
55
|
+
i += 1;
|
|
56
|
+
}
|
|
57
|
+
else if (arg?.startsWith("--pr=")) {
|
|
58
|
+
parsed.pr = arg.slice("--pr=".length);
|
|
59
|
+
}
|
|
60
|
+
else if (arg === "--repo") {
|
|
61
|
+
const value = argv[i + 1];
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return { ...parsed, error: "argument --repo: expected one argument" };
|
|
64
|
+
}
|
|
65
|
+
parsed.repo = value;
|
|
66
|
+
i += 1;
|
|
67
|
+
}
|
|
68
|
+
else if (arg?.startsWith("--repo=")) {
|
|
69
|
+
parsed.repo = arg.slice("--repo=".length);
|
|
70
|
+
}
|
|
49
71
|
else if (arg === "--base-ref") {
|
|
50
72
|
return {
|
|
51
73
|
...parsed,
|
|
@@ -71,6 +93,8 @@ export function run(argv) {
|
|
|
71
93
|
staged: args.staged,
|
|
72
94
|
quiet: args.quiet,
|
|
73
95
|
planId: args.planId,
|
|
96
|
+
pr: args.pr,
|
|
97
|
+
repo: args.repo,
|
|
74
98
|
});
|
|
75
99
|
if (result.message.length > 0) {
|
|
76
100
|
if (result.stream === "stdout")
|
|
@@ -46,6 +46,28 @@ export function parseArgs(argv) {
|
|
|
46
46
|
else if (arg?.startsWith("--plan-id=")) {
|
|
47
47
|
parsed.planId = arg.slice("--plan-id=".length);
|
|
48
48
|
}
|
|
49
|
+
else if (arg === "--pr") {
|
|
50
|
+
const value = argv[i + 1];
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return { ...parsed, error: "argument --pr: expected one argument" };
|
|
53
|
+
}
|
|
54
|
+
parsed.pr = value;
|
|
55
|
+
i += 1;
|
|
56
|
+
}
|
|
57
|
+
else if (arg?.startsWith("--pr=")) {
|
|
58
|
+
parsed.pr = arg.slice("--pr=".length);
|
|
59
|
+
}
|
|
60
|
+
else if (arg === "--repo") {
|
|
61
|
+
const value = argv[i + 1];
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return { ...parsed, error: "argument --repo: expected one argument" };
|
|
64
|
+
}
|
|
65
|
+
parsed.repo = value;
|
|
66
|
+
i += 1;
|
|
67
|
+
}
|
|
68
|
+
else if (arg?.startsWith("--repo=")) {
|
|
69
|
+
parsed.repo = arg.slice("--repo=".length);
|
|
70
|
+
}
|
|
49
71
|
else if (arg === "--base-ref") {
|
|
50
72
|
return {
|
|
51
73
|
...parsed,
|
|
@@ -71,6 +93,8 @@ export function run(argv) {
|
|
|
71
93
|
staged: args.staged,
|
|
72
94
|
quiet: args.quiet,
|
|
73
95
|
planId: args.planId,
|
|
96
|
+
pr: args.pr,
|
|
97
|
+
repo: args.repo,
|
|
74
98
|
});
|
|
75
99
|
if (result.message.length > 0) {
|
|
76
100
|
if (result.stream === "stdout")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftai/directive",
|
|
3
|
-
"version": "0.126.
|
|
3
|
+
"version": "0.126.2",
|
|
4
4
|
"description": "Directive CLI — npm install path for the Deft Directive framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://deftai.github.io/directive/",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"provenance": true
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@deftai/directive-core": "^0.126.
|
|
39
|
-
"@deftai/directive-content": "^0.126.
|
|
38
|
+
"@deftai/directive-core": "^0.126.2",
|
|
39
|
+
"@deftai/directive-content": "^0.126.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc -b",
|