@nulab/bee 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/chunks/activities.mjs +9 -11
- package/dist/chunks/activities2.mjs +9 -11
- package/dist/chunks/activities3.mjs +9 -11
- package/dist/chunks/add-user.mjs +8 -10
- package/dist/chunks/add.mjs +8 -10
- package/dist/chunks/add2.mjs +8 -10
- package/dist/chunks/api.mjs +8 -10
- package/dist/chunks/attachments.mjs +9 -11
- package/dist/chunks/attachments2.mjs +9 -11
- package/dist/chunks/attachments3.mjs +9 -11
- package/dist/chunks/browse.mjs +5 -7
- package/dist/chunks/clone.mjs +8 -10
- package/dist/chunks/close.mjs +8 -10
- package/dist/chunks/comment.mjs +6 -8
- package/dist/chunks/comment2.mjs +9 -11
- package/dist/chunks/comments.mjs +8 -10
- package/dist/chunks/completion.mjs +51 -56
- package/dist/chunks/count.mjs +9 -11
- package/dist/chunks/count2.mjs +8 -10
- package/dist/chunks/count3.mjs +9 -11
- package/dist/chunks/count4.mjs +8 -10
- package/dist/chunks/count5.mjs +8 -10
- package/dist/chunks/create.mjs +5 -7
- package/dist/chunks/create2.mjs +7 -9
- package/dist/chunks/create3.mjs +6 -8
- package/dist/chunks/create4.mjs +6 -8
- package/dist/chunks/create5.mjs +6 -8
- package/dist/chunks/create6.mjs +5 -7
- package/dist/chunks/create7.mjs +5 -7
- package/dist/chunks/create8.mjs +5 -7
- package/dist/chunks/create9.mjs +5 -7
- package/dist/chunks/dashboard.mjs +9 -11
- package/dist/chunks/delete.mjs +5 -7
- package/dist/chunks/delete2.mjs +5 -7
- package/dist/chunks/delete3.mjs +5 -7
- package/dist/chunks/delete4.mjs +5 -7
- package/dist/chunks/delete5.mjs +5 -7
- package/dist/chunks/delete6.mjs +5 -7
- package/dist/chunks/delete7.mjs +5 -7
- package/dist/chunks/delete8.mjs +5 -7
- package/dist/chunks/delete9.mjs +5 -7
- package/dist/chunks/edit.mjs +8 -10
- package/dist/chunks/edit2.mjs +9 -11
- package/dist/chunks/edit3.mjs +9 -11
- package/dist/chunks/edit4.mjs +8 -10
- package/dist/chunks/edit5.mjs +5 -7
- package/dist/chunks/edit6.mjs +8 -10
- package/dist/chunks/edit7.mjs +8 -10
- package/dist/chunks/edit8.mjs +8 -10
- package/dist/chunks/history.mjs +9 -11
- package/dist/chunks/list.mjs +9 -11
- package/dist/chunks/list10.mjs +9 -11
- package/dist/chunks/list11.mjs +9 -11
- package/dist/chunks/list12.mjs +9 -11
- package/dist/chunks/list13.mjs +9 -11
- package/dist/chunks/list14.mjs +9 -11
- package/dist/chunks/list15.mjs +9 -11
- package/dist/chunks/list2.mjs +10 -12
- package/dist/chunks/list3.mjs +10 -12
- package/dist/chunks/list4.mjs +9 -11
- package/dist/chunks/list5.mjs +10 -12
- package/dist/chunks/list6.mjs +9 -11
- package/dist/chunks/list7.mjs +9 -11
- package/dist/chunks/list8.mjs +9 -11
- package/dist/chunks/list9.mjs +9 -11
- package/dist/chunks/login.mjs +2 -4
- package/dist/chunks/logout.mjs +8 -4
- package/dist/chunks/me.mjs +9 -11
- package/dist/chunks/read-all.mjs +8 -10
- package/dist/chunks/read.mjs +8 -10
- package/dist/chunks/read2.mjs +8 -10
- package/dist/chunks/refresh.mjs +4 -6
- package/dist/chunks/remove-user.mjs +8 -10
- package/dist/chunks/remove.mjs +8 -10
- package/dist/chunks/reopen.mjs +8 -10
- package/dist/chunks/status.mjs +7 -4
- package/dist/chunks/status2.mjs +8 -10
- package/dist/chunks/status3.mjs +8 -10
- package/dist/chunks/switch.mjs +7 -3
- package/dist/chunks/tags.mjs +8 -10
- package/dist/chunks/token.mjs +8 -4
- package/dist/chunks/tree.mjs +8 -10
- package/dist/chunks/users.mjs +9 -11
- package/dist/chunks/view.mjs +9 -11
- package/dist/chunks/view2.mjs +12 -13
- package/dist/chunks/view3.mjs +9 -11
- package/dist/chunks/view4.mjs +9 -11
- package/dist/chunks/view5.mjs +9 -11
- package/dist/chunks/view6.mjs +9 -11
- package/dist/chunks/view7.mjs +9 -11
- package/dist/chunks/view8.mjs +9 -11
- package/dist/chunks/view9.mjs +9 -11
- package/dist/index.mjs +37746 -33
- package/dist/shared/{bee.PF8hrVKn.mjs → bee.084B_7FC.mjs} +1 -1
- package/dist/shared/{bee.DfqnFet4.mjs → bee.CAARNIp6.mjs} +1 -1
- package/dist/shared/{bee.B3N0WBdU.mjs → bee.CHtg3F43.mjs} +1 -2
- package/dist/shared/{bee.DessOtkV.mjs → bee.RsR9yniy.mjs} +3 -4
- package/dist/shared/{bee.G4d7izLe.mjs → bee.q93n012-.mjs} +1 -1
- package/package.json +5 -3
- package/dist/shared/bee.BImw1HZl.mjs +0 -28
- package/dist/shared/bee.BYqxm3yG.mjs +0 -24
- package/dist/shared/bee.x-FvgDW2.mjs +0 -37660
|
@@ -1,19 +1,34 @@
|
|
|
1
1
|
import 'consola';
|
|
2
|
-
import { U as UserError } from '../
|
|
2
|
+
import { U as UserError } from '../index.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
5
|
import { B as BeeCommand } from '../shared/bee.KteAW2rM.mjs';
|
|
6
|
+
import 'backlog-js';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:os';
|
|
10
|
+
import 'node:http';
|
|
11
|
+
import 'open';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:module';
|
|
6
14
|
import 'commander';
|
|
7
15
|
import 'consola/utils';
|
|
8
16
|
|
|
9
|
-
const
|
|
10
|
-
|
|
17
|
+
const isListable = (cmd) => cmd.name() !== "help";
|
|
18
|
+
const toEntry = (cmd) => ({
|
|
19
|
+
name: cmd.name(),
|
|
20
|
+
summary: cmd.summary() || cmd.description()
|
|
21
|
+
});
|
|
22
|
+
const commandEntries = (program) => program.commands.filter(isListable).map(toEntry);
|
|
23
|
+
const escapeZsh = (text) => text.replaceAll(":", String.raw`\:`);
|
|
24
|
+
const escapeDoubleQuoted = (text) => text.replaceAll(/(["$`\\])/g, String.raw`\$1`);
|
|
25
|
+
const renderBash = (entries) => `# bash completion for bee
|
|
11
26
|
# Add to ~/.bashrc:
|
|
12
27
|
# eval "$(bee completion bash)"
|
|
13
28
|
|
|
14
29
|
_bee_completions() {
|
|
15
30
|
local cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
16
|
-
local commands="
|
|
31
|
+
local commands="${entries.map((entry) => entry.name).join(" ")}"
|
|
17
32
|
|
|
18
33
|
if [ "\${COMP_CWORD}" -eq 1 ]; then
|
|
19
34
|
COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
|
|
@@ -21,8 +36,10 @@ _bee_completions() {
|
|
|
21
36
|
}
|
|
22
37
|
|
|
23
38
|
complete -F _bee_completions bee
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
`;
|
|
40
|
+
const renderZsh = (entries) => {
|
|
41
|
+
const pairs = entries.map((entry) => ` '${escapeZsh(entry.name)}:${escapeZsh(entry.summary)}'`).join(" \\\n");
|
|
42
|
+
return `#compdef bee
|
|
26
43
|
# zsh completion for bee
|
|
27
44
|
# Add to ~/.zshrc:
|
|
28
45
|
# eval "$(bee completion zsh)"
|
|
@@ -30,27 +47,7 @@ complete -F _bee_completions bee
|
|
|
30
47
|
_bee() {
|
|
31
48
|
local -a commands
|
|
32
49
|
commands=(
|
|
33
|
-
|
|
34
|
-
'project:project commands' \\
|
|
35
|
-
'issue:issue commands' \\
|
|
36
|
-
'document:document commands' \\
|
|
37
|
-
'notification:notification commands' \\
|
|
38
|
-
'pr:pr commands' \\
|
|
39
|
-
'repo:repo commands' \\
|
|
40
|
-
'team:team commands' \\
|
|
41
|
-
'user:user commands' \\
|
|
42
|
-
'wiki:wiki commands' \\
|
|
43
|
-
'category:category commands' \\
|
|
44
|
-
'milestone:milestone commands' \\
|
|
45
|
-
'issue-type:issue-type commands' \\
|
|
46
|
-
'space:space commands' \\
|
|
47
|
-
'status:status commands' \\
|
|
48
|
-
'star:star commands' \\
|
|
49
|
-
'watching:watching commands' \\
|
|
50
|
-
'dashboard:dashboard commands' \\
|
|
51
|
-
'browse:browse commands' \\
|
|
52
|
-
'api:api commands' \\
|
|
53
|
-
'completion:completion commands'
|
|
50
|
+
${pairs}
|
|
54
51
|
)
|
|
55
52
|
|
|
56
53
|
_arguments '1: :->command' '*:: :->args'
|
|
@@ -63,34 +60,33 @@ _bee() {
|
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
compdef _bee bee
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
`;
|
|
64
|
+
};
|
|
65
|
+
const renderFish = (entries) => {
|
|
66
|
+
const lines = entries.map(
|
|
67
|
+
(entry) => `complete -c bee -n "__fish_use_subcommand" -a "${entry.name}" -d "${escapeDoubleQuoted(entry.summary)}"`
|
|
68
|
+
).join("\n");
|
|
69
|
+
return `# fish completion for bee
|
|
68
70
|
# Add to ~/.config/fish/completions/bee.fish:
|
|
69
71
|
# bee completion fish > ~/.config/fish/completions/bee.fish
|
|
70
72
|
|
|
71
73
|
complete -c bee -e
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
complete -c bee -n "__fish_use_subcommand" -a "watching" -d "watching commands"
|
|
89
|
-
complete -c bee -n "__fish_use_subcommand" -a "dashboard" -d "dashboard commands"
|
|
90
|
-
complete -c bee -n "__fish_use_subcommand" -a "browse" -d "browse commands"
|
|
91
|
-
complete -c bee -n "__fish_use_subcommand" -a "api" -d "api commands"
|
|
92
|
-
complete -c bee -n "__fish_use_subcommand" -a "completion" -d "completion commands"
|
|
93
|
-
`
|
|
74
|
+
${lines}
|
|
75
|
+
`;
|
|
76
|
+
};
|
|
77
|
+
const RENDERERS = Object.assign(
|
|
78
|
+
/* @__PURE__ */ Object.create(null),
|
|
79
|
+
{ bash: renderBash, zsh: renderZsh, fish: renderFish }
|
|
80
|
+
);
|
|
81
|
+
const SUPPORTED_SHELLS = Object.keys(RENDERERS);
|
|
82
|
+
const isSupportedShell = (shell) => shell in RENDERERS;
|
|
83
|
+
const renderCompletionScript = (shell, program) => RENDERERS[shell](commandEntries(program));
|
|
84
|
+
|
|
85
|
+
const buildProgram = async () => {
|
|
86
|
+
const { loadCommands } = await import('../index.mjs').then(function (n) { return n.r; });
|
|
87
|
+
const program = new BeeCommand("bee");
|
|
88
|
+
await program.addCommands(loadCommands());
|
|
89
|
+
return program;
|
|
94
90
|
};
|
|
95
91
|
const completion = new BeeCommand("completion").summary("Generate shell completion scripts").description(`Supported shells: bash, zsh, fish. Source the output in your shell configuration.`).argument("<shell>", "Shell to generate completions for").examples([
|
|
96
92
|
{
|
|
@@ -105,14 +101,13 @@ const completion = new BeeCommand("completion").summary("Generate shell completi
|
|
|
105
101
|
description: "Set up completions for fish",
|
|
106
102
|
command: "bee completion fish > ~/.config/fish/completions/bee.fish"
|
|
107
103
|
}
|
|
108
|
-
]).action((shell) => {
|
|
109
|
-
|
|
110
|
-
if (!script) {
|
|
104
|
+
]).action(async (shell) => {
|
|
105
|
+
if (!isSupportedShell(shell)) {
|
|
111
106
|
throw new UserError(
|
|
112
|
-
`Unsupported shell: "${shell}". Supported shells: ${
|
|
107
|
+
`Unsupported shell: "${shell}". Supported shells: ${SUPPORTED_SHELLS.join(", ")}.`
|
|
113
108
|
);
|
|
114
109
|
}
|
|
115
|
-
process.stdout.write(
|
|
110
|
+
process.stdout.write(renderCompletionScript(shell, await buildProgram()));
|
|
116
111
|
});
|
|
117
112
|
|
|
118
113
|
export { completion as default };
|
package/dist/chunks/count.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
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.084B_7FC.mjs';
|
|
4
|
+
import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
|
|
5
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
6
6
|
import 'backlog-js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import 'open';
|
|
9
9
|
import 'node:child_process';
|
|
10
|
-
import '../
|
|
10
|
+
import '../index.mjs';
|
|
11
11
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
12
12
|
import 'node:stream/consumers';
|
|
13
13
|
import 'valibot';
|
|
14
|
-
import '../shared/bee.BYqxm3yG.mjs';
|
|
15
14
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
16
|
-
import { p as projectOptional, h as assigneeList, f as collectNum, c as collect, k as keyword, j as json, s as space } from '../shared/bee.
|
|
15
|
+
import { p as projectOptional, h as assigneeList, f as collectNum, c as collect, k as keyword, j as json, s as space } from '../shared/bee.CHtg3F43.mjs';
|
|
17
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
18
|
-
import '../shared/bee.
|
|
19
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
20
|
-
import 'node:module';
|
|
21
|
-
import 'commander';
|
|
22
|
-
import 'consola/utils';
|
|
17
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
23
18
|
import 'node:fs';
|
|
24
19
|
import 'node:path';
|
|
25
20
|
import 'node:os';
|
|
21
|
+
import 'node:module';
|
|
22
|
+
import 'commander';
|
|
23
|
+
import 'consola/utils';
|
|
26
24
|
|
|
27
25
|
const resolvePriorityIds = (priorities) => priorities.map((name) => {
|
|
28
26
|
const id = PriorityId[name.toLowerCase()];
|
package/dist/chunks/count2.mjs
CHANGED
|
@@ -2,24 +2,22 @@ import consola from 'consola';
|
|
|
2
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
|
-
import '../
|
|
6
|
-
import { g as getClient } from '../shared/bee.
|
|
5
|
+
import '../index.mjs';
|
|
6
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
7
7
|
import 'backlog-js';
|
|
8
8
|
import 'node:http';
|
|
9
9
|
import 'open';
|
|
10
10
|
import 'node:child_process';
|
|
11
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
12
11
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
|
|
13
|
-
import { j as json, s as space } from '../shared/bee.
|
|
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';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.CHtg3F43.mjs';
|
|
20
13
|
import 'node:fs';
|
|
21
14
|
import 'node:path';
|
|
22
15
|
import 'node:os';
|
|
16
|
+
import 'node:module';
|
|
17
|
+
import 'commander';
|
|
18
|
+
import 'consola/utils';
|
|
19
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
23
21
|
|
|
24
22
|
const parseReadFilter = (value) => {
|
|
25
23
|
if (value === void 0 || value === "all") {
|
package/dist/chunks/count3.mjs
CHANGED
|
@@ -3,25 +3,23 @@ import { P as PrStatusName, a as PR_STATUS_NAMES } from '../shared/bee.DoTvz3uW.
|
|
|
3
3
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
|
-
import '../
|
|
7
|
-
import { r as resolveUserId } from '../shared/bee.
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
9
9
|
import 'backlog-js';
|
|
10
10
|
import 'node:http';
|
|
11
11
|
import 'open';
|
|
12
12
|
import 'node:child_process';
|
|
13
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
14
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.KteAW2rM.mjs';
|
|
15
|
-
import { d as project, C as repo, c as collect, h as assigneeList, f as collectNum, j as json, s as space, r as resolveOptions } from '../shared/bee.
|
|
16
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
17
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
18
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
19
|
-
import 'node:module';
|
|
20
|
-
import 'commander';
|
|
21
|
-
import 'consola/utils';
|
|
14
|
+
import { d as project, C as repo, c as collect, h as assigneeList, f as collectNum, j as json, s as space, r as resolveOptions } from '../shared/bee.CHtg3F43.mjs';
|
|
22
15
|
import 'node:fs';
|
|
23
16
|
import 'node:path';
|
|
24
17
|
import 'node:os';
|
|
18
|
+
import 'node:module';
|
|
19
|
+
import 'commander';
|
|
20
|
+
import 'consola/utils';
|
|
21
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
22
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
25
23
|
|
|
26
24
|
const resolveStatusIds = (statuses) => statuses.map((name) => {
|
|
27
25
|
const id = PrStatusName[name.toLowerCase()];
|
package/dist/chunks/count4.mjs
CHANGED
|
@@ -2,24 +2,22 @@ import consola from 'consola';
|
|
|
2
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
|
-
import '../
|
|
6
|
-
import { g as getClient } from '../shared/bee.
|
|
5
|
+
import '../index.mjs';
|
|
6
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
7
7
|
import 'backlog-js';
|
|
8
8
|
import 'node:http';
|
|
9
9
|
import 'open';
|
|
10
10
|
import 'node:child_process';
|
|
11
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
12
11
|
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.
|
|
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';
|
|
12
|
+
import { d as project, j as json, s as space, r as resolveOptions } from '../shared/bee.CHtg3F43.mjs';
|
|
20
13
|
import 'node:fs';
|
|
21
14
|
import 'node:path';
|
|
22
15
|
import 'node:os';
|
|
16
|
+
import 'node:module';
|
|
17
|
+
import 'commander';
|
|
18
|
+
import 'consola/utils';
|
|
19
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
23
21
|
|
|
24
22
|
const count = new BeeCommand("count").summary("Count wiki pages").description(`Counts all wiki pages regardless of tag or keyword.`).addOption(project()).addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
25
23
|
{ description: "Count wiki pages", command: "bee wiki count -p PROJECT" },
|
package/dist/chunks/count5.mjs
CHANGED
|
@@ -2,24 +2,22 @@ import consola from 'consola';
|
|
|
2
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
3
|
import 'node:stream/consumers';
|
|
4
4
|
import 'valibot';
|
|
5
|
-
import { p as parseArg, v as vInteger } from '../
|
|
6
|
-
import { g as getClient } from '../shared/bee.
|
|
5
|
+
import { p as parseArg, v as vInteger } from '../index.mjs';
|
|
6
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
7
7
|
import 'backlog-js';
|
|
8
8
|
import 'node:http';
|
|
9
9
|
import 'open';
|
|
10
10
|
import 'node:child_process';
|
|
11
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
12
11
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
|
|
13
|
-
import { j as json, s as space } from '../shared/bee.
|
|
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';
|
|
12
|
+
import { j as json, s as space } from '../shared/bee.CHtg3F43.mjs';
|
|
20
13
|
import 'node:fs';
|
|
21
14
|
import 'node:path';
|
|
22
15
|
import 'node:os';
|
|
16
|
+
import 'node:module';
|
|
17
|
+
import 'commander';
|
|
18
|
+
import 'consola/utils';
|
|
19
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
23
21
|
|
|
24
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([
|
|
25
23
|
{ description: "Count your stars", command: "bee star count" },
|
package/dist/chunks/create.mjs
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
-
import { j as json, s as space, a as promptRequired } from '../shared/bee.
|
|
3
|
+
import { j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
|
-
import '../
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
8
8
|
import 'backlog-js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
import { p as projectUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
11
11
|
import 'node:child_process';
|
|
12
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
13
12
|
import { B as BeeCommand, E as ENV_AUTH } from '../shared/bee.KteAW2rM.mjs';
|
|
14
13
|
import 'node:fs';
|
|
15
14
|
import 'node:path';
|
|
16
15
|
import 'node:os';
|
|
17
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
18
16
|
import 'commander';
|
|
19
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
21
17
|
import 'open';
|
|
22
18
|
import 'node:module';
|
|
23
19
|
import 'consola/utils';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
24
22
|
|
|
25
23
|
const create = new BeeCommand("create").summary("Create a project").description(
|
|
26
24
|
`Project key must consist of uppercase letters, numbers, and underscores. Omitted fields will be prompted interactively.`
|
package/dist/chunks/create2.mjs
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
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.084B_7FC.mjs';
|
|
4
|
+
import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
|
|
5
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.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
|
-
import '../
|
|
10
|
+
import { p as parseArg, a as vFiniteNumber, v as vInteger } from '../index.mjs';
|
|
11
11
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
12
|
-
import { p as projectOptional, m as assignee, q as category, v as version, t as milestone, x as notify, y as attachment, j as json, s as space, a as promptRequired } from '../shared/bee.
|
|
12
|
+
import { p as projectOptional, m as assignee, q as category, v as version, t as milestone, x as notify, y as attachment, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
13
13
|
import 'node:stream/consumers';
|
|
14
14
|
import * as v from 'valibot';
|
|
15
|
-
import { p as parseArg, a as vFiniteNumber, v as vInteger } from '../shared/bee.BYqxm3yG.mjs';
|
|
16
15
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
17
16
|
import '../shared/bee.CktwmH8R.mjs';
|
|
18
|
-
import '../shared/bee.
|
|
19
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
17
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
20
18
|
import 'open';
|
|
21
|
-
import 'node:module';
|
|
22
19
|
import 'node:fs';
|
|
23
20
|
import 'node:path';
|
|
24
21
|
import 'node:os';
|
|
22
|
+
import 'node:module';
|
|
25
23
|
import 'commander';
|
|
26
24
|
import 'consola/utils';
|
|
27
25
|
|
package/dist/chunks/create3.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
2
|
+
import { r as resolveProjectIds } from '../shared/bee.084B_7FC.mjs';
|
|
3
3
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
|
-
import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.
|
|
4
|
+
import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
5
5
|
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
6
6
|
import 'valibot';
|
|
7
|
-
import '../
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
7
|
+
import '../index.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
9
9
|
import 'backlog-js';
|
|
10
10
|
import 'node:http';
|
|
11
11
|
import { f as documentUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
12
12
|
import 'node:child_process';
|
|
13
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
14
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
15
14
|
import 'node:stream/consumers';
|
|
16
15
|
import 'node:fs';
|
|
17
16
|
import 'node:path';
|
|
18
17
|
import 'node:os';
|
|
19
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
20
18
|
import 'commander';
|
|
21
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
22
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
23
19
|
import 'open';
|
|
24
20
|
import 'node:module';
|
|
25
21
|
import 'consola/utils';
|
|
22
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
23
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
26
24
|
|
|
27
25
|
const create = new BeeCommand("create").summary("Create a document").description(
|
|
28
26
|
`Omitted required fields will be prompted interactively. When input is piped, it is used as the body automatically.`
|
package/dist/chunks/create4.mjs
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
2
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
3
|
-
import { d as project, C as repo, m as assignee, x as notify, y as attachment, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.
|
|
3
|
+
import { d as project, C as repo, m as assignee, x as notify, y as attachment, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import * as v from 'valibot';
|
|
6
|
-
import { v as vInteger } from '../
|
|
7
|
-
import { r as resolveUserId } from '../shared/bee.
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import { v as vInteger } from '../index.mjs';
|
|
7
|
+
import { r as resolveUserId } from '../shared/bee.q93n012-.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
9
9
|
import 'backlog-js';
|
|
10
10
|
import 'node:http';
|
|
11
11
|
import { h as pullRequestUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
12
12
|
import 'node:child_process';
|
|
13
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
14
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT, b as ENV_REPO } from '../shared/bee.KteAW2rM.mjs';
|
|
15
14
|
import 'node:fs';
|
|
16
15
|
import 'node:path';
|
|
17
16
|
import 'node:os';
|
|
18
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
19
17
|
import 'commander';
|
|
20
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
22
18
|
import 'open';
|
|
23
19
|
import 'node:module';
|
|
24
20
|
import 'consola/utils';
|
|
21
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
22
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
25
23
|
|
|
26
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([
|
|
27
25
|
{
|
package/dist/chunks/create5.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
|
-
import { r as resolveProjectIds } from '../shared/bee.
|
|
2
|
+
import { r as resolveProjectIds } from '../shared/bee.084B_7FC.mjs';
|
|
3
3
|
import { o as outputResult } from '../shared/bee.BTBGpv4K.mjs';
|
|
4
|
-
import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.
|
|
4
|
+
import { p as projectOptional, j as json, s as space, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
5
5
|
import { a as resolveStdinArg } from '../shared/bee.C--ZWPxf.mjs';
|
|
6
6
|
import 'valibot';
|
|
7
|
-
import '../
|
|
8
|
-
import { g as getClient } from '../shared/bee.
|
|
7
|
+
import '../index.mjs';
|
|
8
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
9
9
|
import 'backlog-js';
|
|
10
10
|
import 'node:http';
|
|
11
11
|
import { w as wikiUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
12
12
|
import 'node:child_process';
|
|
13
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
14
13
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
15
14
|
import 'node:stream/consumers';
|
|
16
15
|
import 'node:fs';
|
|
17
16
|
import 'node:path';
|
|
18
17
|
import 'node:os';
|
|
19
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
20
18
|
import 'commander';
|
|
21
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
22
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
23
19
|
import 'open';
|
|
24
20
|
import 'node:module';
|
|
25
21
|
import 'consola/utils';
|
|
22
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
23
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
26
24
|
|
|
27
25
|
const create = new BeeCommand("create").summary("Create a wiki page").description(`When input is piped, it is used as the body automatically.`).addOption(projectOptional()).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([
|
|
28
26
|
{
|
package/dist/chunks/create6.mjs
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
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.
|
|
3
|
+
import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
|
-
import '../
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
8
8
|
import 'backlog-js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
import { j as categoryUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
11
11
|
import 'node:child_process';
|
|
12
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
13
12
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
14
13
|
import 'node:fs';
|
|
15
14
|
import 'node:path';
|
|
16
15
|
import 'node:os';
|
|
17
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
18
16
|
import 'commander';
|
|
19
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
21
17
|
import 'open';
|
|
22
18
|
import 'node:module';
|
|
23
19
|
import 'consola/utils';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
24
22
|
|
|
25
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([
|
|
26
24
|
{ description: "Create a category", command: 'bee category create -p PROJECT -n "Bug Report"' },
|
package/dist/chunks/create7.mjs
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
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.
|
|
3
|
+
import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
|
-
import '../
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
8
8
|
import 'backlog-js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
import { m as milestoneUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
11
11
|
import 'node:child_process';
|
|
12
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
13
12
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
14
13
|
import 'node:fs';
|
|
15
14
|
import 'node:path';
|
|
16
15
|
import 'node:os';
|
|
17
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
18
16
|
import 'commander';
|
|
19
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
21
17
|
import 'open';
|
|
22
18
|
import 'node:module';
|
|
23
19
|
import 'consola/utils';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
24
22
|
|
|
25
23
|
const create = new BeeCommand("create").summary("Create a milestone").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Milestone name").option("-d, --description <value>", "Milestone description").option("--start-date <yyyy-MM-dd>", "Start date").option("--release-due-date <yyyy-MM-dd>", "Release due date").addOption(json()).addOption(space()).envVars([...ENV_AUTH, ENV_PROJECT]).examples([
|
|
26
24
|
{ description: "Create a milestone", command: 'bee milestone create -p PROJECT -n "v1.0.0"' },
|
package/dist/chunks/create8.mjs
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import consola from 'consola';
|
|
2
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.
|
|
3
|
+
import { d as project, j as json, s as space, r as resolveOptions, a as promptRequired } from '../shared/bee.CHtg3F43.mjs';
|
|
4
4
|
import 'node:stream/consumers';
|
|
5
5
|
import 'valibot';
|
|
6
|
-
import '../
|
|
7
|
-
import { g as getClient } from '../shared/bee.
|
|
6
|
+
import '../index.mjs';
|
|
7
|
+
import { g as getClient } from '../shared/bee.RsR9yniy.mjs';
|
|
8
8
|
import 'backlog-js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
import { k as issueTypeUrl } from '../shared/bee.CzKcWSES.mjs';
|
|
11
11
|
import 'node:child_process';
|
|
12
|
-
import '../shared/bee.x-FvgDW2.mjs';
|
|
13
12
|
import { B as BeeCommand, E as ENV_AUTH, a as ENV_PROJECT } from '../shared/bee.KteAW2rM.mjs';
|
|
14
13
|
import 'node:fs';
|
|
15
14
|
import 'node:path';
|
|
16
15
|
import 'node:os';
|
|
17
|
-
import '../shared/bee.BImw1HZl.mjs';
|
|
18
16
|
import 'commander';
|
|
19
|
-
import '../shared/bee.CktwmH8R.mjs';
|
|
20
|
-
import '../shared/bee.DfqnFet4.mjs';
|
|
21
17
|
import 'open';
|
|
22
18
|
import 'node:module';
|
|
23
19
|
import 'consola/utils';
|
|
20
|
+
import '../shared/bee.CktwmH8R.mjs';
|
|
21
|
+
import '../shared/bee.CAARNIp6.mjs';
|
|
24
22
|
|
|
25
23
|
const create = new BeeCommand("create").summary("Create an issue type").description(`Omitted fields will be prompted interactively.`).addOption(project()).option("-n, --name <value>", "Issue type name").requiredOption(
|
|
26
24
|
"--color <value>",
|