@leeguoo/wrangler-accounts 1.6.3 → 1.6.4
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/bin/wrangler-accounts.js +8 -0
- package/package.json +1 -1
package/bin/wrangler-accounts.js
CHANGED
|
@@ -376,6 +376,14 @@ function parseArgs(argv) {
|
|
|
376
376
|
// forwarded to wrangler verbatim (including wrangler's own --env,
|
|
377
377
|
// --json, etc.).
|
|
378
378
|
if (sawFirstNonFlag && !sawManagementSubcommand) {
|
|
379
|
+
// --profile / -p must not be forwarded to wrangler; absorb it here so
|
|
380
|
+
// users can write it after the wrangler subcommand:
|
|
381
|
+
// wrangler-accounts deploy --config wrangler.prod.toml --profile myprof
|
|
382
|
+
if ((arg === "--profile" || arg === "-p") && i + 1 < argv.length) {
|
|
383
|
+
opts.profile = argv[i + 1];
|
|
384
|
+
i += 1;
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
379
387
|
rest.push(arg);
|
|
380
388
|
continue;
|
|
381
389
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leeguoo/wrangler-accounts",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Cloudflare Wrangler multi-account manager — save, switch, and run wrangler against multiple Cloudflare Workers accounts with AWS-style --profile and per-invocation shadow HOME isolation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|