@nulab/bee 0.0.0 → 1.0.0-rc.0
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/README.md +36 -0
- package/bin/cli.mjs +2 -0
- package/dist/chunks/activities.mjs +90 -0
- package/dist/chunks/activities2.mjs +91 -0
- package/dist/chunks/activities3.mjs +91 -0
- package/dist/chunks/add-user.mjs +42 -0
- package/dist/chunks/add.mjs +62 -0
- package/dist/chunks/add2.mjs +40 -0
- package/dist/chunks/api.mjs +138 -0
- package/dist/chunks/attachments.mjs +48 -0
- package/dist/chunks/attachments2.mjs +48 -0
- package/dist/chunks/attachments3.mjs +49 -0
- package/dist/chunks/browse.mjs +270 -0
- package/dist/chunks/clone.mjs +61 -0
- package/dist/chunks/close.mjs +51 -0
- package/dist/chunks/comment.mjs +124 -0
- package/dist/chunks/comment2.mjs +112 -0
- package/dist/chunks/comments.mjs +58 -0
- package/dist/chunks/completion.mjs +118 -0
- package/dist/chunks/count.mjs +74 -0
- package/dist/chunks/count2.mjs +70 -0
- package/dist/chunks/count3.mjs +60 -0
- package/dist/chunks/count4.mjs +35 -0
- package/dist/chunks/count5.mjs +53 -0
- package/dist/chunks/create.mjs +61 -0
- package/dist/chunks/create2.mjs +83 -0
- package/dist/chunks/create3.mjs +65 -0
- package/dist/chunks/create4.mjs +74 -0
- package/dist/chunks/create5.mjs +57 -0
- package/dist/chunks/create6.mjs +38 -0
- package/dist/chunks/create7.mjs +46 -0
- package/dist/chunks/create8.mjs +50 -0
- package/dist/chunks/create9.mjs +50 -0
- package/dist/chunks/dashboard.mjs +85 -0
- package/dist/chunks/delete.mjs +48 -0
- package/dist/chunks/delete2.mjs +47 -0
- package/dist/chunks/delete3.mjs +47 -0
- package/dist/chunks/delete4.mjs +47 -0
- package/dist/chunks/delete5.mjs +48 -0
- package/dist/chunks/delete6.mjs +48 -0
- package/dist/chunks/delete7.mjs +55 -0
- package/dist/chunks/delete8.mjs +54 -0
- package/dist/chunks/delete9.mjs +49 -0
- package/dist/chunks/edit.mjs +56 -0
- package/dist/chunks/edit2.mjs +73 -0
- package/dist/chunks/edit3.mjs +65 -0
- package/dist/chunks/edit4.mjs +52 -0
- package/dist/chunks/edit5.mjs +38 -0
- package/dist/chunks/edit6.mjs +51 -0
- package/dist/chunks/edit7.mjs +47 -0
- package/dist/chunks/edit8.mjs +47 -0
- package/dist/chunks/history.mjs +57 -0
- package/dist/chunks/index.mjs +15 -0
- package/dist/chunks/index10.mjs +18 -0
- package/dist/chunks/index11.mjs +13 -0
- package/dist/chunks/index12.mjs +13 -0
- package/dist/chunks/index13.mjs +13 -0
- package/dist/chunks/index14.mjs +8 -0
- package/dist/chunks/index15.mjs +13 -0
- package/dist/chunks/index16.mjs +13 -0
- package/dist/chunks/index17.mjs +14 -0
- package/dist/chunks/index2.mjs +18 -0
- package/dist/chunks/index3.mjs +20 -0
- package/dist/chunks/index4.mjs +15 -0
- package/dist/chunks/index5.mjs +13 -0
- package/dist/chunks/index6.mjs +17 -0
- package/dist/chunks/index7.mjs +8 -0
- package/dist/chunks/index8.mjs +8 -0
- package/dist/chunks/index9.mjs +13 -0
- package/dist/chunks/list.mjs +53 -0
- package/dist/chunks/list10.mjs +44 -0
- package/dist/chunks/list11.mjs +49 -0
- package/dist/chunks/list12.mjs +45 -0
- package/dist/chunks/list13.mjs +45 -0
- package/dist/chunks/list14.mjs +55 -0
- package/dist/chunks/list15.mjs +47 -0
- package/dist/chunks/list2.mjs +95 -0
- package/dist/chunks/list3.mjs +86 -0
- package/dist/chunks/list4.mjs +80 -0
- package/dist/chunks/list5.mjs +78 -0
- package/dist/chunks/list6.mjs +45 -0
- package/dist/chunks/list7.mjs +49 -0
- package/dist/chunks/list8.mjs +47 -0
- package/dist/chunks/list9.mjs +53 -0
- package/dist/chunks/login.mjs +206 -0
- package/dist/chunks/logout.mjs +57 -0
- package/dist/chunks/me.mjs +49 -0
- package/dist/chunks/read-all.mjs +30 -0
- package/dist/chunks/read.mjs +30 -0
- package/dist/chunks/read2.mjs +28 -0
- package/dist/chunks/refresh.mjs +77 -0
- package/dist/chunks/remove-user.mjs +42 -0
- package/dist/chunks/remove.mjs +28 -0
- package/dist/chunks/reopen.mjs +43 -0
- package/dist/chunks/status.mjs +62 -0
- package/dist/chunks/status2.mjs +62 -0
- package/dist/chunks/status3.mjs +67 -0
- package/dist/chunks/switch.mjs +52 -0
- package/dist/chunks/tags.mjs +41 -0
- package/dist/chunks/token.mjs +39 -0
- package/dist/chunks/tree.mjs +61 -0
- package/dist/chunks/users.mjs +48 -0
- package/dist/chunks/view.mjs +58 -0
- package/dist/chunks/view2.mjs +95 -0
- package/dist/chunks/view3.mjs +69 -0
- package/dist/chunks/view4.mjs +71 -0
- package/dist/chunks/view5.mjs +62 -0
- package/dist/chunks/view6.mjs +53 -0
- package/dist/chunks/view7.mjs +49 -0
- package/dist/chunks/view8.mjs +62 -0
- package/dist/chunks/view9.mjs +49 -0
- package/dist/index.mjs +152 -0
- package/dist/shared/bee.-8tk76YJ.mjs +42 -0
- package/dist/shared/bee.BTBGpv4K.mjs +34 -0
- package/dist/shared/bee.BXiuAfjJ.mjs +10 -0
- package/dist/shared/bee.BeQSH2t0.mjs +25 -0
- package/dist/shared/bee.Btmq3TXs.mjs +19 -0
- package/dist/shared/bee.C--ZWPxf.mjs +14 -0
- package/dist/shared/bee.CCNmDHVv.mjs +33 -0
- package/dist/shared/bee.CQ3kBgas.mjs +58 -0
- package/dist/shared/bee.CThuQMit.mjs +124 -0
- package/dist/shared/bee.ChBdZ0cH.mjs +9 -0
- package/dist/shared/bee.CktwmH8R.mjs +25 -0
- package/dist/shared/bee.CzKcWSES.mjs +42 -0
- package/dist/shared/bee.D6yQ6Pqf.mjs +18 -0
- package/dist/shared/bee.DHTPkjMh.mjs +48 -0
- package/dist/shared/bee.DVTuFf-T.mjs +276 -0
- package/dist/shared/bee.DoTvz3uW.mjs +13 -0
- package/dist/shared/bee.Ds2l-nTJ.mjs +308 -0
- package/dist/shared/bee.IM3QELRf.mjs +32 -0
- package/dist/shared/bee.XxOB1Her.mjs +8 -0
- package/dist/shared/bee.n5MYN4a6.mjs +12 -0
- package/dist/shared/bee.sHWg0IFT.mjs +22 -0
- package/package.json +50 -2
- package/.github/workflows/initial-release.yml +0 -23
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
+
import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.DHTPkjMh.mjs';
|
|
12
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
13
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
15
|
+
import 'node:fs';
|
|
16
|
+
import 'node:path';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
+
import 'commander';
|
|
21
|
+
import 'consola/utils';
|
|
22
|
+
|
|
23
|
+
const edit = new BeeCommand("edit").summary("Edit a milestone").description(`Only specified fields are updated; others remain unchanged.`).argument("<milestone>", "Milestone ID").addOption(project()).requiredOption("-n, --name <value>", "New name of the milestone").option("-d, --description <value>", "New description of the milestone").option("--start-date <yyyy-MM-dd>", "New start date").option("--release-due-date <yyyy-MM-dd>", "New release due date").option("--archived", "Change whether the milestone is archived").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
24
|
+
{
|
|
25
|
+
description: "Rename a milestone",
|
|
26
|
+
command: 'bee milestone edit 12345 -p PROJECT -n "v2.0.0"'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
description: "Archive a milestone",
|
|
30
|
+
command: "bee milestone edit 12345 -p PROJECT --archived"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
description: "Update release date",
|
|
34
|
+
command: "bee milestone edit 12345 -p PROJECT --release-due-date 2026-12-31"
|
|
35
|
+
}
|
|
36
|
+
]).action(async (milestone, opts, cmd) => {
|
|
37
|
+
await resolveOptions(cmd);
|
|
38
|
+
const { client } = await getClient(opts.space);
|
|
39
|
+
const result = await client.patchVersions(opts.project, Number(milestone), {
|
|
40
|
+
name: opts.name,
|
|
41
|
+
description: opts.description,
|
|
42
|
+
startDate: opts.startDate,
|
|
43
|
+
releaseDueDate: opts.releaseDueDate,
|
|
44
|
+
archived: opts.archived
|
|
45
|
+
});
|
|
46
|
+
outputResult(result, opts, (data) => {
|
|
47
|
+
consola.success(`Updated milestone ${data.name} (ID: ${data.id})`);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { edit as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
+
import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.DHTPkjMh.mjs';
|
|
12
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
13
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
15
|
+
import 'node:fs';
|
|
16
|
+
import 'node:path';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
+
import 'commander';
|
|
21
|
+
import 'consola/utils';
|
|
22
|
+
|
|
23
|
+
const edit = new BeeCommand("edit").summary("Edit an issue type").description(`Only specified fields are updated; others remain unchanged.`).argument("<issueType>", "Issue type ID").addOption(project()).option("-n, --name <value>", "New name of the issue type").option(
|
|
24
|
+
"--color <value>",
|
|
25
|
+
"Change display color {#e30000|#990000|#934981|#814fbc|#2779ca|#007e9a|#7ea800|#ff9200|#ff3265|#666665}"
|
|
26
|
+
).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
27
|
+
{
|
|
28
|
+
description: "Rename an issue type",
|
|
29
|
+
command: 'bee issue-type edit 12345 -p PROJECT -n "New Name"'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
description: "Change issue type color",
|
|
33
|
+
command: 'bee issue-type edit 12345 -p PROJECT --color "#e30000"'
|
|
34
|
+
}
|
|
35
|
+
]).action(async (issueType, opts, cmd) => {
|
|
36
|
+
await resolveOptions(cmd);
|
|
37
|
+
const { client } = await getClient(opts.space);
|
|
38
|
+
const result = await client.patchIssueType(opts.project, Number(issueType), {
|
|
39
|
+
name: opts.name,
|
|
40
|
+
color: opts.color
|
|
41
|
+
});
|
|
42
|
+
outputResult(result, opts, (data) => {
|
|
43
|
+
consola.success(`Updated issue type ${data.name} (ID: ${data.id})`);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export { edit as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
+
import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.DHTPkjMh.mjs';
|
|
12
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
13
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
15
|
+
import 'node:fs';
|
|
16
|
+
import 'node:path';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
+
import 'commander';
|
|
21
|
+
import 'consola/utils';
|
|
22
|
+
|
|
23
|
+
const edit = new BeeCommand("edit").summary("Edit a status").description(`Only specified fields are updated; others remain unchanged.`).argument("<status>", "Status ID").addOption(project()).option("-n, --name <value>", "New name of the status").option(
|
|
24
|
+
"--color <value>",
|
|
25
|
+
"Change display color {#ea2c00|#e87758|#e07b9a|#868cb7|#3b9dbd|#4caf93|#b0be3c|#eda62a|#f42858|#393939}"
|
|
26
|
+
).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
27
|
+
{
|
|
28
|
+
description: "Rename a status",
|
|
29
|
+
command: 'bee status edit 12345 -p PROJECT -n "New Name"'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
description: "Change status color",
|
|
33
|
+
command: 'bee status edit 12345 -p PROJECT --color "#e30000"'
|
|
34
|
+
}
|
|
35
|
+
]).action(async (status, opts, cmd) => {
|
|
36
|
+
await resolveOptions(cmd);
|
|
37
|
+
const { client } = await getClient(opts.space);
|
|
38
|
+
const result = await client.patchProjectStatus(opts.project, Number(status), {
|
|
39
|
+
name: opts.name,
|
|
40
|
+
color: opts.color
|
|
41
|
+
});
|
|
42
|
+
outputResult(result, opts, (data) => {
|
|
43
|
+
consola.success(`Updated status ${data.name} (ID: ${data.id})`);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export { edit as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
11
|
+
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
12
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
+
import { m as minId, l as maxId, b as count, o as order, j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
14
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
15
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
17
|
+
import 'node:fs';
|
|
18
|
+
import 'node:path';
|
|
19
|
+
import 'node:os';
|
|
20
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
21
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
22
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
23
|
+
import 'commander';
|
|
24
|
+
import 'consola/utils';
|
|
25
|
+
|
|
26
|
+
const history = new BeeCommand("history").summary("View wiki page history").description(`Shows version number, updater, and update date for each revision.`).argument("<wiki>", "Wiki page ID").addOption(minId()).addOption(maxId()).addOption(count()).addOption(order()).addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
|
|
27
|
+
{ description: "View wiki page history", command: "bee wiki history 12345" },
|
|
28
|
+
{
|
|
29
|
+
description: "View history in ascending order",
|
|
30
|
+
command: "bee wiki history 12345 --order asc"
|
|
31
|
+
},
|
|
32
|
+
{ description: "Output as JSON", command: "bee wiki history 12345 --json" }
|
|
33
|
+
]).action(async (wiki, opts) => {
|
|
34
|
+
const { client } = await getClient(opts.space);
|
|
35
|
+
const histories = await client.getWikisHistory(Number(wiki), {
|
|
36
|
+
minId: opts.minId ? Number(opts.minId) : void 0,
|
|
37
|
+
maxId: opts.maxId ? Number(opts.maxId) : void 0,
|
|
38
|
+
count: opts.count ? Number(opts.count) : void 0,
|
|
39
|
+
order: opts.order
|
|
40
|
+
});
|
|
41
|
+
outputResult(histories, opts, (data) => {
|
|
42
|
+
if (data.length === 0) {
|
|
43
|
+
consola.info("No history found.");
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const rows = data.map(
|
|
47
|
+
(h) => [
|
|
48
|
+
{ header: "VERSION", value: String(h.version) },
|
|
49
|
+
{ header: "UPDATED BY", value: h.createdUser.name },
|
|
50
|
+
{ header: "UPDATED", value: formatDate(h.created) }
|
|
51
|
+
]
|
|
52
|
+
);
|
|
53
|
+
printTable(rows);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export { history as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const auth = new BeeCommand("auth").summary("Authenticate bee with Backlog");
|
|
6
|
+
await auth.addCommands([
|
|
7
|
+
import('./login.mjs'),
|
|
8
|
+
import('./logout.mjs'),
|
|
9
|
+
import('./status.mjs'),
|
|
10
|
+
import('./token.mjs'),
|
|
11
|
+
import('./refresh.mjs'),
|
|
12
|
+
import('./switch.mjs')
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { auth as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const wiki = new BeeCommand("wiki").summary("Manage Backlog wiki pages");
|
|
6
|
+
await wiki.addCommands([
|
|
7
|
+
import('./list9.mjs'),
|
|
8
|
+
import('./view8.mjs'),
|
|
9
|
+
import('./count4.mjs'),
|
|
10
|
+
import('./tags.mjs'),
|
|
11
|
+
import('./history.mjs'),
|
|
12
|
+
import('./attachments3.mjs'),
|
|
13
|
+
import('./create5.mjs'),
|
|
14
|
+
import('./edit4.mjs'),
|
|
15
|
+
import('./delete4.mjs')
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
export { wiki as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const category = new BeeCommand("category").summary("Manage project categories");
|
|
6
|
+
await category.addCommands([
|
|
7
|
+
import('./list10.mjs'),
|
|
8
|
+
import('./create6.mjs'),
|
|
9
|
+
import('./edit5.mjs'),
|
|
10
|
+
import('./delete5.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { category as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const milestone = new BeeCommand("milestone").summary("Manage project milestones");
|
|
6
|
+
await milestone.addCommands([
|
|
7
|
+
import('./list11.mjs'),
|
|
8
|
+
import('./create7.mjs'),
|
|
9
|
+
import('./edit6.mjs'),
|
|
10
|
+
import('./delete6.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { milestone as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const issueType = new BeeCommand("issue-type").summary("Manage project issue types");
|
|
6
|
+
await issueType.addCommands([
|
|
7
|
+
import('./list12.mjs'),
|
|
8
|
+
import('./create8.mjs'),
|
|
9
|
+
import('./edit7.mjs'),
|
|
10
|
+
import('./delete7.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { issueType as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const space = new BeeCommand("space").summary("Manage space information");
|
|
6
|
+
await space.addCommands([import('./activities3.mjs')]);
|
|
7
|
+
|
|
8
|
+
export { space as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const status = new BeeCommand("status").summary("Manage project statuses");
|
|
6
|
+
await status.addCommands([
|
|
7
|
+
import('./list13.mjs'),
|
|
8
|
+
import('./create9.mjs'),
|
|
9
|
+
import('./edit8.mjs'),
|
|
10
|
+
import('./delete8.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { status as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const star = new BeeCommand("star").summary("Manage stars");
|
|
6
|
+
await star.addCommands([
|
|
7
|
+
import('./add.mjs'),
|
|
8
|
+
import('./list14.mjs'),
|
|
9
|
+
import('./count5.mjs'),
|
|
10
|
+
import('./remove.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { star as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const watching = new BeeCommand("watching").summary("Manage watching (issue subscriptions)");
|
|
6
|
+
await watching.addCommands([
|
|
7
|
+
import('./list15.mjs'),
|
|
8
|
+
import('./add2.mjs'),
|
|
9
|
+
import('./view9.mjs'),
|
|
10
|
+
import('./delete9.mjs'),
|
|
11
|
+
import('./read2.mjs')
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export { watching as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const project = new BeeCommand("project").summary("Manage Backlog projects");
|
|
6
|
+
await project.addCommands([
|
|
7
|
+
import('./list.mjs'),
|
|
8
|
+
import('./view.mjs'),
|
|
9
|
+
import('./create.mjs'),
|
|
10
|
+
import('./edit.mjs'),
|
|
11
|
+
import('./delete.mjs'),
|
|
12
|
+
import('./users.mjs'),
|
|
13
|
+
import('./activities.mjs'),
|
|
14
|
+
import('./add-user.mjs'),
|
|
15
|
+
import('./remove-user.mjs')
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
export { project as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const issue = new BeeCommand("issue").summary("Manage Backlog issues");
|
|
6
|
+
await issue.addCommands([
|
|
7
|
+
import('./list2.mjs'),
|
|
8
|
+
import('./view2.mjs'),
|
|
9
|
+
import('./status2.mjs'),
|
|
10
|
+
import('./create2.mjs'),
|
|
11
|
+
import('./edit2.mjs'),
|
|
12
|
+
import('./close.mjs'),
|
|
13
|
+
import('./reopen.mjs'),
|
|
14
|
+
import('./attachments.mjs'),
|
|
15
|
+
import('./comment.mjs'),
|
|
16
|
+
import('./count.mjs'),
|
|
17
|
+
import('./delete2.mjs')
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
export { issue as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const document = new BeeCommand("document").summary("Manage Backlog documents");
|
|
6
|
+
await document.addCommands([
|
|
7
|
+
import('./list3.mjs'),
|
|
8
|
+
import('./view3.mjs'),
|
|
9
|
+
import('./tree.mjs'),
|
|
10
|
+
import('./attachments2.mjs'),
|
|
11
|
+
import('./create3.mjs'),
|
|
12
|
+
import('./delete3.mjs')
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export { document as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const notification = new BeeCommand("notification").summary("Manage Backlog notifications");
|
|
6
|
+
await notification.addCommands([
|
|
7
|
+
import('./list4.mjs'),
|
|
8
|
+
import('./count2.mjs'),
|
|
9
|
+
import('./read.mjs'),
|
|
10
|
+
import('./read-all.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { notification as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const pr = new BeeCommand("pr").summary("Manage Backlog pull requests");
|
|
6
|
+
await pr.addCommands([
|
|
7
|
+
import('./list5.mjs'),
|
|
8
|
+
import('./view4.mjs'),
|
|
9
|
+
import('./comments.mjs'),
|
|
10
|
+
import('./status3.mjs'),
|
|
11
|
+
import('./create4.mjs'),
|
|
12
|
+
import('./edit3.mjs'),
|
|
13
|
+
import('./comment2.mjs'),
|
|
14
|
+
import('./count3.mjs')
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export { pr as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const repo = new BeeCommand("repo").summary("Manage Backlog Git repositories");
|
|
6
|
+
await repo.addCommands([import('./list6.mjs'), import('./view5.mjs'), import('./clone.mjs')]);
|
|
7
|
+
|
|
8
|
+
export { repo as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const team = new BeeCommand("team").summary("Manage Backlog teams");
|
|
6
|
+
await team.addCommands([import('./list7.mjs'), import('./view6.mjs')]);
|
|
7
|
+
|
|
8
|
+
export { team as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { B as BeeCommand } from '../shared/bee.CQ3kBgas.mjs';
|
|
2
|
+
import 'commander';
|
|
3
|
+
import 'consola/utils';
|
|
4
|
+
|
|
5
|
+
const user = new BeeCommand("user").summary("Manage Backlog users");
|
|
6
|
+
await user.addCommands([
|
|
7
|
+
import('./list8.mjs'),
|
|
8
|
+
import('./view7.mjs'),
|
|
9
|
+
import('./me.mjs'),
|
|
10
|
+
import('./activities2.mjs')
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export { user as default };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
13
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
16
|
+
import 'node:fs';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:os';
|
|
19
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
20
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
21
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
22
|
+
import 'commander';
|
|
23
|
+
import 'consola/utils';
|
|
24
|
+
|
|
25
|
+
const list = new BeeCommand("list").summary("List projects").description(
|
|
26
|
+
`By default, only active (non-archived) projects are shown. Use \`--all\` to list all projects in the space (admin only).`
|
|
27
|
+
).option("--archived", "Include archived projects").option("--all", "Include all projects (admin only)").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
|
|
28
|
+
{ description: "List your active projects", command: "bee project list" },
|
|
29
|
+
{ description: "Include archived projects", command: "bee project list --archived" },
|
|
30
|
+
{ description: "List all projects (admin only)", command: "bee project list --all" },
|
|
31
|
+
{ description: "Output as JSON", command: "bee project list --json" }
|
|
32
|
+
]).action(async (opts) => {
|
|
33
|
+
const { client } = await getClient(opts.space);
|
|
34
|
+
const projects = await client.getProjects({
|
|
35
|
+
archived: opts.archived,
|
|
36
|
+
all: opts.all
|
|
37
|
+
});
|
|
38
|
+
const jsonArg = opts.json === true ? "" : opts.json;
|
|
39
|
+
outputResult(projects, { ...opts, json: jsonArg }, (data) => {
|
|
40
|
+
if (data.length === 0) {
|
|
41
|
+
consola.info("No projects found.");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const rows = data.map((project) => [
|
|
45
|
+
{ header: "KEY", value: project.projectKey },
|
|
46
|
+
{ header: "NAME", value: project.name },
|
|
47
|
+
{ header: "STATUS", value: project.archived ? "Archived" : "Active" }
|
|
48
|
+
]);
|
|
49
|
+
printTable(rows);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export { list as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
13
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
16
|
+
import 'node:fs';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:os';
|
|
19
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
20
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
21
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
22
|
+
import 'commander';
|
|
23
|
+
import 'consola/utils';
|
|
24
|
+
|
|
25
|
+
const list = new BeeCommand("list").summary("List categories").description(`Categories help organize issues by grouping them into logical areas.`).argument("[project]", "Project ID or project key").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
26
|
+
{ description: "List all categories in a project", command: "bee category list PROJECT" },
|
|
27
|
+
{ description: "Output as JSON", command: "bee category list PROJECT --json" }
|
|
28
|
+
]).action(async (project, opts) => {
|
|
29
|
+
const { client } = await getClient(opts.space);
|
|
30
|
+
const categories = await client.getCategories(project);
|
|
31
|
+
outputResult(categories, opts, (data) => {
|
|
32
|
+
if (data.length === 0) {
|
|
33
|
+
consola.info("No categories found.");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const rows = data.map((c) => [
|
|
37
|
+
{ header: "ID", value: String(c.id) },
|
|
38
|
+
{ header: "NAME", value: c.name }
|
|
39
|
+
]);
|
|
40
|
+
printTable(rows);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { list as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
13
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
16
|
+
import 'node:fs';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:os';
|
|
19
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
20
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
21
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
22
|
+
import 'commander';
|
|
23
|
+
import 'consola/utils';
|
|
24
|
+
|
|
25
|
+
const list = new BeeCommand("list").summary("List milestones").description(
|
|
26
|
+
`Milestones (versions) track release schedules and group issues by development cycle.`
|
|
27
|
+
).argument("[project]", "Project ID or project key").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
28
|
+
{ description: "List all milestones", command: "bee milestone list PROJECT" },
|
|
29
|
+
{ description: "Output as JSON", command: "bee milestone list PROJECT --json" }
|
|
30
|
+
]).action(async (project, opts) => {
|
|
31
|
+
const { client } = await getClient(opts.space);
|
|
32
|
+
const milestones = await client.getVersions(project);
|
|
33
|
+
outputResult(milestones, opts, (data) => {
|
|
34
|
+
if (data.length === 0) {
|
|
35
|
+
consola.info("No milestones found.");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const rows = data.map((m) => [
|
|
39
|
+
{ header: "ID", value: String(m.id) },
|
|
40
|
+
{ header: "NAME", value: m.name },
|
|
41
|
+
{ header: "START DATE", value: m.startDate?.slice(0, 10) ?? "" },
|
|
42
|
+
{ header: "RELEASE DUE DATE", value: m.releaseDueDate?.slice(0, 10) ?? "" },
|
|
43
|
+
{ header: "ARCHIVED", value: m.archived ? "Yes" : "No" }
|
|
44
|
+
]);
|
|
45
|
+
printTable(rows);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { list as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import consola from 'consola';
|
|
2
|
+
import { g as getClient } from '../shared/bee.CThuQMit.mjs';
|
|
3
|
+
import 'backlog-js';
|
|
4
|
+
import 'node:http';
|
|
5
|
+
import 'open';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
+
import 'node:stream/consumers';
|
|
9
|
+
import 'valibot';
|
|
10
|
+
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
11
|
+
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
13
|
+
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
+
import '../shared/bee.DVTuFf-T.mjs';
|
|
16
|
+
import 'node:fs';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:os';
|
|
19
|
+
import '../shared/bee.BeQSH2t0.mjs';
|
|
20
|
+
import '../shared/bee.-8tk76YJ.mjs';
|
|
21
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
22
|
+
import 'commander';
|
|
23
|
+
import 'consola/utils';
|
|
24
|
+
|
|
25
|
+
const list = new BeeCommand("list").summary("List issue types").description(`Issue types categorize issues and are displayed with their associated color.`).argument("[project]", "Project ID or project key").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
26
|
+
{ description: "List all issue types", command: "bee issue-type list PROJECT" },
|
|
27
|
+
{ description: "Output as JSON", command: "bee issue-type list PROJECT --json" }
|
|
28
|
+
]).action(async (project, opts) => {
|
|
29
|
+
const { client } = await getClient(opts.space);
|
|
30
|
+
const issueTypes = await client.getIssueTypes(project);
|
|
31
|
+
outputResult(issueTypes, opts, (data) => {
|
|
32
|
+
if (data.length === 0) {
|
|
33
|
+
consola.info("No issue types found.");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const rows = data.map((t) => [
|
|
37
|
+
{ header: "ID", value: String(t.id) },
|
|
38
|
+
{ header: "NAME", value: t.name },
|
|
39
|
+
{ header: "COLOR", value: t.color }
|
|
40
|
+
]);
|
|
41
|
+
printTable(rows);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export { list as default };
|