You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wrangler/src/__tests__/r2.test.ts
+47-23
Original file line number
Diff line number
Diff line change
@@ -204,8 +204,9 @@ describe("r2", () => {
204
204
-v, --version Show version number [boolean]
205
205
206
206
OPTIONS
207
-
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]
208
-
-s, --storage-class The default storage class for objects uploaded to this bucket [string]"
207
+
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\"]
208
+
-s, --storage-class The default storage class for objects uploaded to this bucket [string]
209
+
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]"
209
210
`);
210
211
expect(std.err).toMatchInlineSnapshot(`
211
212
"[31mX [41;31m[[41;97mERROR[41;31m][0m [1mNot enough non-option arguments: got 0, need at least 1[0m
@@ -221,24 +222,25 @@ describe("r2", () => {
221
222
`[Error: Unknown arguments: def, ghi]`
222
223
);
223
224
expect(std.out).toMatchInlineSnapshot(`
224
-
"
225
-
wrangler r2 bucket create <name>
225
+
"
226
+
wrangler r2 bucket create <name>
226
227
227
-
Create a new R2 bucket
228
+
Create a new R2 bucket
228
229
229
-
POSITIONALS
230
-
name The name of the new bucket [string] [required]
230
+
POSITIONALS
231
+
name The name of the new bucket [string] [required]
231
232
232
-
GLOBAL FLAGS
233
-
-j, --experimental-json-config Experimental: support wrangler.json [boolean]
234
-
-c, --config Path to .toml configuration file [string]
235
-
-e, --env Environment to use for operations and .env files [string]
236
-
-h, --help Show help [boolean]
237
-
-v, --version Show version number [boolean]
233
+
GLOBAL FLAGS
234
+
-j, --experimental-json-config Experimental: support wrangler.json [boolean]
235
+
-c, --config Path to .toml configuration file [string]
236
+
-e, --env Environment to use for operations and .env files [string]
237
+
-h, --help Show help [boolean]
238
+
-v, --version Show version number [boolean]
238
239
239
-
OPTIONS
240
-
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]
241
-
-s, --storage-class The default storage class for objects uploaded to this bucket [string]"
240
+
OPTIONS
241
+
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\"]
242
+
-s, --storage-class The default storage class for objects uploaded to this bucket [string]
243
+
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]"
0 commit comments