Skip to content

Commit

Permalink
refactor(wrangler): clarify the --env options
Browse files Browse the repository at this point in the history
It also affects which .dev.vars is loaded
  • Loading branch information
vicb committed Jan 22, 2025
1 parent 6c2e943 commit 319d8b7
Show file tree
Hide file tree
Showing 26 changed files with 91 additions and 91 deletions.
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/ai.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("ai help", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -55,7 +55,7 @@ describe("ai help", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("cloudchamber create", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/cloudchamber/curl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe("cloudchamber curl", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("cloudchamber delete", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("cloudchamber image", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/cloudchamber/list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("cloudchamber list", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe("cloudchamber modify", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
8 changes: 4 additions & 4 deletions packages/wrangler/src/__tests__/d1/d1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("d1", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -66,7 +66,7 @@ describe("d1", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -95,7 +95,7 @@ describe("d1", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -123,7 +123,7 @@ describe("d1", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/deployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("deployments", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ describe.sequential("wrangler dev", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("wrangler docs", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/hyperdrive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("hyperdrive help", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -69,7 +69,7 @@ describe("hyperdrive help", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
14 changes: 7 additions & 7 deletions packages/wrangler/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -124,7 +124,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -190,7 +190,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -211,7 +211,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -233,7 +233,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -253,7 +253,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -273,7 +273,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
32 changes: 16 additions & 16 deletions packages/wrangler/src/__tests__/kv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -69,7 +69,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -97,7 +97,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down Expand Up @@ -141,7 +141,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -172,7 +172,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -623,7 +623,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -664,7 +664,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -705,7 +705,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -746,7 +746,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -787,7 +787,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -1156,7 +1156,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -1192,7 +1192,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -1229,7 +1229,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down Expand Up @@ -1800,7 +1800,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -1820,7 +1820,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -1838,7 +1838,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/mtls-certificates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ describe("wrangler", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/pipelines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ describe("pipelines", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]"
`);
Expand All @@ -285,7 +285,7 @@ describe("pipelines", () => {
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
-e, --env Environment to use for operations and .env files [string]
-e, --env Environment to use for operations, .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Expand Down
Loading

0 comments on commit 319d8b7

Please sign in to comment.