Skip to content

Commit c758809

Browse files
Fix: mark the r2 bulk command as hidden and experimental (#11344)
1 parent dfba912 commit c758809

File tree

5 files changed

+38
-39
lines changed

5 files changed

+38
-39
lines changed

.changeset/green-parents-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Fix: mark the `r2 bulk` command as hidden and experimental

packages/wrangler/src/__tests__/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ describe("wrangler", () => {
301301
wrangler r2 object Manage R2 objects
302302
wrangler r2 bucket Manage R2 buckets
303303
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
304-
wrangler r2 bulk Interact with multiple R2 objects at once
305304
306305
GLOBAL FLAGS
307306
-c, --config Path to Wrangler configuration file [string]

packages/wrangler/src/__tests__/r2/bulk.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ describe("r2", () => {
2323
expect(std.out).toMatchInlineSnapshot(`
2424
"wrangler r2 bulk
2525
26-
Interact with multiple R2 objects at once
27-
28-
COMMANDS
29-
wrangler r2 bulk put <bucket> Create objects in an R2 bucket
30-
3126
GLOBAL FLAGS
3227
-c, --config Path to Wrangler configuration file [string]
3328
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]

packages/wrangler/src/__tests__/r2/help.test.ts

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,23 @@ describe("r2", () => {
1515
await runWrangler("r2");
1616
await endEventLoop();
1717
expect(std.out).toMatchInlineSnapshot(`
18-
"wrangler r2
18+
"wrangler r2
1919
20-
📦 Manage R2 buckets & objects
20+
📦 Manage R2 buckets & objects
2121
22-
COMMANDS
23-
wrangler r2 object Manage R2 objects
24-
wrangler r2 bucket Manage R2 buckets
25-
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
26-
wrangler r2 bulk Interact with multiple R2 objects at once
22+
COMMANDS
23+
wrangler r2 object Manage R2 objects
24+
wrangler r2 bucket Manage R2 buckets
25+
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
2726
28-
GLOBAL FLAGS
29-
-c, --config Path to Wrangler configuration file [string]
30-
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
31-
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
32-
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
33-
-h, --help Show help [boolean]
34-
-v, --version Show version number [boolean]"
35-
`);
27+
GLOBAL FLAGS
28+
-c, --config Path to Wrangler configuration file [string]
29+
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
30+
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
31+
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
32+
-h, --help Show help [boolean]
33+
-v, --version Show version number [boolean]"
34+
`);
3635
});
3736

3837
it("should show help when an invalid argument is passed", async () => {
@@ -46,25 +45,24 @@ describe("r2", () => {
4645
"
4746
`);
4847
expect(std.out).toMatchInlineSnapshot(`
49-
"
50-
wrangler r2
48+
"
49+
wrangler r2
5150
52-
📦 Manage R2 buckets & objects
51+
📦 Manage R2 buckets & objects
5352
54-
COMMANDS
55-
wrangler r2 object Manage R2 objects
56-
wrangler r2 bucket Manage R2 buckets
57-
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
58-
wrangler r2 bulk Interact with multiple R2 objects at once
53+
COMMANDS
54+
wrangler r2 object Manage R2 objects
55+
wrangler r2 bucket Manage R2 buckets
56+
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
5957
60-
GLOBAL FLAGS
61-
-c, --config Path to Wrangler configuration file [string]
62-
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
63-
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
64-
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
65-
-h, --help Show help [boolean]
66-
-v, --version Show version number [boolean]"
67-
`);
58+
GLOBAL FLAGS
59+
-c, --config Path to Wrangler configuration file [string]
60+
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
61+
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
62+
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
63+
-h, --help Show help [boolean]
64+
-v, --version Show version number [boolean]"
65+
`);
6866
});
6967
});
7068
});

packages/wrangler/src/r2/object.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ export const r2ObjectNamespace = createNamespace({
3737
export const r2BulkNamespace = createNamespace({
3838
metadata: {
3939
description: `Interact with multiple R2 objects at once`,
40-
status: "stable",
40+
status: "experimental",
4141
owner: "Product: R2",
42+
hidden: true,
4243
},
4344
});
4445

@@ -450,8 +451,9 @@ export const r2ObjectDeleteCommand = createCommand({
450451
export const r2BulkPutCommand = createCommand({
451452
metadata: {
452453
description: "Create objects in an R2 bucket",
453-
status: "stable",
454+
status: "experimental",
454455
owner: "Product: R2",
456+
hidden: true,
455457
},
456458
positionalArgs: ["bucket"],
457459
args: {

0 commit comments

Comments
 (0)