@nulab/bee 1.1.0 → 1.1.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.
Files changed (253) hide show
  1. package/README.md +6 -3
  2. package/dist/activities-BPTHt_MD.mjs +69 -0
  3. package/dist/activities-CRiEq51-.mjs +72 -0
  4. package/dist/activities-DyOMqdsM.mjs +69 -0
  5. package/dist/activity-labels-CLFpxp8o.mjs +34 -0
  6. package/dist/add-Br-_TLRp.mjs +55 -0
  7. package/dist/add-CTmmy2t9.mjs +26 -0
  8. package/dist/add-user-BVWFcbH7.mjs +26 -0
  9. package/dist/api-kJR0fRPw.mjs +143 -0
  10. package/dist/attachments-CnL8t9tK.mjs +50 -0
  11. package/dist/attachments-D8IoJjYE.mjs +50 -0
  12. package/dist/attachments-DfgEkAY2.mjs +46 -0
  13. package/dist/auth-5TJGBPxi.mjs +13 -0
  14. package/dist/bee-command-v0qvZeth.mjs +57 -0
  15. package/dist/browse-vgF6nz7X.mjs +304 -0
  16. package/dist/category-BZ7XdVgx.mjs +11 -0
  17. package/dist/clone-DAWVtVbZ.mjs +43 -0
  18. package/dist/close-cTyZPv77.mjs +37 -0
  19. package/dist/comment-CkYJYFrF.mjs +115 -0
  20. package/dist/comment-DzRBQNv8.mjs +102 -0
  21. package/dist/comments-SnOZ-EUJ.mjs +47 -0
  22. package/dist/common-options-BuYWxYdO.mjs +45 -0
  23. package/dist/completion-yfcnEl7k.mjs +113 -0
  24. package/dist/count-BI7ld4k5.mjs +50 -0
  25. package/dist/count-Bw0mVlxC.mjs +40 -0
  26. package/dist/count-CH_LN4k6.mjs +51 -0
  27. package/dist/count-CHzDiMV3.mjs +25 -0
  28. package/dist/count-DvmYzPD_.mjs +46 -0
  29. package/dist/create-BHjwacOk.mjs +47 -0
  30. package/dist/create-BXWATibN.mjs +41 -0
  31. package/dist/create-BtLVFmbR.mjs +29 -0
  32. package/dist/create-CoF2bahH.mjs +29 -0
  33. package/dist/create-DhAOhro9.mjs +60 -0
  34. package/dist/create-DtMLv7Wq.mjs +26 -0
  35. package/dist/create-PtahSFdG.mjs +66 -0
  36. package/dist/create-Y4vo2zwX.mjs +44 -0
  37. package/dist/create-vwRKZ3Lm.mjs +31 -0
  38. package/dist/dashboard-CYYU5Yii.mjs +97 -0
  39. package/dist/delete-BCAPHs-g.mjs +25 -0
  40. package/dist/delete-BHNt5SWa.mjs +24 -0
  41. package/dist/delete-BlmanW0H.mjs +25 -0
  42. package/dist/delete-Bxk14ntp.mjs +24 -0
  43. package/dist/delete-C05oMZEW.mjs +24 -0
  44. package/dist/delete-CMwkcSiA.mjs +25 -0
  45. package/dist/delete-CTeH7nzL.mjs +29 -0
  46. package/dist/delete-D2yDBhZc.mjs +24 -0
  47. package/dist/delete-HMOfvtv3.mjs +25 -0
  48. package/dist/document-CiIzSyoS.mjs +13 -0
  49. package/dist/edit-BBvSbt0m.mjs +22 -0
  50. package/dist/edit-CN1gdpjd.mjs +37 -0
  51. package/dist/edit-C_KbKopB.mjs +36 -0
  52. package/dist/edit-D5Z45NVj.mjs +27 -0
  53. package/dist/edit-DKQw-XXP.mjs +27 -0
  54. package/dist/edit-DRxr4r-r.mjs +60 -0
  55. package/dist/edit-DxsP-aPX.mjs +43 -0
  56. package/dist/edit-Otc7XHU7.mjs +52 -0
  57. package/dist/format-DHAR0n3J.mjs +9 -0
  58. package/dist/history-DpjqxFkX.mjs +55 -0
  59. package/dist/index.mjs +35 -207
  60. package/dist/issue-BRzJy3k1.mjs +18 -0
  61. package/dist/issue-type-Byzh4yLx.mjs +11 -0
  62. package/dist/list-B3A5SDEm.mjs +35 -0
  63. package/dist/list-BMKaJoe_.mjs +64 -0
  64. package/dist/list-BOMbpS4m.mjs +46 -0
  65. package/dist/list-BmZ_JbLB.mjs +104 -0
  66. package/dist/list-BpUUxxwQ.mjs +46 -0
  67. package/dist/list-CgIebllW.mjs +94 -0
  68. package/dist/list-D0Z__0nw.mjs +42 -0
  69. package/dist/list-D3FkO9gb.mjs +56 -0
  70. package/dist/list-D7WLdHvX.mjs +42 -0
  71. package/dist/list-DAr3urtu.mjs +53 -0
  72. package/dist/list-DqpWd9aR.mjs +59 -0
  73. package/dist/list-VO_PbRjC.mjs +50 -0
  74. package/dist/list-b6ByzUFt.mjs +79 -0
  75. package/dist/list-jpQ28gU2.mjs +56 -0
  76. package/dist/list-y93EXyDj.mjs +42 -0
  77. package/dist/login-BnJYzdR3.mjs +228 -0
  78. package/dist/logout-YMnSRLLF.mjs +56 -0
  79. package/dist/me-CLPAe7X2.mjs +36 -0
  80. package/dist/milestone-Dc3alfp9.mjs +11 -0
  81. package/dist/notification-CsOuC8Uk.mjs +11 -0
  82. package/dist/output-DBvfyU1J.mjs +39 -0
  83. package/dist/pr-BBe07JUp.mjs +15 -0
  84. package/dist/project-Dilo1T5e.mjs +16 -0
  85. package/dist/read-BS2G4sNq.mjs +17 -0
  86. package/dist/read-CyCASx6U.mjs +17 -0
  87. package/dist/read-all-CjgMJ2to.mjs +16 -0
  88. package/dist/refresh-DDU2ZLnc.mjs +54 -0
  89. package/dist/registry-B0ZQfBD5.mjs +35 -0
  90. package/dist/registry-RATsKPUm.mjs +2 -0
  91. package/dist/remove-BSDJvkVJ.mjs +17 -0
  92. package/dist/remove-user-CShNCvf8.mjs +26 -0
  93. package/dist/reopen-BIRhcmsI.mjs +28 -0
  94. package/dist/repo-B2K8y0mD.mjs +10 -0
  95. package/dist/role-labels-CLA2wmjO.mjs +11 -0
  96. package/dist/space-BgZeUqoH.mjs +6 -0
  97. package/dist/{shared/bee.B3N0WBdU.mjs → src-BWaxjrq_.mjs} +143 -176
  98. package/dist/src-CP4YLIAh.mjs +1008 -0
  99. package/dist/src-CTD9-bSB.mjs +22760 -0
  100. package/dist/star-Sgb-e2CQ.mjs +11 -0
  101. package/dist/status-BkFMW8Jh.mjs +53 -0
  102. package/dist/status-CaGqMXh7.mjs +64 -0
  103. package/dist/status-DDFyQrRZ.mjs +11 -0
  104. package/dist/status-nI4Dpcoo.mjs +58 -0
  105. package/dist/stdin-C-vjNi9T.mjs +17 -0
  106. package/dist/switch-CMLfVGDN.mjs +34 -0
  107. package/dist/tags-DuMJZyBL.mjs +29 -0
  108. package/dist/team-DfQn8Tf5.mjs +6 -0
  109. package/dist/token-BmkUX9vc.mjs +28 -0
  110. package/dist/tree-CozBqPbN.mjs +46 -0
  111. package/dist/user-DMyFmoP3.mjs +11 -0
  112. package/dist/users-BSGqsGSy.mjs +51 -0
  113. package/dist/view-Bj99sk7O.mjs +48 -0
  114. package/dist/view-Bs8o0c7i.mjs +36 -0
  115. package/dist/view-C1ECwTMN.mjs +54 -0
  116. package/dist/view-COBYBfu7.mjs +38 -0
  117. package/dist/view-CZHT-HiE.mjs +36 -0
  118. package/dist/view-D1RuQJV6.mjs +76 -0
  119. package/dist/view-DBO75WzR.mjs +54 -0
  120. package/dist/view-DJHrnN8j.mjs +62 -0
  121. package/dist/view-DLx6qQt9.mjs +51 -0
  122. package/dist/watching-D22YYxOT.mjs +12 -0
  123. package/dist/wiki-B-DQUuIX.mjs +16 -0
  124. package/package.json +12 -7
  125. package/dist/chunks/activities.mjs +0 -77
  126. package/dist/chunks/activities2.mjs +0 -77
  127. package/dist/chunks/activities3.mjs +0 -77
  128. package/dist/chunks/add-user.mjs +0 -40
  129. package/dist/chunks/add.mjs +0 -65
  130. package/dist/chunks/add2.mjs +0 -41
  131. package/dist/chunks/api.mjs +0 -176
  132. package/dist/chunks/attachments.mjs +0 -49
  133. package/dist/chunks/attachments2.mjs +0 -49
  134. package/dist/chunks/attachments3.mjs +0 -50
  135. package/dist/chunks/browse.mjs +0 -271
  136. package/dist/chunks/clone.mjs +0 -62
  137. package/dist/chunks/close.mjs +0 -52
  138. package/dist/chunks/comment.mjs +0 -127
  139. package/dist/chunks/comment2.mjs +0 -113
  140. package/dist/chunks/comments.mjs +0 -59
  141. package/dist/chunks/completion.mjs +0 -118
  142. package/dist/chunks/count.mjs +0 -70
  143. package/dist/chunks/count2.mjs +0 -71
  144. package/dist/chunks/count3.mjs +0 -61
  145. package/dist/chunks/count4.mjs +0 -37
  146. package/dist/chunks/count5.mjs +0 -54
  147. package/dist/chunks/create.mjs +0 -62
  148. package/dist/chunks/create2.mjs +0 -90
  149. package/dist/chunks/create3.mjs +0 -66
  150. package/dist/chunks/create4.mjs +0 -76
  151. package/dist/chunks/create5.mjs +0 -58
  152. package/dist/chunks/create6.mjs +0 -39
  153. package/dist/chunks/create7.mjs +0 -47
  154. package/dist/chunks/create8.mjs +0 -51
  155. package/dist/chunks/create9.mjs +0 -51
  156. package/dist/chunks/dashboard.mjs +0 -86
  157. package/dist/chunks/delete.mjs +0 -50
  158. package/dist/chunks/delete2.mjs +0 -48
  159. package/dist/chunks/delete3.mjs +0 -48
  160. package/dist/chunks/delete4.mjs +0 -51
  161. package/dist/chunks/delete5.mjs +0 -52
  162. package/dist/chunks/delete6.mjs +0 -52
  163. package/dist/chunks/delete7.mjs +0 -64
  164. package/dist/chunks/delete8.mjs +0 -55
  165. package/dist/chunks/delete9.mjs +0 -50
  166. package/dist/chunks/edit.mjs +0 -58
  167. package/dist/chunks/edit2.mjs +0 -80
  168. package/dist/chunks/edit3.mjs +0 -67
  169. package/dist/chunks/edit4.mjs +0 -53
  170. package/dist/chunks/edit5.mjs +0 -45
  171. package/dist/chunks/edit6.mjs +0 -56
  172. package/dist/chunks/edit7.mjs +0 -52
  173. package/dist/chunks/edit8.mjs +0 -52
  174. package/dist/chunks/history.mjs +0 -58
  175. package/dist/chunks/index.mjs +0 -15
  176. package/dist/chunks/index10.mjs +0 -18
  177. package/dist/chunks/index11.mjs +0 -13
  178. package/dist/chunks/index12.mjs +0 -13
  179. package/dist/chunks/index13.mjs +0 -13
  180. package/dist/chunks/index14.mjs +0 -8
  181. package/dist/chunks/index15.mjs +0 -13
  182. package/dist/chunks/index16.mjs +0 -13
  183. package/dist/chunks/index17.mjs +0 -14
  184. package/dist/chunks/index2.mjs +0 -18
  185. package/dist/chunks/index3.mjs +0 -20
  186. package/dist/chunks/index4.mjs +0 -15
  187. package/dist/chunks/index5.mjs +0 -13
  188. package/dist/chunks/index6.mjs +0 -17
  189. package/dist/chunks/index7.mjs +0 -8
  190. package/dist/chunks/index8.mjs +0 -8
  191. package/dist/chunks/index9.mjs +0 -13
  192. package/dist/chunks/list.mjs +0 -54
  193. package/dist/chunks/list10.mjs +0 -46
  194. package/dist/chunks/list11.mjs +0 -51
  195. package/dist/chunks/list12.mjs +0 -47
  196. package/dist/chunks/list13.mjs +0 -47
  197. package/dist/chunks/list14.mjs +0 -56
  198. package/dist/chunks/list15.mjs +0 -48
  199. package/dist/chunks/list2.mjs +0 -105
  200. package/dist/chunks/list3.mjs +0 -87
  201. package/dist/chunks/list4.mjs +0 -81
  202. package/dist/chunks/list5.mjs +0 -79
  203. package/dist/chunks/list6.mjs +0 -47
  204. package/dist/chunks/list7.mjs +0 -50
  205. package/dist/chunks/list8.mjs +0 -48
  206. package/dist/chunks/list9.mjs +0 -55
  207. package/dist/chunks/login.mjs +0 -220
  208. package/dist/chunks/logout.mjs +0 -72
  209. package/dist/chunks/me.mjs +0 -50
  210. package/dist/chunks/read-all.mjs +0 -31
  211. package/dist/chunks/read.mjs +0 -31
  212. package/dist/chunks/read2.mjs +0 -29
  213. package/dist/chunks/refresh.mjs +0 -78
  214. package/dist/chunks/remove-user.mjs +0 -40
  215. package/dist/chunks/remove.mjs +0 -29
  216. package/dist/chunks/reopen.mjs +0 -44
  217. package/dist/chunks/status.mjs +0 -61
  218. package/dist/chunks/status2.mjs +0 -63
  219. package/dist/chunks/status3.mjs +0 -68
  220. package/dist/chunks/switch.mjs +0 -51
  221. package/dist/chunks/tags.mjs +0 -43
  222. package/dist/chunks/token.mjs +0 -38
  223. package/dist/chunks/tree.mjs +0 -63
  224. package/dist/chunks/users.mjs +0 -50
  225. package/dist/chunks/view.mjs +0 -60
  226. package/dist/chunks/view2.mjs +0 -96
  227. package/dist/chunks/view3.mjs +0 -70
  228. package/dist/chunks/view4.mjs +0 -72
  229. package/dist/chunks/view5.mjs +0 -63
  230. package/dist/chunks/view6.mjs +0 -54
  231. package/dist/chunks/view7.mjs +0 -50
  232. package/dist/chunks/view8.mjs +0 -63
  233. package/dist/chunks/view9.mjs +0 -50
  234. package/dist/shared/bee.BImw1HZl.mjs +0 -28
  235. package/dist/shared/bee.BTBGpv4K.mjs +0 -34
  236. package/dist/shared/bee.BXiuAfjJ.mjs +0 -10
  237. package/dist/shared/bee.BYqxm3yG.mjs +0 -24
  238. package/dist/shared/bee.Btmq3TXs.mjs +0 -19
  239. package/dist/shared/bee.C--ZWPxf.mjs +0 -14
  240. package/dist/shared/bee.C4p7W8_P.mjs +0 -18
  241. package/dist/shared/bee.CirccSk2.mjs +0 -51
  242. package/dist/shared/bee.CktwmH8R.mjs +0 -25
  243. package/dist/shared/bee.CzKcWSES.mjs +0 -42
  244. package/dist/shared/bee.DFnSWb6q.mjs +0 -396
  245. package/dist/shared/bee.DessOtkV.mjs +0 -132
  246. package/dist/shared/bee.DfqnFet4.mjs +0 -49
  247. package/dist/shared/bee.DoTvz3uW.mjs +0 -13
  248. package/dist/shared/bee.G4d7izLe.mjs +0 -14
  249. package/dist/shared/bee.KteAW2rM.mjs +0 -73
  250. package/dist/shared/bee.PF8hrVKn.mjs +0 -27
  251. package/dist/shared/bee.a05kNWpn.mjs +0 -32
  252. package/dist/shared/bee.n5MYN4a6.mjs +0 -12
  253. package/dist/shared/bee.x-FvgDW2.mjs +0 -37660
