jiradc-cli 1.0.2 → 1.0.3

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.
Files changed (121) hide show
  1. package/dist/commands/board/issues.d.ts.map +1 -1
  2. package/dist/commands/board/issues.js +10 -15
  3. package/dist/commands/board/issues.js.map +1 -1
  4. package/dist/commands/board/list.d.ts.map +1 -1
  5. package/dist/commands/board/list.js +9 -14
  6. package/dist/commands/board/list.js.map +1 -1
  7. package/dist/commands/field/options.d.ts.map +1 -1
  8. package/dist/commands/field/options.js +9 -14
  9. package/dist/commands/field/options.js.map +1 -1
  10. package/dist/commands/field/search.d.ts.map +1 -1
  11. package/dist/commands/field/search.js +4 -9
  12. package/dist/commands/field/search.js.map +1 -1
  13. package/dist/commands/issue/attachment/delete.d.ts.map +1 -1
  14. package/dist/commands/issue/attachment/delete.js +4 -9
  15. package/dist/commands/issue/attachment/delete.js.map +1 -1
  16. package/dist/commands/issue/attachment/download-all.d.ts.map +1 -1
  17. package/dist/commands/issue/attachment/download-all.js +32 -37
  18. package/dist/commands/issue/attachment/download-all.js.map +1 -1
  19. package/dist/commands/issue/attachment/download.d.ts.map +1 -1
  20. package/dist/commands/issue/attachment/download.js +17 -22
  21. package/dist/commands/issue/attachment/download.js.map +1 -1
  22. package/dist/commands/issue/attachment/list.d.ts.map +1 -1
  23. package/dist/commands/issue/attachment/list.js +18 -23
  24. package/dist/commands/issue/attachment/list.js.map +1 -1
  25. package/dist/commands/issue/attachment/upload.d.ts.map +1 -1
  26. package/dist/commands/issue/attachment/upload.js +18 -23
  27. package/dist/commands/issue/attachment/upload.js.map +1 -1
  28. package/dist/commands/issue/attachments.d.ts.map +1 -1
  29. package/dist/commands/issue/attachments.js +32 -37
  30. package/dist/commands/issue/attachments.js.map +1 -1
  31. package/dist/commands/issue/batch-changelog.d.ts.map +1 -1
  32. package/dist/commands/issue/batch-changelog.js +11 -16
  33. package/dist/commands/issue/batch-changelog.js.map +1 -1
  34. package/dist/commands/issue/batch-create.d.ts.map +1 -1
  35. package/dist/commands/issue/batch-create.js +12 -17
  36. package/dist/commands/issue/batch-create.js.map +1 -1
  37. package/dist/commands/issue/changelog.d.ts.map +1 -1
  38. package/dist/commands/issue/changelog.js +4 -9
  39. package/dist/commands/issue/changelog.js.map +1 -1
  40. package/dist/commands/issue/clone.d.ts.map +1 -1
  41. package/dist/commands/issue/clone.js +62 -67
  42. package/dist/commands/issue/clone.js.map +1 -1
  43. package/dist/commands/issue/comment-edit.d.ts.map +1 -1
  44. package/dist/commands/issue/comment-edit.js +4 -9
  45. package/dist/commands/issue/comment-edit.js.map +1 -1
  46. package/dist/commands/issue/comment.d.ts.map +1 -1
  47. package/dist/commands/issue/comment.js +4 -9
  48. package/dist/commands/issue/comment.js.map +1 -1
  49. package/dist/commands/issue/create.d.ts.map +1 -1
  50. package/dist/commands/issue/create.js +18 -23
  51. package/dist/commands/issue/create.js.map +1 -1
  52. package/dist/commands/issue/delete.d.ts.map +1 -1
  53. package/dist/commands/issue/delete.js +4 -9
  54. package/dist/commands/issue/delete.js.map +1 -1
  55. package/dist/commands/issue/dev-status.d.ts.map +1 -1
  56. package/dist/commands/issue/dev-status.js +68 -73
  57. package/dist/commands/issue/dev-status.js.map +1 -1
  58. package/dist/commands/issue/get-worklog.d.ts.map +1 -1
  59. package/dist/commands/issue/get-worklog.js +8 -13
  60. package/dist/commands/issue/get-worklog.js.map +1 -1
  61. package/dist/commands/issue/get.d.ts.map +1 -1
  62. package/dist/commands/issue/get.js +9 -14
  63. package/dist/commands/issue/get.js.map +1 -1
  64. package/dist/commands/issue/link-epic.d.ts.map +1 -1
  65. package/dist/commands/issue/link-epic.js +7 -12
  66. package/dist/commands/issue/link-epic.js.map +1 -1
  67. package/dist/commands/issue/link-types.d.ts.map +1 -1
  68. package/dist/commands/issue/link-types.js +4 -9
  69. package/dist/commands/issue/link-types.js.map +1 -1
  70. package/dist/commands/issue/link.d.ts.map +1 -1
  71. package/dist/commands/issue/link.js +9 -14
  72. package/dist/commands/issue/link.js.map +1 -1
  73. package/dist/commands/issue/search.d.ts.map +1 -1
  74. package/dist/commands/issue/search.js +10 -15
  75. package/dist/commands/issue/search.js.map +1 -1
  76. package/dist/commands/issue/transition.d.ts.map +1 -1
  77. package/dist/commands/issue/transition.js +4 -9
  78. package/dist/commands/issue/transition.js.map +1 -1
  79. package/dist/commands/issue/transitions.d.ts.map +1 -1
  80. package/dist/commands/issue/transitions.js +4 -9
  81. package/dist/commands/issue/transitions.js.map +1 -1
  82. package/dist/commands/issue/unlink.d.ts.map +1 -1
  83. package/dist/commands/issue/unlink.js +4 -9
  84. package/dist/commands/issue/unlink.js.map +1 -1
  85. package/dist/commands/issue/update.d.ts.map +1 -1
  86. package/dist/commands/issue/update.js +21 -26
  87. package/dist/commands/issue/update.js.map +1 -1
  88. package/dist/commands/issue/worklog.d.ts.map +1 -1
  89. package/dist/commands/issue/worklog.js +9 -14
  90. package/dist/commands/issue/worklog.js.map +1 -1
  91. package/dist/commands/project/components.d.ts.map +1 -1
  92. package/dist/commands/project/components.js +4 -9
  93. package/dist/commands/project/components.js.map +1 -1
  94. package/dist/commands/project/list.d.ts.map +1 -1
  95. package/dist/commands/project/list.js +4 -9
  96. package/dist/commands/project/list.js.map +1 -1
  97. package/dist/commands/project/versions.d.ts.map +1 -1
  98. package/dist/commands/project/versions.js +4 -9
  99. package/dist/commands/project/versions.js.map +1 -1
  100. package/dist/commands/sprint/create.d.ts.map +1 -1
  101. package/dist/commands/sprint/create.js +10 -15
  102. package/dist/commands/sprint/create.js.map +1 -1
  103. package/dist/commands/sprint/issues.d.ts.map +1 -1
  104. package/dist/commands/sprint/issues.js +10 -15
  105. package/dist/commands/sprint/issues.js.map +1 -1
  106. package/dist/commands/sprint/list.d.ts.map +1 -1
  107. package/dist/commands/sprint/list.js +7 -12
  108. package/dist/commands/sprint/list.js.map +1 -1
  109. package/dist/commands/sprint/update.d.ts.map +1 -1
  110. package/dist/commands/sprint/update.js +11 -16
  111. package/dist/commands/sprint/update.js.map +1 -1
  112. package/dist/commands/user/me.d.ts.map +1 -1
  113. package/dist/commands/user/me.js +4 -9
  114. package/dist/commands/user/me.js.map +1 -1
  115. package/dist/index.d.ts +1 -1
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +7 -2
  118. package/dist/index.js.map +1 -1
  119. package/dist/utils/client.js +1 -1
  120. package/dist/utils/client.js.map +1 -1
  121. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/commands/issue/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,iBAAiB,CAAC;SAC9B,MAAM,CAAC,mBAAmB,EAAE,uCAAuC,CAAC;SACpE,WAAW,CACV,OAAO,EACP,+FAA+F,CAChG;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAkC,EAAE,EAAE;QAChE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;YACvF,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/commands/issue/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,iBAAiB,CAAC;SAC9B,MAAM,CAAC,mBAAmB,EAAE,uCAAuC,CAAC;SACpE,WAAW,CACV,OAAO,EACP,+FAA+F,CAChG;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAkC,EAAE,EAAE;QAChE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;QACvF,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dev-status.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/dev-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAgG/C"}
