@nulab/bee 1.0.0-rc.0 → 1.0.0-rc.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.
- package/dist/chunks/activities.mjs +13 -14
- package/dist/chunks/activities2.mjs +16 -17
- package/dist/chunks/activities3.mjs +15 -16
- package/dist/chunks/add-user.mjs +10 -14
- package/dist/chunks/add.mjs +15 -14
- package/dist/chunks/add2.mjs +9 -10
- package/dist/chunks/api.mjs +14 -13
- package/dist/chunks/attachments.mjs +11 -12
- package/dist/chunks/attachments2.mjs +11 -12
- package/dist/chunks/attachments3.mjs +12 -13
- package/dist/chunks/browse.mjs +10 -11
- package/dist/chunks/clone.mjs +9 -10
- package/dist/chunks/close.mjs +10 -11
- package/dist/chunks/comment.mjs +14 -13
- package/dist/chunks/comment2.mjs +12 -13
- package/dist/chunks/comments.mjs +14 -15
- package/dist/chunks/completion.mjs +1 -1
- package/dist/chunks/count.mjs +7 -8
- package/dist/chunks/count2.mjs +9 -10
- package/dist/chunks/count3.mjs +10 -11
- package/dist/chunks/count4.mjs +9 -10
- package/dist/chunks/count5.mjs +10 -11
- package/dist/chunks/create.mjs +9 -10
- package/dist/chunks/create2.mjs +18 -13
- package/dist/chunks/create3.mjs +10 -11
- package/dist/chunks/create4.mjs +14 -14
- package/dist/chunks/create5.mjs +10 -11
- package/dist/chunks/create6.mjs +9 -10
- package/dist/chunks/create7.mjs +9 -10
- package/dist/chunks/create8.mjs +9 -10
- package/dist/chunks/create9.mjs +9 -10
- package/dist/chunks/dashboard.mjs +12 -13
- package/dist/chunks/delete.mjs +8 -9
- package/dist/chunks/delete2.mjs +8 -9
- package/dist/chunks/delete3.mjs +8 -9
- package/dist/chunks/delete4.mjs +12 -10
- package/dist/chunks/delete5.mjs +12 -10
- package/dist/chunks/delete6.mjs +12 -10
- package/dist/chunks/delete7.mjs +19 -12
- package/dist/chunks/delete8.mjs +10 -11
- package/dist/chunks/delete9.mjs +9 -10
- package/dist/chunks/edit.mjs +9 -10
- package/dist/chunks/edit2.mjs +23 -18
- package/dist/chunks/edit3.mjs +15 -15
- package/dist/chunks/edit4.mjs +10 -11
- package/dist/chunks/edit5.mjs +15 -10
- package/dist/chunks/edit6.mjs +20 -17
- package/dist/chunks/edit7.mjs +17 -14
- package/dist/chunks/edit8.mjs +17 -14
- package/dist/chunks/history.mjs +16 -17
- package/dist/chunks/list.mjs +11 -12
- package/dist/chunks/list10.mjs +11 -12
- package/dist/chunks/list11.mjs +11 -12
- package/dist/chunks/list12.mjs +11 -12
- package/dist/chunks/list13.mjs +11 -12
- package/dist/chunks/list14.mjs +12 -13
- package/dist/chunks/list15.mjs +11 -12
- package/dist/chunks/list2.mjs +29 -16
- package/dist/chunks/list3.mjs +19 -20
- package/dist/chunks/list4.mjs +15 -16
- package/dist/chunks/list5.mjs +15 -16
- package/dist/chunks/list6.mjs +11 -12
- package/dist/chunks/list7.mjs +14 -15
- package/dist/chunks/list8.mjs +11 -12
- package/dist/chunks/list9.mjs +11 -12
- package/dist/chunks/login.mjs +27 -26
- package/dist/chunks/logout.mjs +3 -4
- package/dist/chunks/me.mjs +12 -13
- package/dist/chunks/read-all.mjs +8 -9
- package/dist/chunks/read.mjs +9 -10
- package/dist/chunks/read2.mjs +9 -10
- package/dist/chunks/refresh.mjs +3 -4
- package/dist/chunks/remove-user.mjs +10 -14
- package/dist/chunks/remove.mjs +9 -10
- package/dist/chunks/reopen.mjs +9 -10
- package/dist/chunks/status.mjs +3 -4
- package/dist/chunks/status2.mjs +9 -10
- package/dist/chunks/status3.mjs +9 -10
- package/dist/chunks/switch.mjs +2 -3
- package/dist/chunks/tags.mjs +9 -10
- package/dist/chunks/token.mjs +3 -4
- package/dist/chunks/tree.mjs +9 -10
- package/dist/chunks/users.mjs +11 -12
- package/dist/chunks/view.mjs +12 -13
- package/dist/chunks/view2.mjs +12 -13
- package/dist/chunks/view3.mjs +12 -13
- package/dist/chunks/view4.mjs +13 -14
- package/dist/chunks/view5.mjs +12 -13
- package/dist/chunks/view6.mjs +12 -13
- package/dist/chunks/view7.mjs +13 -14
- package/dist/chunks/view8.mjs +14 -15
- package/dist/chunks/view9.mjs +12 -13
- package/dist/index.mjs +4 -3
- package/dist/shared/{bee.DVTuFf-T.mjs → bee.B4OxR0DJ.mjs} +50 -2
- package/dist/shared/{bee.CThuQMit.mjs → bee.BCBBmkOy.mjs} +6 -5
- package/dist/shared/bee.BYqxm3yG.mjs +24 -0
- package/dist/shared/bee.G4d7izLe.mjs +14 -0
- package/dist/shared/{bee.sHWg0IFT.mjs → bee.PF8hrVKn.mjs} +8 -3
- package/dist/shared/{bee.-8tk76YJ.mjs → bee.riolf-_Y.mjs} +1 -1
- package/package.json +4 -5
- package/dist/shared/bee.ChBdZ0cH.mjs +0 -9
- package/dist/shared/bee.DHTPkjMh.mjs +0 -48
- package/dist/shared/bee.XxOB1Her.mjs +0 -8
package/dist/chunks/comment.mjs
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
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
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import {
|
|
3
|
+
import { t as notify, x as attachment, j as json, s as space, d as confirmOrExit } from '../shared/bee.B4OxR0DJ.mjs';
|
|
9
4
|
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
10
5
|
import 'valibot';
|
|
6
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
11
7
|
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
12
8
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
9
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
10
|
+
import 'backlog-js';
|
|
11
|
+
import 'node:http';
|
|
12
|
+
import 'open';
|
|
13
|
+
import 'node:child_process';
|
|
13
14
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
|
|
14
|
-
import { g as notify, j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
15
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
16
15
|
import 'node:stream/consumers';
|
|
17
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
18
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
19
16
|
import 'node:fs';
|
|
20
17
|
import 'node:path';
|
|
21
18
|
import 'node:os';
|
|
22
19
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
|
-
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
24
20
|
import 'commander';
|
|
21
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
22
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
23
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
25
24
|
import 'consola/utils';
|
|
26
25
|
|
|
27
26
|
const comment = new BeeCommand("comment").summary("Add a comment to an issue").description(
|
|
28
27
|
`When input is piped, it is used as the body automatically.
|
|
29
28
|
|
|
30
29
|
Use \`--list\`, \`--edit-last\`, or \`--delete-last\` for other comment operations.`
|
|
31
|
-
).argument("<issue>", "Issue ID or issue key").option("-b, --body <text>", "Comment body").addOption(notify()).option("--list", "List comments on the issue").option("--edit-last", "Edit your most recent comment").option("--delete-last", "Delete your most recent comment").option("--yes", "Skip confirmation prompt for delete").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
|
|
30
|
+
).argument("<issue>", "Issue ID or issue key").option("-b, --body <text>", "Comment body").addOption(notify()).addOption(attachment()).option("--list", "List comments on the issue").option("--edit-last", "Edit your most recent comment").option("--delete-last", "Delete your most recent comment").option("--yes", "Skip confirmation prompt for delete").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
|
|
32
31
|
{
|
|
33
32
|
description: "Add a comment",
|
|
34
33
|
command: 'bee issue comment PROJECT-123 -b "This is a comment"'
|
|
@@ -112,9 +111,11 @@ Use \`--list\`, \`--edit-last\`, or \`--delete-last\` for other comment operatio
|
|
|
112
111
|
return;
|
|
113
112
|
}
|
|
114
113
|
const notifiedUserId = opts.notify ?? [];
|
|
114
|
+
const attachmentId = opts.attachment ?? [];
|
|
115
115
|
const result = await client.postIssueComments(issue, {
|
|
116
116
|
content,
|
|
117
|
-
notifiedUserId
|
|
117
|
+
notifiedUserId,
|
|
118
|
+
attachmentId
|
|
118
119
|
});
|
|
119
120
|
outputResult(result, opts, () => {
|
|
120
121
|
consola.success(`Added comment to ${issue}`);
|
package/dist/chunks/comment2.mjs
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
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
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
3
|
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
9
4
|
import 'valibot';
|
|
5
|
+
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
10
6
|
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
11
7
|
import { p as printTable } from '../shared/bee.IM3QELRf.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
9
|
+
import 'backlog-js';
|
|
10
|
+
import 'node:http';
|
|
11
|
+
import 'open';
|
|
12
|
+
import 'node:child_process';
|
|
12
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
-
import { p as project,
|
|
14
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import { p as project, B as repo, t as notify, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
|
|
15
15
|
import 'node:stream/consumers';
|
|
16
|
+
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
16
17
|
import '../shared/bee.CktwmH8R.mjs';
|
|
17
|
-
import '../shared/bee.
|
|
18
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
19
|
+
import 'commander';
|
|
20
|
+
import 'consola/utils';
|
|
18
21
|
import 'node:fs';
|
|
19
22
|
import 'node:path';
|
|
20
23
|
import 'node:os';
|
|
21
24
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
22
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
23
|
-
import '../shared/bee.Ds2l-nTJ.mjs';
|
|
24
|
-
import 'commander';
|
|
25
|
-
import 'consola/utils';
|
|
26
25
|
|
|
27
26
|
const comment = new BeeCommand("comment").summary("Add a comment to a pull request").description(
|
|
28
27
|
`When input is piped, it is used as the body automatically.
|
|
@@ -45,7 +44,7 @@ Use \`--list\` or \`--edit-last\` for other comment operations.`
|
|
|
45
44
|
]).action(async (number, opts, cmd) => {
|
|
46
45
|
await resolveOptions(cmd);
|
|
47
46
|
const { client } = await getClient(opts.space);
|
|
48
|
-
const prNumber =
|
|
47
|
+
const prNumber = parseArg(vInteger, number, "number");
|
|
49
48
|
const json = opts.json === true ? "" : opts.json;
|
|
50
49
|
if (opts.list) {
|
|
51
50
|
const comments = await client.getPullRequestComments(opts.project, opts.repo, prNumber, {
|
package/dist/chunks/comments.mjs
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
2
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
+
import 'node:stream/consumers';
|
|
4
|
+
import * as v from 'valibot';
|
|
5
|
+
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
6
|
+
import { f as formatDate } from '../shared/bee.n5MYN4a6.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
3
8
|
import 'backlog-js';
|
|
4
9
|
import 'node:http';
|
|
5
10
|
import 'open';
|
|
6
11
|
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
12
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
-
import { p as project,
|
|
13
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
13
|
+
import { p as project, B as repo, z as minId, A as maxId, f as count, o as order, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
|
|
14
14
|
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
-
import '../shared/bee.
|
|
15
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
16
|
+
import 'commander';
|
|
17
|
+
import 'consola/utils';
|
|
16
18
|
import 'node:fs';
|
|
17
19
|
import 'node:path';
|
|
18
20
|
import 'node:os';
|
|
19
21
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
20
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
21
|
-
import 'commander';
|
|
22
|
-
import 'consola/utils';
|
|
23
22
|
|
|
24
23
|
const comments = new BeeCommand("comments").summary("List comments on a pull request").description(`Displays all comments in chronological order.`).argument("<number>", "Pull request number").addOption(project()).addOption(repo()).addOption(minId()).addOption(maxId()).addOption(count()).addOption(order()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT, ENV_REPO]).examples([
|
|
25
24
|
{
|
|
@@ -30,12 +29,12 @@ const comments = new BeeCommand("comments").summary("List comments on a pull req
|
|
|
30
29
|
]).action(async (number, opts, cmd) => {
|
|
31
30
|
await resolveOptions(cmd);
|
|
32
31
|
const { client } = await getClient(opts.space);
|
|
33
|
-
const prNumber =
|
|
32
|
+
const prNumber = parseArg(vInteger, number, "number");
|
|
34
33
|
const prComments = await client.getPullRequestComments(opts.project, opts.repo, prNumber, {
|
|
35
|
-
minId:
|
|
36
|
-
maxId:
|
|
34
|
+
minId: parseArg(v.optional(vInteger), opts.minId, "--min-id"),
|
|
35
|
+
maxId: parseArg(v.optional(vInteger), opts.maxId, "--max-id"),
|
|
37
36
|
order: opts.order ?? "asc",
|
|
38
|
-
count:
|
|
37
|
+
count: parseArg(v.optional(vInteger), opts.count, "--count")
|
|
39
38
|
});
|
|
40
39
|
const json = opts.json === true ? "" : opts.json;
|
|
41
40
|
outputResult(prComments, { json }, (data) => {
|
package/dist/chunks/count.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import { P as PriorityId, a as PRIORITY_NAMES } from '../shared/bee.Btmq3TXs.mjs';
|
|
3
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
4
|
-
import { r as resolveUserId } from '../shared/bee.
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
3
|
+
import { r as resolveProjectIds } from '../shared/bee.PF8hrVKn.mjs';
|
|
4
|
+
import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
|
|
5
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
6
6
|
import 'backlog-js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import 'open';
|
|
@@ -10,18 +10,17 @@ import 'node:child_process';
|
|
|
10
10
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
11
11
|
import 'node:stream/consumers';
|
|
12
12
|
import 'valibot';
|
|
13
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
13
14
|
import { Option } from 'commander';
|
|
14
15
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
15
|
-
import {
|
|
16
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
16
|
+
import { g as assigneeList, e as collectNum, c as collect, k as keyword, j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
|
|
17
17
|
import '../shared/bee.CktwmH8R.mjs';
|
|
18
|
-
import '../shared/bee.
|
|
18
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
19
|
+
import 'consola/utils';
|
|
19
20
|
import 'node:fs';
|
|
20
21
|
import 'node:path';
|
|
21
22
|
import 'node:os';
|
|
22
23
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
24
|
-
import 'consola/utils';
|
|
25
24
|
|
|
26
25
|
const resolvePriorityIds = (priorities) => priorities.map((name) => {
|
|
27
26
|
const id = PriorityId[name.toLowerCase()];
|
package/dist/chunks/count2.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
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.BCBBmkOy.mjs';
|
|
3
7
|
import 'backlog-js';
|
|
4
8
|
import 'node:http';
|
|
5
9
|
import 'open';
|
|
6
10
|
import 'node:child_process';
|
|
7
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import 'node:stream/consumers';
|
|
9
|
-
import 'valibot';
|
|
10
11
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
-
import { j as json, s as space } from '../shared/bee.
|
|
12
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
|
|
13
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
15
|
+
import 'commander';
|
|
16
|
+
import 'consola/utils';
|
|
15
17
|
import 'node:fs';
|
|
16
18
|
import 'node:path';
|
|
17
19
|
import 'node:os';
|
|
18
20
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
-
import 'commander';
|
|
21
|
-
import 'consola/utils';
|
|
22
21
|
|
|
23
22
|
const parseReadFilter = (value) => {
|
|
24
23
|
if (value === void 0 || value === "all") {
|
package/dist/chunks/count3.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import { P as PrStatusName, a as PR_STATUS_NAMES } from '../shared/bee.DoTvz3uW.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
|
+
import 'node:stream/consumers';
|
|
5
|
+
import 'valibot';
|
|
6
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
+
import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
5
9
|
import 'backlog-js';
|
|
6
10
|
import 'node:http';
|
|
7
11
|
import 'open';
|
|
8
12
|
import 'node:child_process';
|
|
9
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
10
|
-
import 'node:stream/consumers';
|
|
11
|
-
import 'valibot';
|
|
12
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
-
import { p as project,
|
|
14
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
+
import { p as project, B as repo, c as collect, g as assigneeList, e as collectNum, j as json, s as space, r as resolveOptions } from '../shared/bee.B4OxR0DJ.mjs';
|
|
15
15
|
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.
|
|
16
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
17
|
+
import 'commander';
|
|
18
|
+
import 'consola/utils';
|
|
17
19
|
import 'node:fs';
|
|
18
20
|
import 'node:path';
|
|
19
21
|
import 'node:os';
|
|
20
22
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
21
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
22
|
-
import 'commander';
|
|
23
|
-
import 'consola/utils';
|
|
24
23
|
|
|
25
24
|
const resolveStatusIds = (statuses) => statuses.map((name) => {
|
|
26
25
|
const id = PrStatusName[name.toLowerCase()];
|
package/dist/chunks/count4.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
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.BCBBmkOy.mjs';
|
|
3
7
|
import 'backlog-js';
|
|
4
8
|
import 'node:http';
|
|
5
9
|
import 'open';
|
|
6
10
|
import 'node:child_process';
|
|
7
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import 'node:stream/consumers';
|
|
9
|
-
import 'valibot';
|
|
10
11
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
-
import { j as json, s as space } from '../shared/bee.
|
|
12
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
|
|
13
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
15
|
+
import 'commander';
|
|
16
|
+
import 'consola/utils';
|
|
15
17
|
import 'node:fs';
|
|
16
18
|
import 'node:path';
|
|
17
19
|
import 'node:os';
|
|
18
20
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
-
import 'commander';
|
|
21
|
-
import 'consola/utils';
|
|
22
21
|
|
|
23
22
|
const count = new BeeCommand("count").summary("Count wiki pages").description(`Counts all wiki pages regardless of tag or keyword.`).argument("<project>", "Project ID or project key").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
24
23
|
{ description: "Count wiki pages", command: "bee wiki count PROJECT" },
|
package/dist/chunks/count5.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
2
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
+
import 'node:stream/consumers';
|
|
4
|
+
import 'valibot';
|
|
5
|
+
import { p as parseArg, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
6
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
3
7
|
import 'backlog-js';
|
|
4
8
|
import 'node:http';
|
|
5
9
|
import 'open';
|
|
6
10
|
import 'node:child_process';
|
|
7
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import 'node:stream/consumers';
|
|
9
|
-
import 'valibot';
|
|
10
11
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.CQ3kBgas.mjs';
|
|
11
|
-
import { j as json, s as space } from '../shared/bee.
|
|
12
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.B4OxR0DJ.mjs';
|
|
13
13
|
import '../shared/bee.CktwmH8R.mjs';
|
|
14
|
-
import '../shared/bee.
|
|
14
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
15
|
+
import 'commander';
|
|
16
|
+
import 'consola/utils';
|
|
15
17
|
import 'node:fs';
|
|
16
18
|
import 'node:path';
|
|
17
19
|
import 'node:os';
|
|
18
20
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
19
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
20
|
-
import 'commander';
|
|
21
|
-
import 'consola/utils';
|
|
22
21
|
|
|
23
22
|
const count = new BeeCommand("count").summary("Count received stars").description(`Defaults to the authenticated user if no user ID is given.`).argument("[user]", "User ID").option("--since <yyyy-MM-dd>", "Count stars received on or after this date").option("--until <yyyy-MM-dd>", "Count stars received on or before this date").addOption(json()).addOption(space()).envVars([...ENV_AUTH]).examples([
|
|
24
23
|
{ description: "Count your stars", command: "bee star count" },
|
|
@@ -32,7 +31,7 @@ const count = new BeeCommand("count").summary("Count received stars").descriptio
|
|
|
32
31
|
const { client } = await getClient(opts.space);
|
|
33
32
|
let userId;
|
|
34
33
|
if (user) {
|
|
35
|
-
userId =
|
|
34
|
+
userId = parseArg(vInteger, user, "user");
|
|
36
35
|
} else {
|
|
37
36
|
const myself = await client.getMyself();
|
|
38
37
|
userId = myself.id;
|
package/dist/chunks/create.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
2
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
+
import { j as json, s as space, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
4
|
+
import 'node:stream/consumers';
|
|
5
|
+
import 'valibot';
|
|
6
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
3
8
|
import 'backlog-js';
|
|
4
9
|
import 'node:http';
|
|
5
10
|
import { p as projectUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
6
11
|
import 'node:child_process';
|
|
7
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import { p as promptRequired } from '../shared/bee.DVTuFf-T.mjs';
|
|
9
|
-
import 'node:stream/consumers';
|
|
10
|
-
import 'valibot';
|
|
11
12
|
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.-8tk76YJ.mjs';
|
|
16
|
-
import 'open';
|
|
17
13
|
import 'node:fs';
|
|
18
14
|
import 'node:path';
|
|
19
15
|
import 'node:os';
|
|
20
16
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
21
17
|
import 'commander';
|
|
18
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
19
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
20
|
+
import 'open';
|
|
22
21
|
import 'consola/utils';
|
|
23
22
|
|
|
24
23
|
const create = new BeeCommand("create").summary("Create a project").description(
|
package/dist/chunks/create2.mjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import { a as PRIORITY_NAMES, P as PriorityId } from '../shared/bee.Btmq3TXs.mjs';
|
|
3
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
4
|
-
import { r as resolveUserId } from '../shared/bee.
|
|
5
|
-
import { g as getClient } from '../shared/bee.
|
|
3
|
+
import { r as resolveProjectIds } from '../shared/bee.PF8hrVKn.mjs';
|
|
4
|
+
import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
|
|
5
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
6
6
|
import 'backlog-js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import { i as issueUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
9
9
|
import 'node:child_process';
|
|
10
10
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
11
|
-
import {
|
|
11
|
+
import { i as assignee, m as category, v as version, q as milestone, t as notify, x as attachment, j as json, s as space, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
12
12
|
import 'node:stream/consumers';
|
|
13
|
-
import 'valibot';
|
|
13
|
+
import * as v from 'valibot';
|
|
14
|
+
import { p as parseArg, a as vFiniteNumber, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
14
15
|
import { Option } from 'commander';
|
|
15
16
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
16
|
-
import { f as assignee, g as notify, h as attachment, j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
17
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
18
17
|
import '../shared/bee.CktwmH8R.mjs';
|
|
19
|
-
import '../shared/bee
|
|
18
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
20
19
|
import 'open';
|
|
21
20
|
import 'node:fs';
|
|
22
21
|
import 'node:path';
|
|
@@ -26,7 +25,7 @@ import 'consola/utils';
|
|
|
26
25
|
|
|
27
26
|
const create = new BeeCommand("create").summary("Create an issue").description(
|
|
28
27
|
`Omitted required fields will be prompted interactively. Priority accepts a name: \`high\`, \`normal\`, or \`low\`.`
|
|
29
|
-
).addOption(new Option("-p, --project <id>", "Project ID or project key").env("BACKLOG_PROJECT")).option("-t, --title <text>", "Issue title").option("-T, --type <id>", "Issue type ID").option("-P, --priority <name>", "Priority").option("-d, --description <text>", "Issue description").addOption(assignee()).option("--parent-issue <id>", "Parent issue ID").option("--start-date <date>", "Start date").option("--due-date <date>", "Due date").option("--estimated-hours <n>", "Estimated hours").option("--actual-hours <n>", "Actual hours").addOption(notify()).addOption(attachment()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
28
|
+
).addOption(new Option("-p, --project <id>", "Project ID or project key").env("BACKLOG_PROJECT")).option("-t, --title <text>", "Issue title").option("-T, --type <id>", "Issue type ID").option("-P, --priority <name>", "Priority").option("-d, --description <text>", "Issue description").addOption(assignee()).addOption(category()).addOption(version()).addOption(milestone()).option("--parent-issue <id>", "Parent issue ID").option("--start-date <date>", "Start date").option("--due-date <date>", "Due date").option("--estimated-hours <n>", "Estimated hours").option("--actual-hours <n>", "Actual hours").addOption(notify()).addOption(attachment()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
30
29
|
{
|
|
31
30
|
description: "Create an issue with required fields",
|
|
32
31
|
command: 'bee issue create -p PROJECT --type 1 --priority normal -t "Fix login bug"'
|
|
@@ -57,20 +56,26 @@ const create = new BeeCommand("create").summary("Create an issue").description(
|
|
|
57
56
|
}
|
|
58
57
|
const [projectId] = await resolveProjectIds(client, [project]);
|
|
59
58
|
const assigneeId = opts.assignee ? await resolveUserId(client, opts.assignee) : void 0;
|
|
59
|
+
const categoryId = opts.category ?? [];
|
|
60
|
+
const versionId = opts.version ?? [];
|
|
61
|
+
const milestoneId = opts.milestone ?? [];
|
|
60
62
|
const notifiedUserId = opts.notify ?? [];
|
|
61
63
|
const attachmentId = opts.attachment ?? [];
|
|
62
64
|
const issue = await client.postIssue({
|
|
63
65
|
projectId,
|
|
64
66
|
summary: title,
|
|
65
|
-
issueTypeId:
|
|
67
|
+
issueTypeId: parseArg(vInteger, issueTypeId, "issueTypeId"),
|
|
66
68
|
priorityId,
|
|
67
69
|
description: opts.description,
|
|
68
70
|
assigneeId,
|
|
69
|
-
|
|
71
|
+
categoryId,
|
|
72
|
+
versionId,
|
|
73
|
+
milestoneId,
|
|
74
|
+
parentIssueId: parseArg(v.optional(vInteger), opts.parentIssue, "--parent-issue"),
|
|
70
75
|
startDate: opts.startDate,
|
|
71
76
|
dueDate: opts.dueDate,
|
|
72
|
-
estimatedHours:
|
|
73
|
-
actualHours:
|
|
77
|
+
estimatedHours: parseArg(v.optional(vFiniteNumber), opts.estimatedHours, "--estimated-hours"),
|
|
78
|
+
actualHours: parseArg(v.optional(vFiniteNumber), opts.actualHours, "--actual-hours"),
|
|
74
79
|
notifiedUserId,
|
|
75
80
|
attachmentId
|
|
76
81
|
});
|
package/dist/chunks/create3.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
3
|
-
import {
|
|
2
|
+
import { r as resolveProjectIds } from '../shared/bee.PF8hrVKn.mjs';
|
|
3
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
|
+
import { j as json, s as space, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
5
|
+
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
6
|
+
import 'valibot';
|
|
7
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
4
9
|
import 'backlog-js';
|
|
5
10
|
import 'node:http';
|
|
6
11
|
import { f as documentUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
7
12
|
import 'node:child_process';
|
|
8
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
9
|
-
import { p as promptRequired } from '../shared/bee.DVTuFf-T.mjs';
|
|
10
|
-
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
11
|
-
import 'valibot';
|
|
12
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
-
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
14
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
15
14
|
import 'node:stream/consumers';
|
|
16
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
17
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
18
|
-
import 'open';
|
|
19
15
|
import 'node:fs';
|
|
20
16
|
import 'node:path';
|
|
21
17
|
import 'node:os';
|
|
22
18
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
19
|
import 'commander';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
22
|
+
import 'open';
|
|
24
23
|
import 'consola/utils';
|
|
25
24
|
|
|
26
25
|
const create = new BeeCommand("create").summary("Create a document").description(
|
package/dist/chunks/create4.mjs
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
+
import { p as project, B as repo, i as assignee, t as notify, x as attachment, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
4
|
+
import 'node:stream/consumers';
|
|
5
|
+
import * as v from 'valibot';
|
|
6
|
+
import { v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
+
import { r as resolveUserId } from '../shared/bee.G4d7izLe.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
4
9
|
import 'backlog-js';
|
|
5
10
|
import 'node:http';
|
|
6
11
|
import { h as pullRequestUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
7
12
|
import 'node:child_process';
|
|
8
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
9
|
-
import { p as promptRequired } from '../shared/bee.DVTuFf-T.mjs';
|
|
10
|
-
import 'node:stream/consumers';
|
|
11
|
-
import 'valibot';
|
|
12
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
-
import { p as project, q as repo, f as assignee, g as notify, h as attachment, j as json, s as space, r as resolveOptions } from '../shared/bee.DHTPkjMh.mjs';
|
|
14
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
15
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
16
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
17
|
-
import 'open';
|
|
18
14
|
import 'node:fs';
|
|
19
15
|
import 'node:path';
|
|
20
16
|
import 'node:os';
|
|
21
17
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
22
18
|
import 'commander';
|
|
19
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
21
|
+
import 'open';
|
|
23
22
|
import 'consola/utils';
|
|
24
23
|
|
|
25
24
|
const create = new BeeCommand("create").summary("Create a pull request").description(`Omitted required fields will be prompted interactively.`).addOption(project()).addOption(repo()).option("--base <branch>", "Base branch name").option("--head <branch>", "Head branch name").option("-t, --title <text>", "Pull request title").option("-b, --body <text>", "Pull request description").addOption(assignee()).option("--issue <key>", "Related issue ID or issue key").addOption(notify()).addOption(attachment()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT, ENV_REPO]).examples([
|
|
@@ -47,11 +46,12 @@ const create = new BeeCommand("create").summary("Create a pull request").descrip
|
|
|
47
46
|
const attachmentId = opts.attachment ?? [];
|
|
48
47
|
let issueId;
|
|
49
48
|
if (opts.issue) {
|
|
50
|
-
|
|
49
|
+
const parsed = v.safeParse(vInteger, opts.issue);
|
|
50
|
+
if (parsed.success) {
|
|
51
|
+
issueId = parsed.output;
|
|
52
|
+
} else {
|
|
51
53
|
const issue = await client.getIssue(opts.issue);
|
|
52
54
|
issueId = issue.id;
|
|
53
|
-
} else {
|
|
54
|
-
issueId = Number(opts.issue);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
const pullRequest = await client.postPullRequest(opts.project, opts.repo, {
|
package/dist/chunks/create5.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
3
|
-
import {
|
|
2
|
+
import { r as resolveProjectIds } from '../shared/bee.PF8hrVKn.mjs';
|
|
3
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
|
+
import { j as json, s as space, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
5
|
+
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
6
|
+
import 'valibot';
|
|
7
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
4
9
|
import 'backlog-js';
|
|
5
10
|
import 'node:http';
|
|
6
11
|
import { w as wikiUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
7
12
|
import 'node:child_process';
|
|
8
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
9
|
-
import { p as promptRequired } from '../shared/bee.DVTuFf-T.mjs';
|
|
10
|
-
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
11
|
-
import 'valibot';
|
|
12
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
13
|
-
import { j as json, s as space } from '../shared/bee.DHTPkjMh.mjs';
|
|
14
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
15
14
|
import 'node:stream/consumers';
|
|
16
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
17
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
18
|
-
import 'open';
|
|
19
15
|
import 'node:fs';
|
|
20
16
|
import 'node:path';
|
|
21
17
|
import 'node:os';
|
|
22
18
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
23
19
|
import 'commander';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
22
|
+
import 'open';
|
|
24
23
|
import 'consola/utils';
|
|
25
24
|
|
|
26
25
|
const create = new BeeCommand("create").summary("Create a wiki page").description(`When input is piped, it is used as the body automatically.`).option("-p, --project <id>", "Project ID or project key").option("-n, --name <name>", "Wiki page name").option("-b, --body <text>", "Wiki page content").option("--mail-notify", "Send notification email").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
package/dist/chunks/create6.mjs
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import {
|
|
2
|
+
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
+
import { p as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.B4OxR0DJ.mjs';
|
|
4
|
+
import 'node:stream/consumers';
|
|
5
|
+
import 'valibot';
|
|
6
|
+
import '../shared/bee.BYqxm3yG.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.BCBBmkOy.mjs';
|
|
3
8
|
import 'backlog-js';
|
|
4
9
|
import 'node:http';
|
|
5
10
|
import { j as categoryUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
6
11
|
import 'node:child_process';
|
|
7
|
-
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
8
|
-
import { p as promptRequired } from '../shared/bee.DVTuFf-T.mjs';
|
|
9
|
-
import 'node:stream/consumers';
|
|
10
|
-
import 'valibot';
|
|
11
12
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.CQ3kBgas.mjs';
|
|
12
|
-
import { p as project, j as json, s as space, r as resolveOptions } from '../shared/bee.DHTPkjMh.mjs';
|
|
13
|
-
import '../shared/bee.XxOB1Her.mjs';
|
|
14
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
15
|
-
import '../shared/bee.-8tk76YJ.mjs';
|
|
16
|
-
import 'open';
|
|
17
13
|
import 'node:fs';
|
|
18
14
|
import 'node:path';
|
|
19
15
|
import 'node:os';
|
|
20
16
|
import '../shared/bee.BeQSH2t0.mjs';
|
|
21
17
|
import 'commander';
|
|
18
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
19
|
+
import '../shared/bee.riolf-_Y.mjs';
|
|
20
|
+
import 'open';
|
|
22
21
|
import 'consola/utils';
|
|
23
22
|
|
|
24
23
|
const create = new BeeCommand("create").summary("Create a category").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Category name").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|