@@ -1,51 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import { s as statusUrl } from '../shared/bee.CzKcWSES.mjs';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'open';
22
- import 'node:module';
23
- import 'consola/utils';
24
-
25
- const create = new BeeCommand("create").summary("Create a status").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Status name").requiredOption(
26
- "--color <value>",
27
- "Display color {#ea2c00|#e87758|#e07b9a|#868cb7|#3b9dbd|#4caf93|#b0be3c|#eda62a|#f42858|#393939}"
28
- ).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
29
- {
30
- description: "Create a status",
31
- command: 'bee status create -p PROJECT -n "In Review" --color "#3b9dbd"'
32
- },
33
- {
34
- description: "Create interactively",
35
- command: 'bee status create -p PROJECT --color "#3b9dbd"'
36
- }
37
- ]).action(async (opts, cmd) => {
38
- await resolveOptions(cmd);
39
- const { client, host } = await getClient(opts.space);
40
- const name = await promptRequired("Status name:", opts.name);
41
- const status = await client.postProjectStatus(opts.project, {
42
- name,
43
- color: opts.color
44
- });
45
- outputResult(status, opts, (data) => {
46
- consola.success(`Created status ${data.name} (ID: ${data.id})`);
47
- consola.info(statusUrl(host, opts.project, data.id));
48
- });
49
- });
50
-
51
- export { create as default };
@@ -1,86 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import 'node:stream/consumers';
4
- import 'valibot';
5
- import '../shared/bee.BYqxm3yG.mjs';
6
- import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
7
- import { p as printTable } from '../shared/bee.a05kNWpn.mjs';
8
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
9
- import 'backlog-js';
10
- import 'node:http';
11
- import { o as openOrPrintUrl, d as dashboardUrl } from '../shared/bee.CzKcWSES.mjs';
12
- import 'node:child_process';
13
- import '../shared/bee.x-FvgDW2.mjs';
14
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
15
- import { j as json, w as web, n as noBrowser, s as space } from '../shared/bee.B3N0WBdU.mjs';
16
- import '../shared/bee.DFnSWb6q.mjs';
17
- import '../shared/bee.CktwmH8R.mjs';
18
- import '../shared/bee.DfqnFet4.mjs';
19
- import '../shared/bee.BImw1HZl.mjs';
20
- import 'open';
21
- import 'node:module';
22
- import 'commander';
23
- import 'consola/utils';
24
- import 'node:fs';
25
- import 'node:path';
26
- import 'node:os';
27
-
28
- const dashboard = new BeeCommand("dashboard").summary("Show a summary of your Backlog activity").description(
29
- `Displays assigned issues, unread notifications, and projects. Use \`--web\` to open in the browser.`
30
- ).addOption(json()).addOption(web("dashboard")).addOption(noBrowser()).addOption(space()).envVars([...ENV_AUTH]).examples([
31
- { description: "Show dashboard", command: "bee dashboard" },
32
- { description: "Open dashboard in browser", command: "bee dashboard --web" },
33
- { description: "Output as JSON", command: "bee dashboard --json" }
34
- ]).action(async (opts) => {
35
- const { client, host } = await getClient(opts.space);
36
- if (opts.web || opts.browser === false) {
37
- const url = dashboardUrl(host);
38
- await openOrPrintUrl(url, opts.browser === false, consola);
39
- return;
40
- }
41
- const [myself, notifications, issues, projects] = await Promise.all([
42
- client.getMyself(),
43
- client.getNotificationsCount({ alreadyRead: false, resourceAlreadyRead: false }),
44
- client.getIssues({
45
- assigneeId: [-1],
46
- statusId: [1, 2, 3],
47
- count: 20,
48
- sort: "dueDate",
49
- order: "asc"
50
- }),
51
- client.getProjects({ all: false })
52
- ]);
53
- const result = { myself, notifications, issues, projects };
54
- const jsonVal = opts.json === true ? "" : opts.json;
55
- outputResult(result, { json: jsonVal }, (data) => {
56
- consola.log("");
57
- consola.log(` ${data.myself.name} (${host})`);
58
- if (data.notifications.count > 0) {
59
- consola.log(` Unread notifications: ${data.notifications.count}`);
60
- }
61
- consola.log("");
62
- consola.log(" Assigned Issues:");
63
- if (data.issues.length === 0) {
64
- consola.log(" No assigned issues.");
65
- } else {
66
- const issueRows = data.issues.map((issue) => [
67
- { header: "KEY", value: issue.issueKey },
68
- { header: "SUMMARY", value: issue.summary },
69
- { header: "STATUS", value: issue.status?.name ?? "" },
70
- { header: "PRIORITY", value: issue.priority?.name ?? "" },
71
- { header: "DUE DATE", value: issue.dueDate ? formatDate(issue.dueDate) : "" }
72
- ]);
73
- printTable(issueRows);
74
- }
75
- if (data.projects.length > 0) {
76
- consola.log("");
77
- consola.log(" Projects:");
78
- for (const project of data.projects) {
79
- consola.log(` ${project.projectKey.padEnd(20)} ${project.name}`);
80
- }
81
- }
82
- consola.log("");
83
- });
84
- });
85
-
86
- export { dashboard as default };
@@ -1,50 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteProject = new BeeCommand("delete").summary("Delete a project").description(`This action is irreversible. Requires Administrator role.`).addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
25
- {
26
- description: "Delete a project (with confirmation)",
27
- command: "bee project delete -p PROJECT_KEY"
28
- },
29
- {
30
- description: "Delete a project without confirmation",
31
- command: "bee project delete -p PROJECT_KEY --yes"
32
- }
33
- ]).action(async (opts, cmd) => {
34
- await resolveOptions(cmd);
35
- const confirmed = await confirmOrExit(
36
- `Are you sure you want to delete project ${opts.project}? This cannot be undone.`,
37
- opts.yes
38
- );
39
- if (!confirmed) {
40
- return;
41
- }
42
- const { client } = await getClient(opts.space);
43
- const projectData = await client.deleteProject(opts.project);
44
- const jsonArg = opts.json === true ? "" : opts.json;
45
- outputResult(projectData, { ...opts, json: jsonArg }, (data) => {
46
- consola.success(`Deleted project ${data.projectKey}: ${data.name}`);
47
- });
48
- });
49
-
50
- export { deleteProject as default };
@@ -1,48 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { j as json, s as space, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteIssue = new BeeCommand("delete").summary("Delete an issue").description(`This action is irreversible.`).argument("<issue>", "Issue ID or issue key").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
25
- {
26
- description: "Delete an issue (with confirmation)",
27
- command: "bee issue delete PROJECT-123"
28
- },
29
- {
30
- description: "Delete an issue without confirmation",
31
- command: "bee issue delete PROJECT-123 --yes"
32
- }
33
- ]).action(async (issue, opts) => {
34
- const confirmed = await confirmOrExit(
35
- `Are you sure you want to delete issue ${issue}? This cannot be undone.`,
36
- opts.yes
37
- );
38
- if (!confirmed) {
39
- return;
40
- }
41
- const { client } = await getClient(opts.space);
42
- const issueData = await client.deleteIssue(issue);
43
- outputResult(issueData, opts, (data) => {
44
- consola.success(`Deleted issue ${data.issueKey}: ${data.summary}`);
45
- });
46
- });
47
-
48
- export { deleteIssue as default };
@@ -1,48 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { j as json, s as space, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteDocument = new BeeCommand("delete").summary("Delete a document").description(`This action is irreversible.`).argument("<document>", "Document ID").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
25
- {
26
- description: "Delete a document (with confirmation)",
27
- command: "bee document delete 12345"
28
- },
29
- {
30
- description: "Delete a document without confirmation",
31
- command: "bee document delete 12345 --yes"
32
- }
33
- ]).action(async (document, opts) => {
34
- const confirmed = await confirmOrExit(
35
- `Are you sure you want to delete document ${document}? This cannot be undone.`,
36
- opts.yes
37
- );
38
- if (!confirmed) {
39
- return;
40
- }
41
- const { client } = await getClient(opts.space);
42
- const doc = await client.deleteDocument(document);
43
- outputResult(doc, opts, (data) => {
44
- consola.success(`Deleted document ${data.title} (ID: ${data.id})`);
45
- });
46
- });
47
-
48
- export { deleteDocument as default };
@@ -1,51 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { j as json, s as space, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteWiki = new BeeCommand("delete").summary("Delete a wiki page").description(`This action is irreversible.`).argument("<wiki>", "Wiki page ID").option("--mail-notify", "Send notification email").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
25
- {
26
- description: "Delete a wiki page (with confirmation)",
27
- command: "bee wiki delete 12345"
28
- },
29
- {
30
- description: "Delete a wiki page without confirmation",
31
- command: "bee wiki delete 12345 --yes"
32
- }
33
- ]).action(async (wiki, opts) => {
34
- const confirmed = await confirmOrExit(
35
- `Are you sure you want to delete wiki page ${wiki}? This cannot be undone.`,
36
- opts.yes
37
- );
38
- if (!confirmed) {
39
- return;
40
- }
41
- const { client } = await getClient(opts.space);
42
- const wikiData = await client.deleteWiki(
43
- parseArg(vInteger, wiki, "wiki"),
44
- opts.mailNotify ?? false
45
- );
46
- outputResult(wikiData, opts, (data) => {
47
- consola.success(`Deleted wiki page ${data.id}: ${data.name}`);
48
- });
49
- });
50
-
51
- export { deleteWiki as default };
@@ -1,52 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteCategory = new BeeCommand("delete").summary("Delete a category").description(`This action is irreversible.`).argument("<category>", "Category ID").addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
25
- {
26
- description: "Delete a category (with confirmation)",
27
- command: "bee category delete 12345 -p PROJECT"
28
- },
29
- {
30
- description: "Delete without confirmation",
31
- command: "bee category delete 12345 -p PROJECT --yes"
32
- }
33
- ]).action(async (category, opts, cmd) => {
34
- await resolveOptions(cmd);
35
- const confirmed = await confirmOrExit(
36
- `Are you sure you want to delete category ${category}? This cannot be undone.`,
37
- opts.yes
38
- );
39
- if (!confirmed) {
40
- return;
41
- }
42
- const { client } = await getClient(opts.space);
43
- const result = await client.deleteCategories(
44
- opts.project,
45
- parseArg(vInteger, category, "category")
46
- );
47
- outputResult(result, opts, (data) => {
48
- consola.success(`Deleted category ${data.name} (ID: ${data.id})`);
49
- });
50
- });
51
-
52
- export { deleteCategory as default };
@@ -1,52 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteMilestone = new BeeCommand("delete").summary("Delete a milestone").description(`This action is irreversible.`).argument("<milestone>", "Milestone ID").addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
25
- {
26
- description: "Delete a milestone (with confirmation)",
27
- command: "bee milestone delete 12345 -p PROJECT"
28
- },
29
- {
30
- description: "Delete without confirmation",
31
- command: "bee milestone delete 12345 -p PROJECT --yes"
32
- }
33
- ]).action(async (milestone, opts, cmd) => {
34
- await resolveOptions(cmd);
35
- const confirmed = await confirmOrExit(
36
- `Are you sure you want to delete milestone ${milestone}? This cannot be undone.`,
37
- opts.yes
38
- );
39
- if (!confirmed) {
40
- return;
41
- }
42
- const { client } = await getClient(opts.space);
43
- const result = await client.deleteVersions(
44
- opts.project,
45
- parseArg(vInteger, milestone, "milestone")
46
- );
47
- outputResult(result, opts, (data) => {
48
- consola.success(`Deleted milestone ${data.name} (ID: ${data.id})`);
49
- });
50
- });
51
-
52
- export { deleteMilestone as default };
@@ -1,64 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteIssueType = new BeeCommand("delete").summary("Delete an issue type").description(
25
- `All issues of this type are reassigned to the substitute issue type. This action is irreversible.`
26
- ).argument("<issueType>", "Issue type ID").addOption(project()).requiredOption(
27
- "--substitute-issue-type-id <value>",
28
- "Replacement issue type ID for affected issues"
29
- ).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
30
- {
31
- description: "Delete an issue type",
32
- command: "bee issue-type delete 12345 -p PROJECT --substitute-issue-type-id 67890"
33
- },
34
- {
35
- description: "Delete without confirmation",
36
- command: "bee issue-type delete 12345 -p PROJECT --substitute-issue-type-id 67890 --yes"
37
- }
38
- ]).action(async (issueType, opts, cmd) => {
39
- await resolveOptions(cmd);
40
- const confirmed = await confirmOrExit(
41
- `Are you sure you want to delete issue type ${issueType}? This cannot be undone.`,
42
- opts.yes
43
- );
44
- if (!confirmed) {
45
- return;
46
- }
47
- const { client } = await getClient(opts.space);
48
- const result = await client.deleteIssueType(
49
- opts.project,
50
- parseArg(vInteger, issueType, "issueType"),
51
- {
52
- substituteIssueTypeId: parseArg(
53
- vInteger,
54
- opts.substituteIssueTypeId,
55
- "--substitute-issue-type-id"
56
- )
57
- }
58
- );
59
- outputResult(result, opts, (data) => {
60
- consola.success(`Deleted issue type ${data.name} (ID: ${data.id})`);
61
- });
62
- });
63
-
64
- export { deleteIssueType as default };
@@ -1,55 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { d as project, j as json, s as space, r as resolveOptions, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteStatus = new BeeCommand("delete").summary("Delete a status").description(
25
- `All issues with this status are reassigned to the substitute status. This action is irreversible.`
26
- ).argument("<status>", "Status ID").addOption(project()).requiredOption("--substitute-status-id <value>", "Replacement status ID for affected issues").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
27
- {
28
- description: "Delete a status",
29
- command: "bee status delete 12345 -p PROJECT --substitute-status-id 67890"
30
- },
31
- {
32
- description: "Delete without confirmation",
33
- command: "bee status delete 12345 -p PROJECT --substitute-status-id 67890 --yes"
34
- }
35
- ]).action(async (status, opts, cmd) => {
36
- await resolveOptions(cmd);
37
- const confirmed = await confirmOrExit(
38
- `Are you sure you want to delete status ${status}? This cannot be undone.`,
39
- opts.yes
40
- );
41
- if (!confirmed) {
42
- return;
43
- }
44
- const { client } = await getClient(opts.space);
45
- const result = await client.deleteProjectStatus(
46
- opts.project,
47
- parseArg(vInteger, status, "status"),
48
- parseArg(vInteger, opts.substituteStatusId, "--substitute-status-id")
49
- );
50
- outputResult(result, opts, (data) => {
51
- consola.success(`Deleted status ${data.name} (ID: ${data.id})`);
52
- });
53
- });
54
-
55
- export { deleteStatus as default };
@@ -1,50 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import { j as json, s as space, e as confirmOrExit } from '../shared/bee.B3N0WBdU.mjs';
4
- import 'node:stream/consumers';
5
- import 'valibot';
6
- import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
7
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
8
- import 'backlog-js';
9
- import 'node:http';
10
- import 'open';
11
- import 'node:child_process';
12
- import '../shared/bee.x-FvgDW2.mjs';
13
- import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
14
- import 'node:fs';
15
- import 'node:path';
16
- import 'node:os';
17
- import '../shared/bee.BImw1HZl.mjs';
18
- import 'commander';
19
- import '../shared/bee.CktwmH8R.mjs';
20
- import '../shared/bee.DfqnFet4.mjs';
21
- import 'node:module';
22
- import 'consola/utils';
23
-
24
- const deleteWatching = new BeeCommand("delete").summary("Delete a watching item").description(
25
- `Removes the issue from your watching list. You will no longer receive update notifications.`
26
- ).argument("<watching>", "Watching ID").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
27
- {
28
- description: "Delete a watching item (with confirmation)",
29
- command: "bee watching delete 12345"
30
- },
31
- {
32
- description: "Delete without confirmation",
33
- command: "bee watching delete 12345 --yes"
34
- }
35
- ]).action(async (watching, opts) => {
36
- const confirmed = await confirmOrExit(
37
- `Are you sure you want to delete watching ${watching}? This cannot be undone.`,
38
- opts.yes
39
- );
40
- if (!confirmed) {
41
- return;
42
- }
43
- const { client } = await getClient(opts.space);
44
- const result = await client.deletehWatchingListItem(parseArg(vInteger, watching, "watching"));
45
- outputResult(result, opts, (data) => {
46
- consola.success(`Deleted watching ${data.id}.`);
47
- });
48
- });
49
-
50
- export { deleteWatching as default };
@@ -1,58 +0,0 @@
1
- import consola from 'consola';
2
- import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
3
- import 'node:stream/consumers';
4
- import 'valibot';
5
- import '../shared/bee.BYqxm3yG.mjs';
6
- import { g as getClient } from '../shared/bee.DessOtkV.mjs';
7
- import 'backlog-js';
8
- import 'node:http';
9
- import 'open';
10
- import 'node:child_process';
11
- import '../shared/bee.x-FvgDW2.mjs';
12
- import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
13
- import { d as project, j as json, s as space, r as resolveOptions } from '../shared/bee.B3N0WBdU.mjs';
14
- import '../shared/bee.CktwmH8R.mjs';
15
- import '../shared/bee.DfqnFet4.mjs';
16
- import '../shared/bee.BImw1HZl.mjs';
17
- import 'node:module';
18
- import 'commander';
19
- import 'consola/utils';
20
- import 'node:fs';
21
- import 'node:path';
22
- import 'node:os';
23
-
24
- const edit = new BeeCommand("edit").summary("Edit a project").description(`Only specified fields are updated; others remain unchanged.`).addOption(project()).option("-n, --name <name>", "New name of the project").option("-k, --key <key>", "New key of the project").option("--chart-enabled", "Change whether the chart is enabled").option("--subtasking-enabled", "Change whether subtasking is enabled").option(
25
- "--project-leader-can-edit-project-leader",
26
- "Change whether project administrators can manage each other"
27
- ).option("--text-formatting-rule <rule>", "Change text formatting rule").option("--archived", "Change whether the project is archived").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
28
- {
29
- description: "Rename a project",
30
- command: 'bee project edit -p PROJECT_KEY --name "New Name"'
31
- },
32
- {
33
- description: "Archive a project",
34
- command: "bee project edit -p PROJECT_KEY --archived"
35
- },
36
- {
37
- description: "Change formatting rule to markdown",
38
- command: "bee project edit -p PROJECT_KEY --text-formatting-rule markdown"
39
- }
40
- ]).action(async (opts, cmd) => {
41
- await resolveOptions(cmd);
42
- const { client } = await getClient(opts.space);
43
- const projectData = await client.patchProject(opts.project, {
44
- name: opts.name,
45
- key: opts.key,
46
- chartEnabled: opts.chartEnabled,
47
- subtaskingEnabled: opts.subtaskingEnabled,
48
- projectLeaderCanEditProjectLeader: opts.projectLeaderCanEditProjectLeader,
49
- textFormattingRule: opts.textFormattingRule,
50
- archived: opts.archived
51
- });
52
- const jsonArg = opts.json === true ? "" : opts.json;
53
- outputResult(projectData, { ...opts, json: jsonArg }, (data) => {
54
- consola.success(`Updated project ${data.projectKey}: ${data.name}`);
55
- });
56
- });
57
-
58
- export { edit as default };