1
+ {"version":3,"file":"dev-status.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/dev-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA4F/C"}
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function devStatus(parent) {
4
4
  parent
5
5
  .command('dev-status <key>')
@@ -7,80 +7,75 @@ export function devStatus(parent) {
7
7
  .option('--detail', 'Include PR URLs, commit IDs, and other details')
8
8
  .addHelpText('after', '\nExamples:\n jiradc issue dev-status PROJ-123\n jiradc issue dev-status PROJ-123 --detail')
9
9
  .action(async (key, opts) => {
10
- try {
11
- const client = getClient();
12
- // Resolve issue key to numeric ID (dev-status API requires ID)
13
- const issue = await client.issues.get({ issueKeyOrId: key, fields: ['summary'] });
14
- const issueId = issue.id;
15
- const result = await client.devStatus.getSummary(issueId);
16
- const s = result.summary;
17
- // Flatten into clean, agent-friendly output
18
- const source = (byInstance) => {
19
- const names = Object.values(byInstance).map((v) => v.name);
20
- return names.length > 0 ? names.join(', ') : undefined;
21
- };
22
- const devInfo = {
23
- pullRequests: {
24
- total: s.pullrequest.overall.count,
25
- open: s.pullrequest.overall.details.openCount,
26
- merged: s.pullrequest.overall.details.mergedCount,
27
- declined: s.pullrequest.overall.details.declinedCount,
28
- ...(source(s.pullrequest.byInstanceType) && { source: source(s.pullrequest.byInstanceType) }),
29
- },
30
- commits: {
31
- total: s.repository.overall.count,
32
- ...(s.repository.overall.lastUpdated && { lastUpdated: s.repository.overall.lastUpdated }),
33
- ...(source(s.repository.byInstanceType) && { source: source(s.repository.byInstanceType) }),
34
- },
35
- branches: { total: s.branch.overall.count },
36
- builds: {
37
- total: s.build.overall.count,
38
- ...(s.build.overall.count > 0 && {
39
- successful: s.build.overall.successfulBuildCount,
40
- failed: s.build.overall.failedBuildCount,
41
- unknown: s.build.overall.unknownBuildCount,
42
- }),
43
- },
44
- reviews: { total: s.review.overall.count },
45
- deployments: { total: s['deployment-environment'].overall.count },
46
- };
47
- if (opts.detail) {
48
- // Fetch PR and commit details in parallel
49
- const [prDetail, repoDetail] = await Promise.all([
50
- s.pullrequest.overall.count > 0 ? client.devStatus.getDetail(issueId, 'pullrequest') : null,
51
- s.repository.overall.count > 0 ? client.devStatus.getDetail(issueId, 'repository') : null,
52
- ]);
53
- if (prDetail) {
54
- const prs = prDetail.detail.flatMap((d) => d.pullRequests);
55
- devInfo.pullRequests.items = prs.map((pr) => ({
56
- id: pr.id,
57
- title: pr.name,
58
- status: pr.status,
59
- url: pr.url,
60
- author: pr.author.name,
61
- source: pr.source.branch,
62
- destination: pr.destination.branch,
63
- lastUpdate: pr.lastUpdate,
64
- }));
65
- }
66
- if (repoDetail) {
67
- const commits = repoDetail.detail.flatMap((d) => d.repositories.flatMap((r) => r.commits.map((c) => ({
68
- id: c.displayId,
69
- message: c.message.split('\n')[0],
70
- author: c.author.name,
71
- date: c.authorTimestamp,
72
- url: c.url,
73
- fileCount: c.fileCount,
74
- merge: c.merge,
75
- }))));
76
- devInfo.commits.items = commits;
77
- }
10
+ const client = getClient();
11
+ // Resolve issue key to numeric ID (dev-status API requires ID)
12
+ const issue = await client.issues.get({ issueKeyOrId: key, fields: ['summary'] });
13
+ const issueId = issue.id;
14
+ const result = await client.devStatus.getSummary(issueId);
15
+ const s = result.summary;
16
+ // Flatten into clean, agent-friendly output
17
+ const source = (byInstance) => {
18
+ const names = Object.values(byInstance).map((v) => v.name);
19
+ return names.length > 0 ? names.join(', ') : undefined;
20
+ };
21
+ const devInfo = {
22
+ pullRequests: {
23
+ total: s.pullrequest.overall.count,
24
+ open: s.pullrequest.overall.details.openCount,
25
+ merged: s.pullrequest.overall.details.mergedCount,
26
+ declined: s.pullrequest.overall.details.declinedCount,
27
+ ...(source(s.pullrequest.byInstanceType) && { source: source(s.pullrequest.byInstanceType) }),
28
+ },
29
+ commits: {
30
+ total: s.repository.overall.count,
31
+ ...(s.repository.overall.lastUpdated && { lastUpdated: s.repository.overall.lastUpdated }),
32
+ ...(source(s.repository.byInstanceType) && { source: source(s.repository.byInstanceType) }),
33
+ },
34
+ branches: { total: s.branch.overall.count },
35
+ builds: {
36
+ total: s.build.overall.count,
37
+ ...(s.build.overall.count > 0 && {
38
+ successful: s.build.overall.successfulBuildCount,
39
+ failed: s.build.overall.failedBuildCount,
40
+ unknown: s.build.overall.unknownBuildCount,
41
+ }),
42
+ },
43
+ reviews: { total: s.review.overall.count },
44
+ deployments: { total: s['deployment-environment'].overall.count },
45
+ };
46
+ if (opts.detail) {
47
+ // Fetch PR and commit details in parallel
48
+ const [prDetail, repoDetail] = await Promise.all([
49
+ s.pullrequest.overall.count > 0 ? client.devStatus.getDetail(issueId, 'pullrequest') : null,
50
+ s.repository.overall.count > 0 ? client.devStatus.getDetail(issueId, 'repository') : null,
51
+ ]);
52
+ if (prDetail) {
53
+ const prs = prDetail.detail.flatMap((d) => d.pullRequests);
54
+ devInfo.pullRequests.items = prs.map((pr) => ({
55
+ id: pr.id,
56
+ title: pr.name,
57
+ status: pr.status,
58
+ url: pr.url,
59
+ author: pr.author.name,
60
+ source: pr.source.branch,
61
+ destination: pr.destination.branch,
62
+ lastUpdate: pr.lastUpdate,
63
+ }));
64
+ }
65
+ if (repoDetail) {
66
+ const commits = repoDetail.detail.flatMap((d) => d.repositories.flatMap((r) => r.commits.map((c) => ({
67
+ id: c.displayId,
68
+ message: c.message.split('\n')[0],
69
+ author: c.author.name,
70
+ date: c.authorTimestamp,
71
+ url: c.url,
72
+ fileCount: c.fileCount,
73
+ merge: c.merge,
74
+ }))));
75
+ devInfo.commits.items = commits;
78
76
  }
79
- output(devInfo);
80
- }
81
- catch (err) {
82
- handleError(err);
83
77
  }
78
+ output(devInfo);
84
79
  });
85
80
  }
86
81
  //# sourceMappingURL=dev-status.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dev-status.js","sourceRoot":"","sources":["../../../src/commands/issue/dev-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,kBAAkB,CAAC;SAC3B,WAAW,CAAC,sEAAsE,CAAC;SACnF,MAAM,CAAC,UAAU,EAAE,gDAAgD,CAAC;SACpE,WAAW,CACV,OAAO,EAC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CAAC,GAAG;oBACV,SAAS,EAAE,CAAC,CAAC,SAAS;oBACtB,KAAK,EAAE,CAAC,CAAC,KAAK;iBACf,CAAC,CAAC,CACJ,CACF,CAAC;gBACD,OAAO,CAAC,OAAmC,CAAC,KAAK,GAAG,OAAO,CAAC;YAC/D,CAAC;QACH,CAAC;QAED,MAAM,CAAC,OAAO,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-worklog.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/get-worklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAuBhD"}
1
+ {"version":3,"file":"get-worklog.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/get-worklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAmBhD"}
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function getWorklog(parent) {
4
4
  parent
5
5
  .command('get-worklog <key>')
@@ -8,18 +8,13 @@ export function getWorklog(parent) {
8
8
  .option('--max <number>', 'Max results per page', parseInt)
9
9
  .addHelpText('after', '\nExamples:\n jiradc issue get-worklog PROJ-123\n jiradc issue get-worklog PROJ-123 --max 10\n jiradc issue get-worklog PROJ-123 --start-at 10 --max 5')
10
10
  .action(async (key, opts) => {
11
- try {
12
- const client = getClient();
13
- const result = await client.issues.getWorklogs({
14
- issueKeyOrId: key,
15
- startAt: opts.startAt,
16
- maxResults: opts.max,
17
- });
18
- output(result);
19
- }
20
- catch (err) {
21
- handleError(err);
22
- }
11
+ const client = getClient();
12
+ const result = await client.issues.getWorklogs({
13
+ issueKeyOrId: key,
14
+ startAt: opts.startAt,
15
+ maxResults: opts.max,
16
+ });
17
+ output(result);
23
18
  });
24
19
  }
25
20
  //# sourceMappingURL=get-worklog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-worklog.js","sourceRoot":"","sources":["../../../src/commands/issue/get-worklog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,MAAe;IACxC,MAAM;SACH,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,2BAA2B,CAAC;SACxC,MAAM,CAAC,qBAAqB,EAAE,4CAA4C,EAAE,QAAQ,CAAC;SACrF,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,CAAC;SAC1D,WAAW,CACV,OAAO,EACP,2JAA2J,CAC5J;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAwC,EAAE,EAAE;QACtE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;gBAC7C,YAAY,EAAE,GAAG;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,UAAU,EAAE,IAAI,CAAC,GAAG;aACrB,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"get-worklog.js","sourceRoot":"","sources":["../../../src/commands/issue/get-worklog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,UAAU,CAAC,MAAe;IACxC,MAAM;SACH,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,2BAA2B,CAAC;SACxC,MAAM,CAAC,qBAAqB,EAAE,4CAA4C,EAAE,QAAQ,CAAC;SACrF,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,CAAC;SAC1D,WAAW,CACV,OAAO,EACP,2JAA2J,CAC5J;SACA,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAwC,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YAC7C,YAAY,EAAE,GAAG;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,GAAG;SACrB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAyBzC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAqBzC"}
@@ -1,6 +1,6 @@
1
1
  import { getClient } from '../../utils/client.js';
2
2
  import { DEFAULT_FIELDS } from '../../utils/constants.js';
3
- import { output, handleError } from '../../utils/output.js';
3
+ import { output } from '../../utils/output.js';
4
4
  export function get(parent) {
5
5
  parent
6
6
  .command('get <key>')
@@ -10,19 +10,14 @@ export function get(parent) {
10
10
  .option('--expand <expand>', 'Expand options (e.g., "transitions", "changelog")')
11
11
  .addHelpText('after', '\nExamples:\n jiradc issue get PROJ-123\n jiradc issue get PROJ-123 --fields summary,status,assignee\n jiradc issue get PROJ-123 --all-fields\n jiradc issue get PROJ-123 --expand changelog,transitions')
12
12
  .action(async (key, opts) => {
13
- try {
14
- const client = getClient();
15
- const fields = opts.allFields ? undefined : (opts.fields?.split(',').map((f) => f.trim()) ?? DEFAULT_FIELDS);
16
- const result = await client.issues.get({
17
- issueKeyOrId: key,
18
- fields,
19
- expand: opts.expand,
20
- });
21
- output(result);
22
- }
23
- catch (err) {
24
- handleError(err);
25
- }
13
+ const client = getClient();
14
+ const fields = opts.allFields ? undefined : (opts.fields?.split(',').map((f) => f.trim()) ?? DEFAULT_FIELDS);
15
+ const result = await client.issues.get({
16
+ issueKeyOrId: key,
17
+ fields,
18
+ expand: opts.expand,
19
+ });
20
+ output(result);
26
21
  });
27
22
  }
28
23
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/issue/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,MAAe;IACjC,MAAM;SACH,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,mBAAmB,CAAC;SAChC,MAAM,CAAC,mBAAmB,EAAE,iEAAiE,CAAC;SAC9F,MAAM,CAAC,cAAc,EAAE,uCAAuC,CAAC;SAC/D,MAAM,CAAC,mBAAmB,EAAE,mDAAmD,CAAC;SAChF,WAAW,CACV,OAAO,EACP,8MAA8M,CAC/M;SACA,MAAM,CAAC,KAAK,EAAE,GAAW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,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,cAAc,CAAC,CAAC;QAC7G,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;YACrC,YAAY,EAAE,GAAG;YACjB,MAAM;YACN,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"link-epic.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link-epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAkB9C"}
1
+ {"version":3,"file":"link-epic.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link-epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAc9C"}
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function linkEpic(parent) {
4
4
  parent
5
5
  .command('link-epic <key>')
@@ -7,17 +7,12 @@ export function linkEpic(parent) {
7
7
  .requiredOption('--epic <epicKey>', 'Epic issue key')
8
8
  .addHelpText('after', '\nExamples:\n jiradc issue link-epic PROJ-456 --epic PROJ-123')
9
9
  .action(async (key, opts) => {
10
- try {
11
- const client = getClient();
12
- await client.issues.update({
13
- issueKeyOrId: key,
14
- fields: { customfield_10100: opts.epic },
15
- });
16
- output({ linked: true, issue: key, epic: opts.epic });
17
- }
18
- catch (err) {
19
- handleError(err);
20
- }
10
+ const client = getClient();
11
+ await client.issues.update({
12
+ issueKeyOrId: key,
13
+ fields: { customfield_10100: opts.epic },
14
+ });
15
+ output({ linked: true, issue: key, epic: opts.epic });
21
16
  });
22
17
  }
23
18
  //# sourceMappingURL=link-epic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-epic.js","sourceRoot":"","sources":["../../../src/commands/issue/link-epic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,0BAA0B,CAAC;SACvC,cAAc,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;SACpD,WAAW,CAAC,OAAO,EAAE,gEAAgE,CAAC;SACtF,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAsB,EAAE,EAAE;QACpD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;gBACzB,YAAY,EAAE,GAAG;gBACjB,MAAM,EAAE,EAAE,iBAAiB,EAAE,IAAI,CAAC,IAAI,EAAE;aACzC,CAAC,CAAC;YACH,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"link-epic.js","sourceRoot":"","sources":["../../../src/commands/issue/link-epic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,0BAA0B,CAAC;SACvC,cAAc,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;SACpD,WAAW,CAAC,OAAO,EAAE,gEAAgE,CAAC;SACtF,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,IAAsB,EAAE,EAAE;QACpD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;YACzB,YAAY,EAAE,GAAG;YACjB,MAAM,EAAE,EAAE,iBAAiB,EAAE,IAAI,CAAC,IAAI,EAAE;SACzC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"link-types.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAc/C"}
1
+ {"version":3,"file":"link-types.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU/C"}
@@ -1,19 +1,14 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function linkTypes(parent) {
4
4
  parent
5
5
  .command('link-types')
6
6
  .description('List all issue link types')
7
7
  .addHelpText('after', '\nExamples:\n jiradc issue link-types')
8
8
  .action(async () => {
9
- try {
10
- const client = getClient();
11
- const result = await client.links.getTypes();
12
- output(result);
13
- }
14
- catch (err) {
15
- handleError(err);
16
- }
9
+ const client = getClient();
10
+ const result = await client.links.getTypes();
11
+ output(result);
17
12
  });
18
13
  }
19
14
  //# sourceMappingURL=link-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-types.js","sourceRoot":"","sources":["../../../src/commands/issue/link-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,2BAA2B,CAAC;SACxC,WAAW,CAAC,OAAO,EAAE,wCAAwC,CAAC;SAC9D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC7C,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"link-types.js","sourceRoot":"","sources":["../../../src/commands/issue/link-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM;SACH,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,2BAA2B,CAAC;SACxC,WAAW,CAAC,OAAO,EAAE,wCAAwC,CAAC;SAC9D,MAAM,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC7C,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA0B1C"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAsB1C"}
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function link(parent) {
4
4
  parent
5
5
  .command('link')
@@ -10,19 +10,14 @@ export function link(parent) {
10
10
  .option('--comment <text>', 'Optional comment')
11
11
  .addHelpText('after', '\nExamples:\n jiradc issue link --type Relates --from AI-154 --to AI-149\n jiradc issue link --type Blocks --from PROJ-456 --to PROJ-123 # PROJ-456 blocks PROJ-123')
12
12
  .action(async (opts) => {
13
- try {
14
- const client = getClient();
15
- await client.links.create({
16
- typeName: opts.type,
17
- inwardIssueKey: opts.from,
18
- outwardIssueKey: opts.to,
19
- comment: opts.comment,
20
- });
21
- output({ created: true, type: opts.type, inward: opts.from, outward: opts.to });
22
- }
23
- catch (err) {
24
- handleError(err);
25
- }
13
+ const client = getClient();
14
+ await client.links.create({
15
+ typeName: opts.type,
16
+ inwardIssueKey: opts.from,
17
+ outwardIssueKey: opts.to,
18
+ comment: opts.comment,
19
+ });
20
+ output({ created: true, type: opts.type, inward: opts.from, outward: opts.to });
26
21
  });
27
22
  }
28
23
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../../src/commands/issue/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,IAAI,CAAC,MAAe;IAClC,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,0BAA0B,CAAC;SACvC,cAAc,CAAC,eAAe,EAAE,yDAAyD,CAAC;SAC1F,cAAc,CAAC,cAAc,EAAE,kDAAkD,CAAC;SAClF,cAAc,CAAC,YAAY,EAAE,yDAAyD,CAAC;SACvF,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;SAC9C,WAAW,CACV,OAAO,EACP,wKAAwK,CACzK;SACA,MAAM,CAAC,KAAK,EAAE,IAAkE,EAAE,EAAE;QACnF,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,QAAQ,EAAE,IAAI,CAAC,IAAI;gBACnB,cAAc,EAAE,IAAI,CAAC,IAAI;gBACzB,eAAe,EAAE,IAAI,CAAC,EAAE;gBACxB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;YACH,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,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
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA2B5C"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAuB5C"}
@@ -1,6 +1,6 @@
1
1
  import { getClient } from '../../utils/client.js';
2
2
  import { DEFAULT_FIELDS } from '../../utils/constants.js';
3
- import { output, handleError } from '../../utils/output.js';
3
+ import { output } from '../../utils/output.js';
4
4
  export function search(parent) {
5
5
  parent
6
6
  .command('search <jql>')
@@ -11,20 +11,15 @@ export function search(parent) {
11
11
  .option('--all-fields', 'Return all fields instead of defaults')
12
12
  .addHelpText('after', '\nExamples:\n jiradc issue search "project = PROJ AND status = Open"\n jiradc issue search "assignee = currentUser()" --max 10 --fields summary,status\n jiradc issue search "project = PROJ" --start-at 50 --max 50')
13
13
  .action(async (jql, opts) => {
14
- try {
15
- const client = getClient();
16
- const fields = opts.allFields ? undefined : (opts.fields?.split(',').map((f) => f.trim()) ?? DEFAULT_FIELDS);
17
- const result = await client.issues.search({
18
- jql,
19
- startAt: opts.startAt,
20
- maxResults: opts.max,
21
- fields,
22
- });
23
- output(result);
24
- }
25
- catch (err) {
26
- handleError(err);
27
- }
14
+ const client = getClient();
15
+ const fields = opts.allFields ? undefined : (opts.fields?.split(',').map((f) => f.trim()) ?? DEFAULT_FIELDS);
16
+ const result = await client.issues.search({
17
+ jql,
18
+ startAt: opts.startAt,
19
+ maxResults: opts.max,
20
+ fields,
21
+ });
22
+ output(result);
28
23
  });
29
24
  }
30
25
  //# sourceMappingURL=search.js.map
@@ -1 +1 @@
1
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CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAmBhD"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAehD"}
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function transition(parent) {
4
4
  parent
5
5
  .command('transition <key>')
@@ -8,14 +8,9 @@ export function transition(parent) {
8
8
  .option('--comment <text>', 'Comment to add during transition')
9
9
  .addHelpText('after', '\nExamples:\n jiradc issue transition PROJ-123 --to 31\n jiradc issue transition PROJ-123 --to 31 --comment "Moving to review"')
10
10
  .action(async (key, opts) => {
11
- try {
12
- const client = getClient();
13
- await client.issues.transition({ issueKeyOrId: key, transitionId: opts.to, comment: opts.comment });
14
- output({ transitioned: true, issueKey: key });
15
- }
16
- catch (err) {
17
- handleError(err);
18
- }
11
+ const client = getClient();
12
+ await client.issues.transition({ issueKeyOrId: key, transitionId: opts.to, comment: opts.comment });
13
+ output({ transitioned: true, issueKey: key });
19
14
  });
20
15
  }
21
16
  //# sourceMappingURL=transition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.js","sourceRoot":"","sources":["../../../src/commands/issue/transition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,M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AAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACpG,MAAM,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAcjD"}
1
+ {"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAUjD"}
@@ -1,19 +1,14 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function transitions(parent) {
4
4
  parent
5
5
  .command('transitions <key>')
6
6
  .description('Get available transitions for an issue')
7
7
  .addHelpText('after', '\nExamples:\n jiradc issue transitions PROJ-123')
8
8
  .action(async (key) => {
9
- try {
10
- const client = getClient();
11
- const result = await client.issues.getTransitions({ issueKeyOrId: key });
12
- output(result);
13
- }
14
- catch (err) {
15
- handleError(err);
16
- }
9
+ const client = getClient();
10
+ const result = await client.issues.getTransitions({ issueKeyOrId: key });
11
+ output(result);
17
12
  });
18
13
  }
19
14
  //# sourceMappingURL=transitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,wCAAwC,CAAC;SACrD,WAAW,CAAC,OAAO,EAAE,kDAAkD,CAAC;SACxE,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;YACzE,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"transitions.js","sourceRoot":"","sources":["../../../src/commands/issue/transitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,MAAM;SACH,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,wCAAwC,CAAC;SACrD,WAAW,CAAC,OAAO,EAAE,kDAAkD,CAAC;SACxE,MAAM,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;QACzE,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"unlink.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/unlink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAc5C"}
1
+ {"version":3,"file":"unlink.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/unlink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAU5C"}
@@ -1,19 +1,14 @@
1
1
  import { getClient } from '../../utils/client.js';
2
- import { output, handleError } from '../../utils/output.js';
2
+ import { output } from '../../utils/output.js';
3
3
  export function unlink(parent) {
4
4
  parent
5
5
  .command('unlink <id>')
6
6
  .description('Remove a link between two issues')
7
7
  .addHelpText('after', '\nExamples:\n jiradc issue unlink 12345')
8
8
  .action(async (id) => {
9
- try {
10
- const client = getClient();
11
- await client.links.remove({ linkId: id });
12
- output({ removed: true, linkId: id });
13
- }
14
- catch (err) {
15
- handleError(err);
16
- }
9
+ const client = getClient();
10
+ await client.links.remove({ linkId: id });
11
+ output({ removed: true, linkId: id });
17
12
  });
18
13
  }
19
14
  //# sourceMappingURL=unlink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unlink.js","sourceRoot":"","sources":["../../../src/commands/issue/unlink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,WAAW,CAAC,OAAO,EAAE,0CAA0C,CAAC;SAChE,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,EAAE;QAC3B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;YAC1C,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"unlink.js","sourceRoot":"","sources":["../../../src/commands/issue/unlink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,UAAU,MAAM,CAAC,MAAe;IACpC,MAAM;SACH,OAAO,CAAC,aAAa,CAAC;SACtB,WAAW,CAAC,kCAAkC,CAAC;SAC/C,WAAW,CAAC,OAAO,EAAE,0CAA0C,CAAC;SAChE,MAAM,CAAC,KAAK,EAAE,EAAU,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1C,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA+C5C"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA2C5C"}