jiradc-cli 1.0.26 → 1.0.27-g942e3c7.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 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -47,6 +47,9 @@ function positiveInt(raw) {
|
|
|
47
47
|
}
|
|
48
48
|
return n;
|
|
49
49
|
}
|
|
50
|
+
function listOf(item) {
|
|
51
|
+
return (raw, previous) => [...Array.isArray(previous) ? previous : [], item(raw)];
|
|
52
|
+
}
|
|
50
53
|
function text(raw) {
|
|
51
54
|
return raw;
|
|
52
55
|
}
|
|
@@ -129,8 +132,9 @@ function textOrFileOption(cmd, name, opts = {}) {
|
|
|
129
132
|
return cmd;
|
|
130
133
|
}
|
|
131
134
|
function resolveTextOrFile(opts, name, { required = true } = {}) {
|
|
132
|
-
const
|
|
133
|
-
const
|
|
135
|
+
const record = opts;
|
|
136
|
+
const literal = record[name];
|
|
137
|
+
const ref = record[`${name}File`];
|
|
134
138
|
if (literal !== void 0 && ref !== void 0) {
|
|
135
139
|
throw new InvalidArgumentError3(`--${name} and --${name}-file are mutually exclusive; provide only one.`);
|
|
136
140
|
}
|
|
@@ -1536,7 +1540,7 @@ function get2(parent) {
|
|
|
1536
1540
|
|
|
1537
1541
|
// src/commands/issue/link-epic.ts
|
|
1538
1542
|
function linkEpic(parent) {
|
|
1539
|
-
const cmd = parent.command("link-epic").description("Link one or more issues to an epic").argument("<keys...>", "Issue keys to link", issueKey).requiredOption("--epic <epicKey>", "Epic issue key", issueKey);
|
|
1543
|
+
const cmd = parent.command("link-epic").description("Link one or more issues to an epic").argument("<keys...>", "Issue keys to link", listOf(issueKey)).requiredOption("--epic <epicKey>", "Epic issue key", issueKey);
|
|
1540
1544
|
examples(cmd, ["PROJ-456 --epic PROJ-123", "PROJ-456 PROJ-457 PROJ-458 --epic PROJ-123"]);
|
|
1541
1545
|
cmd.action(async (keys, opts) => {
|
|
1542
1546
|
const client = getClient();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jiradc-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27-g942e3c7.1",
|
|
4
4
|
"publish": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"commander": "^13.1.0",
|
|
15
15
|
"zod": "^3.25.67",
|
|
16
|
-
"jira-data-center-client": "1.0.39"
|
|
16
|
+
"jira-data-center-client": "1.0.39-g942e3c7.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "24.10.4",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsup",
|
|
35
35
|
"dev": "tsx src/index.ts",
|
|
36
|
-
"lint": "eslint src",
|
|
37
|
-
"lint:fix": "eslint src --fix",
|
|
36
|
+
"lint": "eslint src tests",
|
|
37
|
+
"lint:fix": "eslint src tests --fix",
|
|
38
38
|
"test": "vitest run",
|
|
39
39
|
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
40
40
|
}
|