Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/green-parents-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Fix: mark the `r2 bulk` command as hidden and experimental
1 change: 0 additions & 1 deletion packages/wrangler/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ describe("wrangler", () => {
wrangler r2 object Manage R2 objects
wrangler r2 bucket Manage R2 buckets
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
wrangler r2 bulk Interact with multiple R2 objects at once

GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
Expand Down
5 changes: 0 additions & 5 deletions packages/wrangler/src/__tests__/r2/bulk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ describe("r2", () => {
expect(std.out).toMatchInlineSnapshot(`
"wrangler r2 bulk

Interact with multiple R2 objects at once

COMMANDS
wrangler r2 bulk put <bucket> Create objects in an R2 bucket

GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
Expand Down
60 changes: 29 additions & 31 deletions packages/wrangler/src/__tests__/r2/help.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,23 @@ describe("r2", () => {
await runWrangler("r2");
await endEventLoop();
expect(std.out).toMatchInlineSnapshot(`
"wrangler r2
"wrangler r2

📦 Manage R2 buckets & objects
📦 Manage R2 buckets & objects

COMMANDS
wrangler r2 object Manage R2 objects
wrangler r2 bucket Manage R2 buckets
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
wrangler r2 bulk Interact with multiple R2 objects at once
COMMANDS
wrangler r2 object Manage R2 objects
wrangler r2 bucket Manage R2 buckets
wrangler r2 sql Send queries and manage R2 SQL [open-beta]

GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--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]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--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]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
});

it("should show help when an invalid argument is passed", async () => {
Expand All @@ -46,25 +45,24 @@ describe("r2", () => {
"
`);
expect(std.out).toMatchInlineSnapshot(`
"
wrangler r2
"
wrangler r2

📦 Manage R2 buckets & objects
📦 Manage R2 buckets & objects

COMMANDS
wrangler r2 object Manage R2 objects
wrangler r2 bucket Manage R2 buckets
wrangler r2 sql Send queries and manage R2 SQL [open-beta]
wrangler r2 bulk Interact with multiple R2 objects at once
COMMANDS
wrangler r2 object Manage R2 objects
wrangler r2 bucket Manage R2 buckets
wrangler r2 sql Send queries and manage R2 SQL [open-beta]

GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--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]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--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]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
});
});
});
6 changes: 4 additions & 2 deletions packages/wrangler/src/r2/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export const r2ObjectNamespace = createNamespace({
export const r2BulkNamespace = createNamespace({
metadata: {
description: `Interact with multiple R2 objects at once`,
status: "stable",
status: "experimental",
owner: "Product: R2",
hidden: true,
},
});

Expand Down Expand Up @@ -450,8 +451,9 @@ export const r2ObjectDeleteCommand = createCommand({
export const r2BulkPutCommand = createCommand({
metadata: {
description: "Create objects in an R2 bucket",
status: "stable",
status: "experimental",
owner: "Product: R2",
hidden: true,
},
positionalArgs: ["bucket"],
args: {
Expand Down
Loading