@pilatos/bitbucket-cli 1.17.0 → 1.19.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 +11 -8
- package/dist/index.js +74 -33
- package/dist/index.js.map +13 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ bb browse src/cli.ts:20 # open a file at a specific line
|
|
|
93
93
|
bb config set defaultWorkspace myworkspace
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
**Global options
|
|
96
|
+
**Global options** (work on every command): `--json [fields]`, `--jq`, `--no-color`, `--no-unicode`, `--no-truncate`, `--limit`, `--all`, `--locale`, `-w, --workspace`, `-r, --repo`. Full reference: [Global Flags](https://bitbucket-cli.paulvanderlei.com/reference/global-flags/).
|
|
97
97
|
|
|
98
98
|
### Scripting with `--json` and `--jq`
|
|
99
99
|
|
|
@@ -135,13 +135,16 @@ Full documentation: **[bitbucket-cli.paulvanderlei.com](https://bitbucket-cli.pa
|
|
|
135
135
|
|
|
136
136
|
## Environment Variables
|
|
137
137
|
|
|
138
|
-
| Variable
|
|
139
|
-
|
|
|
140
|
-
| `BB_USERNAME`
|
|
141
|
-
| `BB_API_TOKEN`
|
|
142
|
-
| `
|
|
143
|
-
| `
|
|
144
|
-
| `
|
|
138
|
+
| Variable | Description |
|
|
139
|
+
| --------------- | ---------------------------------------------------------------------- |
|
|
140
|
+
| `BB_USERNAME` | Bitbucket username (fallback for `bb auth login`) |
|
|
141
|
+
| `BB_API_TOKEN` | Bitbucket API token (fallback for `bb auth login`; for CI) |
|
|
142
|
+
| `BB_WORKSPACE` | Default workspace; overrides `defaultWorkspace` config |
|
|
143
|
+
| `BB_LOCALE` | BCP-47 locale for date/time formatting (e.g. `de-DE`); `--locale` wins |
|
|
144
|
+
| `BB_NO_UNICODE` | Use ASCII fallbacks for symbols when set (any non-empty value) |
|
|
145
|
+
| `DEBUG` | Enable HTTP debug logging — must equal exactly `true` |
|
|
146
|
+
| `NO_COLOR` | Disable color output when set |
|
|
147
|
+
| `FORCE_COLOR` | Force color output when set (and not `0`) |
|
|
145
148
|
|
|
146
149
|
Full reference: [Environment variables](https://bitbucket-cli.paulvanderlei.com/reference/environment-variables/).
|
|
147
150
|
|
package/dist/index.js
CHANGED
|
@@ -17941,8 +17941,7 @@ class ContextService {
|
|
|
17941
17941
|
};
|
|
17942
17942
|
}
|
|
17943
17943
|
if (options.repo) {
|
|
17944
|
-
const
|
|
17945
|
-
const workspace = gitContext?.workspace || config.defaultWorkspace;
|
|
17944
|
+
const workspace = gitContext?.workspace ?? await this.resolveDefaultWorkspace();
|
|
17946
17945
|
if (workspace) {
|
|
17947
17946
|
return {
|
|
17948
17947
|
context: { workspace, repoSlug: options.repo },
|
|
@@ -17953,6 +17952,21 @@ class ContextService {
|
|
|
17953
17952
|
}
|
|
17954
17953
|
return gitResult;
|
|
17955
17954
|
}
|
|
17955
|
+
async resolveDefaultWorkspace() {
|
|
17956
|
+
const fromEnv = process.env.BB_WORKSPACE;
|
|
17957
|
+
if (typeof fromEnv === "string") {
|
|
17958
|
+
const trimmed = fromEnv.trim();
|
|
17959
|
+
if (trimmed.length > 0) {
|
|
17960
|
+
return trimmed;
|
|
17961
|
+
}
|
|
17962
|
+
}
|
|
17963
|
+
const config = await this.configService.getConfig();
|
|
17964
|
+
const fromConfig = config.defaultWorkspace;
|
|
17965
|
+
if (typeof fromConfig === "string" && fromConfig.length > 0) {
|
|
17966
|
+
return fromConfig;
|
|
17967
|
+
}
|
|
17968
|
+
return;
|
|
17969
|
+
}
|
|
17956
17970
|
async requireRepoContext(options) {
|
|
17957
17971
|
const result = await this.resolveRepoContext(options);
|
|
17958
17972
|
if (!result.context) {
|
|
@@ -17990,9 +18004,9 @@ class ContextService {
|
|
|
17990
18004
|
if (explicit && explicit.length > 0) {
|
|
17991
18005
|
return explicit;
|
|
17992
18006
|
}
|
|
17993
|
-
const
|
|
17994
|
-
if (
|
|
17995
|
-
return
|
|
18007
|
+
const fallback = await this.resolveDefaultWorkspace();
|
|
18008
|
+
if (fallback) {
|
|
18009
|
+
return fallback;
|
|
17996
18010
|
}
|
|
17997
18011
|
throw new BBError({
|
|
17998
18012
|
code: 6002 /* CONTEXT_WORKSPACE_NOT_FOUND */,
|
|
@@ -18785,8 +18799,9 @@ class OutputService {
|
|
|
18785
18799
|
if (rows.length === 0) {
|
|
18786
18800
|
return;
|
|
18787
18801
|
}
|
|
18788
|
-
const
|
|
18789
|
-
const
|
|
18802
|
+
const sanitizeCell = (cell) => stripControl(cell).replace(/[\t\n\r]+/g, " ");
|
|
18803
|
+
const sanitizedHeaders = headers.map(sanitizeCell);
|
|
18804
|
+
const sanitizedRows = rows.map((row) => row.map((cell) => sanitizeCell(cell || "")));
|
|
18790
18805
|
const widths = sanitizedHeaders.map((header, index) => {
|
|
18791
18806
|
const maxRowWidth = Math.max(...sanitizedRows.map((row) => (row[index] || "").length));
|
|
18792
18807
|
return Math.max(header.length, maxRowWidth);
|
|
@@ -23570,11 +23585,14 @@ function parseLimit(limit, fallback = DEFAULT_LIMIT) {
|
|
|
23570
23585
|
}
|
|
23571
23586
|
return parsed;
|
|
23572
23587
|
}
|
|
23573
|
-
|
|
23588
|
+
function resolveLimit(options) {
|
|
23589
|
+
return options.all ? Number.POSITIVE_INFINITY : parseLimit(options.limit);
|
|
23590
|
+
}
|
|
23591
|
+
async function collectPagesWithMeta(options) {
|
|
23574
23592
|
const { fetchPage, shouldInclude } = options;
|
|
23575
23593
|
const limit = Math.max(0, options.limit);
|
|
23576
23594
|
if (limit === 0) {
|
|
23577
|
-
return [];
|
|
23595
|
+
return { items: [], hasMore: false };
|
|
23578
23596
|
}
|
|
23579
23597
|
const requestedPageSize = options.pageSize ?? limit;
|
|
23580
23598
|
const pagelen = Math.max(1, Math.min(requestedPageSize, MAX_PAGE_LENGTH));
|
|
@@ -23586,13 +23604,15 @@ async function collectPages(options) {
|
|
|
23586
23604
|
if (pageValues.length === 0) {
|
|
23587
23605
|
break;
|
|
23588
23606
|
}
|
|
23589
|
-
for (
|
|
23607
|
+
for (let i = 0;i < pageValues.length; i += 1) {
|
|
23608
|
+
const value = pageValues[i];
|
|
23590
23609
|
if (shouldInclude && !shouldInclude(value)) {
|
|
23591
23610
|
continue;
|
|
23592
23611
|
}
|
|
23593
23612
|
items.push(value);
|
|
23594
23613
|
if (items.length >= limit) {
|
|
23595
|
-
|
|
23614
|
+
const moreOnThisPage = pageValues.slice(i + 1).some((rest) => !shouldInclude || shouldInclude(rest));
|
|
23615
|
+
return { items, hasMore: moreOnThisPage || Boolean(data.next) };
|
|
23596
23616
|
}
|
|
23597
23617
|
}
|
|
23598
23618
|
if (!data.next) {
|
|
@@ -23600,7 +23620,10 @@ async function collectPages(options) {
|
|
|
23600
23620
|
}
|
|
23601
23621
|
page += 1;
|
|
23602
23622
|
}
|
|
23603
|
-
return items;
|
|
23623
|
+
return { items, hasMore: false };
|
|
23624
|
+
}
|
|
23625
|
+
async function collectPages(options) {
|
|
23626
|
+
return (await collectPagesWithMeta(options)).items;
|
|
23604
23627
|
}
|
|
23605
23628
|
|
|
23606
23629
|
// src/services/default-reviewer.service.ts
|
|
@@ -27584,6 +27607,11 @@ class BaseCommand {
|
|
|
27584
27607
|
}
|
|
27585
27608
|
return this.output.truncate(text, maxLength);
|
|
27586
27609
|
}
|
|
27610
|
+
printMoreHint(shown, hasMore, noun = "results") {
|
|
27611
|
+
if (!hasMore)
|
|
27612
|
+
return;
|
|
27613
|
+
this.output.text(this.output.dim(`Showing ${shown} ${noun}. Use --limit <n> or --all to see more.`));
|
|
27614
|
+
}
|
|
27587
27615
|
requireConfirmation(confirmed, warning) {
|
|
27588
27616
|
if (confirmed)
|
|
27589
27617
|
return;
|
|
@@ -28278,8 +28306,8 @@ class ListReposCommand extends BaseCommand {
|
|
|
28278
28306
|
}
|
|
28279
28307
|
async execute(options, context) {
|
|
28280
28308
|
const workspace = await this.contextService.requireWorkspace(options.workspace ?? context.globalOptions.workspace);
|
|
28281
|
-
const limit =
|
|
28282
|
-
const repos = await
|
|
28309
|
+
const limit = resolveLimit(options);
|
|
28310
|
+
const { items: repos, hasMore } = await collectPagesWithMeta({
|
|
28283
28311
|
limit,
|
|
28284
28312
|
fetchPage: async (page, pagelen) => {
|
|
28285
28313
|
const response = await this.repositoriesApi.repositoriesWorkspaceGet({
|
|
@@ -28308,6 +28336,7 @@ class ListReposCommand extends BaseCommand {
|
|
|
28308
28336
|
this.truncateText(repo.description ?? "", 50, context.globalOptions)
|
|
28309
28337
|
]);
|
|
28310
28338
|
this.output.table(["REPOSITORY", "VISIBILITY", "DESCRIPTION"], rows);
|
|
28339
|
+
this.printMoreHint(repos.length, hasMore, "repositories");
|
|
28311
28340
|
}
|
|
28312
28341
|
}
|
|
28313
28342
|
|
|
@@ -28675,9 +28704,9 @@ class ListPRsCommand extends BaseCommand {
|
|
|
28675
28704
|
async execute(options, context) {
|
|
28676
28705
|
const repoContext = await this.contextService.requireRepoContextFor(options, context);
|
|
28677
28706
|
const state = options.state ? this.parseEnumOption(options.state, "state", PR_STATES) : "OPEN";
|
|
28678
|
-
const limit =
|
|
28707
|
+
const limit = resolveLimit(options);
|
|
28679
28708
|
const reviewerQuery = options.mine ? await this.buildMineFilter() : undefined;
|
|
28680
|
-
const values = await
|
|
28709
|
+
const { items: values, hasMore } = await collectPagesWithMeta({
|
|
28681
28710
|
limit,
|
|
28682
28711
|
fetchPage: async (page, pagelen) => {
|
|
28683
28712
|
const response = await this.pullrequestsApi.repositoriesWorkspaceRepoSlugPullrequestsGet({
|
|
@@ -28724,6 +28753,7 @@ class ListPRsCommand extends BaseCommand {
|
|
|
28724
28753
|
];
|
|
28725
28754
|
});
|
|
28726
28755
|
this.output.table(["ID", "TITLE", "AUTHOR", "BRANCHES"], rows);
|
|
28756
|
+
this.printMoreHint(values.length, hasMore, "pull requests");
|
|
28727
28757
|
}
|
|
28728
28758
|
async buildMineFilter() {
|
|
28729
28759
|
const response = await this.usersApi.userGet();
|
|
@@ -29421,8 +29451,8 @@ class ActivityPRCommand extends BaseCommand {
|
|
|
29421
29451
|
const repoContext = await this.contextService.requireRepoContextFor(options, context);
|
|
29422
29452
|
const prId = this.parsePositiveInt(options.id, "id");
|
|
29423
29453
|
const filterTypes = this.parseTypeFilter(options.type);
|
|
29424
|
-
const limit =
|
|
29425
|
-
const activities = await
|
|
29454
|
+
const limit = resolveLimit(options);
|
|
29455
|
+
const { items: activities, hasMore } = await collectPagesWithMeta({
|
|
29426
29456
|
limit,
|
|
29427
29457
|
fetchPage: async (page, pagelen) => {
|
|
29428
29458
|
const response = await this.pullrequestsApi.repositoriesWorkspaceRepoSlugPullrequestsPullRequestIdActivityGet({
|
|
@@ -29472,6 +29502,7 @@ class ActivityPRCommand extends BaseCommand {
|
|
|
29472
29502
|
];
|
|
29473
29503
|
});
|
|
29474
29504
|
this.output.table(["TYPE", "ACTOR", "DATE", "DETAILS"], rows);
|
|
29505
|
+
this.printMoreHint(activities.length, hasMore, "activity entries");
|
|
29475
29506
|
}
|
|
29476
29507
|
parseTypeFilter(typeOption) {
|
|
29477
29508
|
if (!typeOption) {
|
|
@@ -29658,8 +29689,8 @@ class ListCommentsPRCommand extends BaseCommand {
|
|
|
29658
29689
|
async execute(options, context) {
|
|
29659
29690
|
const repoContext = await this.contextService.requireRepoContextFor(options, context);
|
|
29660
29691
|
const prId = this.parsePositiveInt(options.id, "id");
|
|
29661
|
-
const limit =
|
|
29662
|
-
const values = await
|
|
29692
|
+
const limit = resolveLimit(options);
|
|
29693
|
+
const { items: values, hasMore } = await collectPagesWithMeta({
|
|
29663
29694
|
limit,
|
|
29664
29695
|
fetchPage: async (page, pagelen) => {
|
|
29665
29696
|
const response = await this.pullrequestsApi.repositoriesWorkspaceRepoSlugPullrequestsPullRequestIdCommentsGet({
|
|
@@ -29696,6 +29727,7 @@ class ListCommentsPRCommand extends BaseCommand {
|
|
|
29696
29727
|
];
|
|
29697
29728
|
});
|
|
29698
29729
|
this.output.table(["ID", "Author", "Content", "Date"], rows);
|
|
29730
|
+
this.printMoreHint(values.length, hasMore, "comments");
|
|
29699
29731
|
}
|
|
29700
29732
|
}
|
|
29701
29733
|
|
|
@@ -30025,9 +30057,9 @@ class ListSnippetsCommand extends BaseCommand {
|
|
|
30025
30057
|
}
|
|
30026
30058
|
async execute(options, context) {
|
|
30027
30059
|
const workspace = await this.contextService.requireWorkspace(options.workspace ?? context.globalOptions.workspace);
|
|
30028
|
-
const limit =
|
|
30060
|
+
const limit = resolveLimit(options);
|
|
30029
30061
|
const role = options.role ? this.parseEnumOption(options.role, "role", VALID_ROLES) : undefined;
|
|
30030
|
-
const snippets = await
|
|
30062
|
+
const { items: snippets, hasMore } = await collectPagesWithMeta({
|
|
30031
30063
|
limit,
|
|
30032
30064
|
fetchPage: async (page, pagelen) => {
|
|
30033
30065
|
const response = await this.snippetsApi.snippetsWorkspaceGet({
|
|
@@ -30059,6 +30091,7 @@ class ListSnippetsCommand extends BaseCommand {
|
|
|
30059
30091
|
this.output.formatDate(snippet.updated_on ?? "")
|
|
30060
30092
|
]);
|
|
30061
30093
|
this.output.table(["ID", "TITLE", "VISIBILITY", "CREATOR", "UPDATED"], rows);
|
|
30094
|
+
this.printMoreHint(snippets.length, hasMore, "snippets");
|
|
30062
30095
|
}
|
|
30063
30096
|
}
|
|
30064
30097
|
|
|
@@ -30383,8 +30416,8 @@ class ListSnippetCommentsCommand extends BaseCommand {
|
|
|
30383
30416
|
}
|
|
30384
30417
|
async execute(options, context) {
|
|
30385
30418
|
const workspace = await this.contextService.requireWorkspace(options.workspace ?? context.globalOptions.workspace);
|
|
30386
|
-
const limit =
|
|
30387
|
-
const comments = await
|
|
30419
|
+
const limit = resolveLimit(options);
|
|
30420
|
+
const { items: comments, hasMore } = await collectPagesWithMeta({
|
|
30388
30421
|
limit,
|
|
30389
30422
|
fetchPage: async (page, pagelen) => {
|
|
30390
30423
|
const response = await this.snippetsApi.snippetsWorkspaceEncodedIdCommentsGet({
|
|
@@ -30419,6 +30452,7 @@ class ListSnippetCommentsCommand extends BaseCommand {
|
|
|
30419
30452
|
];
|
|
30420
30453
|
});
|
|
30421
30454
|
this.output.table(["ID", "AUTHOR", "DATE", "CONTENT"], rows);
|
|
30455
|
+
this.printMoreHint(comments.length, hasMore, "comments");
|
|
30422
30456
|
}
|
|
30423
30457
|
}
|
|
30424
30458
|
|
|
@@ -31481,14 +31515,15 @@ function withGlobalOptions(options, context) {
|
|
|
31481
31515
|
};
|
|
31482
31516
|
}
|
|
31483
31517
|
var cli = new Command;
|
|
31484
|
-
cli.name("bb").description("A command-line interface for Bitbucket Cloud").version(pkg2.version).option("--json [fields]", "Output as JSON; optionally project to a comma-separated field list (e.g. number,title,author.display_name)").option("--jq <expression>", `Filter the JSON output through a jq expression \u2014 runs in-process via embedded jq, requires --json (e.g. '.pullRequests[] | select(.state == "OPEN") | .title')`).option("--no-color", "Disable color output").option("--no-unicode", "Use ASCII fallbacks for symbols (separators, arrows, status icons) \u2014 also enabled by BB_NO_UNICODE").option("--no-truncate", "Show full values in table output without truncation").option("--locale <locale>", "BCP-47 locale tag for date/time formatting (e.g. de-DE, ja-JP). Falls back to BB_LOCALE, then LC_TIME/LC_ALL/LANG, then en-US.").option("-w, --workspace <workspace>", "Specify workspace").option("-r, --repo <repo>", "Specify repository").addHelpText("after", buildHelpText({
|
|
31518
|
+
cli.name("bb").description("A command-line interface for Bitbucket Cloud").version(pkg2.version).option("--json [fields]", "Output as JSON; optionally project to a comma-separated field list (e.g. number,title,author.display_name)").option("--jq <expression>", `Filter the JSON output through a jq expression \u2014 runs in-process via embedded jq, requires --json (e.g. '.pullRequests[] | select(.state == "OPEN") | .title')`).option("--no-color", "Disable color output").option("--no-unicode", "Use ASCII fallbacks for symbols (separators, arrows, status icons) \u2014 also enabled by BB_NO_UNICODE").option("--no-truncate", "Show full values in table output without truncation").option("--locale <locale>", "BCP-47 locale tag for date/time formatting (e.g. de-DE, ja-JP). Falls back to BB_LOCALE, then LC_TIME/LC_ALL/LANG, then en-US.").option("-w, --workspace <workspace>", "Specify workspace (falls back to BB_WORKSPACE, then config defaultWorkspace)").option("-r, --repo <repo>", "Specify repository").addHelpText("after", buildHelpText({
|
|
31485
31519
|
envVars: {
|
|
31486
31520
|
BB_USERNAME: "Bitbucket username (fallback for auth login)",
|
|
31487
31521
|
BB_API_TOKEN: "Bitbucket API token (fallback for auth login)",
|
|
31522
|
+
BB_WORKSPACE: "Default workspace (overrides config.defaultWorkspace; --workspace still wins)",
|
|
31488
31523
|
NO_COLOR: "Disable color output when set",
|
|
31489
31524
|
FORCE_COLOR: "Force color output when set (and not '0')",
|
|
31490
31525
|
BB_NO_UNICODE: "Use ASCII fallbacks for symbols when set (any non-empty value)",
|
|
31491
|
-
DEBUG: "Enable HTTP debug logging when 'true'",
|
|
31526
|
+
DEBUG: "Enable HTTP debug logging when exactly 'true'",
|
|
31492
31527
|
BB_LOCALE: "BCP-47 locale tag for date/time formatting; --locale takes precedence"
|
|
31493
31528
|
},
|
|
31494
31529
|
seeAlso: [
|
|
@@ -31586,10 +31621,11 @@ repoCmd.command("create <name>").description("Create a new repository").option("
|
|
|
31586
31621
|
const context = createContext(cli);
|
|
31587
31622
|
await runCommand(ServiceTokens.CreateRepoCommand, withGlobalOptions({ name, ...options }, context), cli, context);
|
|
31588
31623
|
});
|
|
31589
|
-
repoCmd.command("list").description("List repositories").option("--limit <number>", "Maximum number of repositories to list", "25").addHelpText("after", buildHelpText({
|
|
31624
|
+
repoCmd.command("list").description("List repositories").option("--limit <number>", "Maximum number of repositories to list", "25").option("--all", "List all repositories (overrides --limit)").addHelpText("after", buildHelpText({
|
|
31590
31625
|
examples: [
|
|
31591
31626
|
"bb repo list",
|
|
31592
31627
|
"bb repo list --limit 50",
|
|
31628
|
+
"bb repo list --all",
|
|
31593
31629
|
"bb repo list --json"
|
|
31594
31630
|
],
|
|
31595
31631
|
defaults: { limit: "25" }
|
|
@@ -31675,10 +31711,11 @@ prCmd.command("create").description("Create a pull request").option("-t, --title
|
|
|
31675
31711
|
const context = createContext(cli);
|
|
31676
31712
|
await runCommand(ServiceTokens.CreatePRCommand, withGlobalOptions(options, context), cli, context);
|
|
31677
31713
|
});
|
|
31678
|
-
prCmd.command("list").description("List pull requests").option("-s, --state <state>", `Filter by state (${PR_STATES.join(", ")})`, "OPEN").option("--limit <number>", "Maximum number of PRs to list", "25").option("--mine", "Show only PRs where you are a reviewer (not authored by you)").addHelpText("after", buildHelpText({
|
|
31714
|
+
prCmd.command("list").description("List pull requests").option("-s, --state <state>", `Filter by state (${PR_STATES.join(", ")})`, "OPEN").option("--limit <number>", "Maximum number of PRs to list", "25").option("--all", "List all pull requests (overrides --limit)").option("--mine", "Show only PRs where you are a reviewer (not authored by you)").addHelpText("after", buildHelpText({
|
|
31679
31715
|
examples: [
|
|
31680
31716
|
"bb pr list",
|
|
31681
31717
|
"bb pr list -s MERGED --limit 10",
|
|
31718
|
+
"bb pr list --all",
|
|
31682
31719
|
"bb pr list --mine",
|
|
31683
31720
|
"bb pr list --json"
|
|
31684
31721
|
],
|
|
@@ -31706,10 +31743,11 @@ prCmd.command("view <id>").description("View pull request details").addHelpText(
|
|
|
31706
31743
|
const context = createContext(cli);
|
|
31707
31744
|
await runCommand(ServiceTokens.ViewPRCommand, withGlobalOptions({ id, ...options }, context), cli, context);
|
|
31708
31745
|
});
|
|
31709
|
-
prCmd.command("activity <id>").description("Show pull request activity log").option("--limit <number>", "Maximum number of activity entries", "25").option("--type <types>", "Filter activity by type (comma-separated)").addHelpText("after", buildHelpText({
|
|
31746
|
+
prCmd.command("activity <id>").description("Show pull request activity log").option("--limit <number>", "Maximum number of activity entries", "25").option("--all", "Show all activity entries (overrides --limit)").option("--type <types>", "Filter activity by type (comma-separated)").addHelpText("after", buildHelpText({
|
|
31710
31747
|
examples: [
|
|
31711
31748
|
"bb pr activity 42",
|
|
31712
31749
|
"bb pr activity 42 --type comment,approval",
|
|
31750
|
+
"bb pr activity 42 --all",
|
|
31713
31751
|
"bb pr activity 42 --limit 10 --json"
|
|
31714
31752
|
],
|
|
31715
31753
|
validValues: {
|
|
@@ -31824,10 +31862,11 @@ prCmd.command("diff [id]").description("View pull request diff").option("--color
|
|
|
31824
31862
|
await runCommand(ServiceTokens.DiffPRCommand, withGlobalOptions({ id, ...options }, context), cli, context);
|
|
31825
31863
|
});
|
|
31826
31864
|
var prCommentsCmd = new Command("comments").description("Manage pull request comments");
|
|
31827
|
-
prCommentsCmd.command("list <id>").description("List comments on a pull request").option("--limit <number>", "Maximum number of comments (default: 25)").addHelpText("after", buildHelpText({
|
|
31865
|
+
prCommentsCmd.command("list <id>").description("List comments on a pull request").option("--limit <number>", "Maximum number of comments (default: 25)").option("--all", "List all comments (overrides --limit)").addHelpText("after", buildHelpText({
|
|
31828
31866
|
examples: [
|
|
31829
31867
|
"bb pr comments list 42",
|
|
31830
31868
|
"bb pr comments list 42 --no-truncate",
|
|
31869
|
+
"bb pr comments list 42 --all",
|
|
31831
31870
|
"bb pr comments list 42 --limit 50 --json"
|
|
31832
31871
|
],
|
|
31833
31872
|
defaults: { limit: "25" }
|
|
@@ -31891,10 +31930,11 @@ cli.addCommand(prCmd);
|
|
|
31891
31930
|
prCmd.addCommand(prCommentsCmd);
|
|
31892
31931
|
prCmd.addCommand(prReviewersCmd);
|
|
31893
31932
|
var snippetCmd = new Command("snippet").description("Manage snippets");
|
|
31894
|
-
snippetCmd.command("list").description("List snippets in a workspace").option("--role <role>", "Filter by role (owner, contributor, member)").option("--limit <number>", "Maximum number of snippets to list", "25").addHelpText("after", buildHelpText({
|
|
31933
|
+
snippetCmd.command("list").description("List snippets in a workspace").option("--role <role>", "Filter by role (owner, contributor, member)").option("--limit <number>", "Maximum number of snippets to list", "25").option("--all", "List all snippets (overrides --limit)").addHelpText("after", buildHelpText({
|
|
31895
31934
|
examples: [
|
|
31896
31935
|
"bb snippet list",
|
|
31897
31936
|
"bb snippet list --role owner",
|
|
31937
|
+
"bb snippet list --all",
|
|
31898
31938
|
"bb snippet list --limit 50 --json"
|
|
31899
31939
|
],
|
|
31900
31940
|
validValues: {
|
|
@@ -31958,9 +31998,10 @@ snippetCmd.command("unwatch <id>").description("Stop watching a snippet").addHel
|
|
|
31958
31998
|
await runCommand(ServiceTokens.UnwatchSnippetCommand, withGlobalOptions({ id, ...options }, context), cli, context);
|
|
31959
31999
|
});
|
|
31960
32000
|
var snippetCommentsCmd = new Command("comments").description("Manage snippet comments");
|
|
31961
|
-
snippetCommentsCmd.command("list <id>").description("List comments on a snippet").option("--limit <number>", "Maximum number of comments", "25").addHelpText("after", buildHelpText({
|
|
32001
|
+
snippetCommentsCmd.command("list <id>").description("List comments on a snippet").option("--limit <number>", "Maximum number of comments", "25").option("--all", "List all comments (overrides --limit)").addHelpText("after", buildHelpText({
|
|
31962
32002
|
examples: [
|
|
31963
32003
|
"bb snippet comments list kypj",
|
|
32004
|
+
"bb snippet comments list kypj --all",
|
|
31964
32005
|
"bb snippet comments list kypj --limit 50 --json"
|
|
31965
32006
|
],
|
|
31966
32007
|
defaults: { limit: "25" }
|
|
@@ -32092,5 +32133,5 @@ if (typeof Bun === "undefined") {
|
|
|
32092
32133
|
}
|
|
32093
32134
|
cli.parse(process.argv);
|
|
32094
32135
|
|
|
32095
|
-
//# debugId=
|
|
32136
|
+
//# debugId=C24B0C4332F9755664756E2164756E21
|
|
32096
32137
|
//# sourceMappingURL=index.js.map
|