diff --git a/packages/wrangler/src/__tests__/ai.test.ts b/packages/wrangler/src/__tests__/ai.test.ts index 485d3a5eb528..3af792926a62 100644 --- a/packages/wrangler/src/__tests__/ai.test.ts +++ b/packages/wrangler/src/__tests__/ai.test.ts @@ -27,11 +27,11 @@ describe("ai help", () => { wrangler ai finetune Interact with finetune files GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -57,11 +57,11 @@ describe("ai help", () => { wrangler ai finetune Interact with finetune files GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/cloudchamber/create.test.ts b/packages/wrangler/src/__tests__/cloudchamber/create.test.ts index ecbbb232f7d2..4d82a181c6b0 100644 --- a/packages/wrangler/src/__tests__/cloudchamber/create.test.ts +++ b/packages/wrangler/src/__tests__/cloudchamber/create.test.ts @@ -32,11 +32,11 @@ describe("cloudchamber create", () => { Create a new deployment GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json Return output as clean JSON [boolean] [default: false] diff --git a/packages/wrangler/src/__tests__/cloudchamber/delete.test.ts b/packages/wrangler/src/__tests__/cloudchamber/delete.test.ts index 4473504aaebe..7fc32bd35282 100644 --- a/packages/wrangler/src/__tests__/cloudchamber/delete.test.ts +++ b/packages/wrangler/src/__tests__/cloudchamber/delete.test.ts @@ -35,11 +35,11 @@ describe("cloudchamber delete", () => { deploymentId deployment you want to delete [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json Return output as clean JSON [boolean] [default: false]" diff --git a/packages/wrangler/src/__tests__/cloudchamber/images.test.ts b/packages/wrangler/src/__tests__/cloudchamber/images.test.ts index a1b60c51d894..806bfc79d4e9 100644 --- a/packages/wrangler/src/__tests__/cloudchamber/images.test.ts +++ b/packages/wrangler/src/__tests__/cloudchamber/images.test.ts @@ -34,11 +34,11 @@ describe("cloudchamber image", () => { wrangler cloudchamber registries credentials [domain] get a temporary password for a specific domain GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json Return output as clean JSON [boolean] [default: false]" diff --git a/packages/wrangler/src/__tests__/cloudchamber/list.test.ts b/packages/wrangler/src/__tests__/cloudchamber/list.test.ts index cd5df1bf813d..a86d05067797 100644 --- a/packages/wrangler/src/__tests__/cloudchamber/list.test.ts +++ b/packages/wrangler/src/__tests__/cloudchamber/list.test.ts @@ -36,11 +36,11 @@ describe("cloudchamber list", () => { This means that 'list' will only showcase deployments that contain this ID prefix [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json Return output as clean JSON [boolean] [default: false] diff --git a/packages/wrangler/src/__tests__/cloudchamber/modify.test.ts b/packages/wrangler/src/__tests__/cloudchamber/modify.test.ts index 619d465b27f6..1027c4bc9b9f 100644 --- a/packages/wrangler/src/__tests__/cloudchamber/modify.test.ts +++ b/packages/wrangler/src/__tests__/cloudchamber/modify.test.ts @@ -34,11 +34,11 @@ describe("cloudchamber modify", () => { deploymentId The deployment you want to modify [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json Return output as clean JSON [boolean] [default: false] diff --git a/packages/wrangler/src/__tests__/constellation.test.ts b/packages/wrangler/src/__tests__/constellation.test.ts index b084ff3b99ea..b2aad6131d11 100644 --- a/packages/wrangler/src/__tests__/constellation.test.ts +++ b/packages/wrangler/src/__tests__/constellation.test.ts @@ -28,11 +28,11 @@ describe("constellation help", () => { wrangler constellation runtime Check the suported runtimes GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -57,11 +57,11 @@ describe("constellation help", () => { wrangler constellation runtime Check the suported runtimes GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/d1/d1.test.ts b/packages/wrangler/src/__tests__/d1/d1.test.ts index 73f71d424330..843d19345afd 100644 --- a/packages/wrangler/src/__tests__/d1/d1.test.ts +++ b/packages/wrangler/src/__tests__/d1/d1.test.ts @@ -29,11 +29,11 @@ describe("d1", () => { wrangler d1 migrations Interact with D1 migrations GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -66,11 +66,11 @@ describe("d1", () => { wrangler d1 migrations Interact with D1 migrations GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -96,11 +96,11 @@ describe("d1", () => { wrangler d1 migrations apply Apply D1 migrations GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -125,11 +125,11 @@ describe("d1", () => { wrangler d1 time-travel restore Restore a database back to a specific point-in-time GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/deployments.test.ts b/packages/wrangler/src/__tests__/deployments.test.ts index 7c84e224a6a4..2eee504dc625 100644 --- a/packages/wrangler/src/__tests__/deployments.test.ts +++ b/packages/wrangler/src/__tests__/deployments.test.ts @@ -64,11 +64,11 @@ describe("deployments", () => { wrangler deployments view [deployment-id] View a deployment GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --name The name of your Worker [string] diff --git a/packages/wrangler/src/__tests__/hyperdrive.test.ts b/packages/wrangler/src/__tests__/hyperdrive.test.ts index c6710908b419..0465ac5ef34f 100644 --- a/packages/wrangler/src/__tests__/hyperdrive.test.ts +++ b/packages/wrangler/src/__tests__/hyperdrive.test.ts @@ -32,11 +32,11 @@ describe("hyperdrive help", () => { wrangler hyperdrive update Update a Hyperdrive config GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -64,11 +64,11 @@ describe("hyperdrive help", () => { wrangler hyperdrive update Update a Hyperdrive config GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/index.test.ts b/packages/wrangler/src/__tests__/index.test.ts index 5adac154e049..8b4870417042 100644 --- a/packages/wrangler/src/__tests__/index.test.ts +++ b/packages/wrangler/src/__tests__/index.test.ts @@ -36,10 +36,10 @@ describe("wrangler", () => { "wrangler COMMANDS - wrangler docs [command] 📚 Open the wrangler commands documentation in your browser + wrangler docs [command] 📚 Open Wrangler's command documentation in your browser - wrangler init [name] 📥 Initialize a basic Worker application - wrangler dev [script] 👂 Start a local server for developing a Worker + wrangler init [name] 📥 Initialize a basic Worker + wrangler dev [script] 👂 Start a local server for developing your Worker wrangler deploy [script] 🆙 Deploy a Worker to Cloudflare [aliases: publish] wrangler deployments 🚢 List and view the current and past deployments for your Worker [open beta] wrangler rollback [deployment-id] 🔙 Rollback a deployment for a Worker [open beta] @@ -62,14 +62,14 @@ describe("wrangler", () => { wrangler login 🔓 Login to Cloudflare wrangler logout 🚪 Logout from Cloudflare - wrangler whoami 🕵️ Retrieve your user information and test your authentication configuration + wrangler whoami 🕵️ Retrieve your user information GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose" `); @@ -91,10 +91,10 @@ describe("wrangler", () => { wrangler COMMANDS - wrangler docs [command] 📚 Open the wrangler commands documentation in your browser + wrangler docs [command] 📚 Open Wrangler's command documentation in your browser - wrangler init [name] 📥 Initialize a basic Worker application - wrangler dev [script] 👂 Start a local server for developing a Worker + wrangler init [name] 📥 Initialize a basic Worker + wrangler dev [script] 👂 Start a local server for developing your Worker wrangler deploy [script] 🆙 Deploy a Worker to Cloudflare [aliases: publish] wrangler deployments 🚢 List and view the current and past deployments for your Worker [open beta] wrangler rollback [deployment-id] 🔙 Rollback a deployment for a Worker [open beta] @@ -117,14 +117,14 @@ describe("wrangler", () => { wrangler login 🔓 Login to Cloudflare wrangler logout 🚪 Logout from Cloudflare - wrangler whoami 🕵️ Retrieve your user information and test your authentication configuration + wrangler whoami 🕵️ Retrieve your user information GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose" `); @@ -171,11 +171,11 @@ describe("wrangler", () => { wrangler secret bulk [json] Bulk upload secrets for a Worker GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -193,11 +193,11 @@ describe("wrangler", () => { wrangler kv namespace delete Delete a given namespace. GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -216,11 +216,11 @@ describe("wrangler", () => { wrangler kv key delete Remove a single key value pair from the given namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -237,11 +237,11 @@ describe("wrangler", () => { wrangler kv bulk delete Delete multiple key-value pairs from a namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -258,11 +258,11 @@ describe("wrangler", () => { wrangler r2 bucket Manage R2 buckets GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/kv.test.ts b/packages/wrangler/src/__tests__/kv.test.ts index 4b6c6bea2a8b..a61abbd207a3 100644 --- a/packages/wrangler/src/__tests__/kv.test.ts +++ b/packages/wrangler/src/__tests__/kv.test.ts @@ -45,11 +45,11 @@ describe("wrangler", () => { wrangler kv bulk Interact with multiple Workers KV key-value pairs at once GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -90,11 +90,11 @@ describe("wrangler", () => { namespace The name of the new namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --preview Interact with a preview namespace [boolean]" @@ -122,11 +122,11 @@ describe("wrangler", () => { namespace The name of the new namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --preview Interact with a preview namespace [boolean]" @@ -584,11 +584,11 @@ describe("wrangler", () => { value The value to write [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The binding of the namespace to write to [string] @@ -626,11 +626,11 @@ describe("wrangler", () => { value The value to write [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The binding of the namespace to write to [string] @@ -668,11 +668,11 @@ describe("wrangler", () => { value The value to write [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The binding of the namespace to write to [string] @@ -710,11 +710,11 @@ describe("wrangler", () => { value The value to write [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The binding of the namespace to write to [string] @@ -752,11 +752,11 @@ describe("wrangler", () => { value The value to write [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The binding of the namespace to write to [string] @@ -1122,11 +1122,11 @@ describe("wrangler", () => { key The key value to get. [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The name of the namespace to get from [string] @@ -1159,11 +1159,11 @@ describe("wrangler", () => { key The key value to get. [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The name of the namespace to get from [string] @@ -1197,11 +1197,11 @@ describe("wrangler", () => { key The key value to get. [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --binding The name of the namespace to get from [string] @@ -1731,11 +1731,11 @@ describe("wrangler", () => { wrangler kv:namespace delete Delete a given namespace. GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); test("kv:key", async () => { @@ -1752,11 +1752,11 @@ describe("wrangler", () => { wrangler kv:key delete Remove a single key value pair from the given namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); test("kv:bulk", async () => { @@ -1771,11 +1771,11 @@ describe("wrangler", () => { wrangler kv:bulk delete Delete multiple key-value pairs from a namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/mtls-certificates.test.ts b/packages/wrangler/src/__tests__/mtls-certificates.test.ts index 0ad2e3390a3c..ef9973cdbc45 100644 --- a/packages/wrangler/src/__tests__/mtls-certificates.test.ts +++ b/packages/wrangler/src/__tests__/mtls-certificates.test.ts @@ -365,11 +365,11 @@ describe("wrangler", () => { wrangler mtls-certificate delete Delete an mTLS certificate GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/pages/deploy.test.ts b/packages/wrangler/src/__tests__/pages/deploy.test.ts index 421b74aec37d..4fae4aa058f4 100644 --- a/packages/wrangler/src/__tests__/pages/deploy.test.ts +++ b/packages/wrangler/src/__tests__/pages/deploy.test.ts @@ -63,8 +63,8 @@ describe("pages deploy", () => { directory The directory of static files to upload [string] GLOBAL FLAGS - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --project-name The name of the project you want to deploy to [string] diff --git a/packages/wrangler/src/__tests__/pages/pages.test.ts b/packages/wrangler/src/__tests__/pages/pages.test.ts index 24a455008b41..f377dad14ffb 100644 --- a/packages/wrangler/src/__tests__/pages/pages.test.ts +++ b/packages/wrangler/src/__tests__/pages/pages.test.ts @@ -31,8 +31,8 @@ describe("pages", () => { wrangler pages download Download settings from your project GLOBAL FLAGS - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); diff --git a/packages/wrangler/src/__tests__/pubsub.test.ts b/packages/wrangler/src/__tests__/pubsub.test.ts index cd1ebc1f1412..76f129c8aa5a 100644 --- a/packages/wrangler/src/__tests__/pubsub.test.ts +++ b/packages/wrangler/src/__tests__/pubsub.test.ts @@ -35,11 +35,11 @@ describe("wrangler", () => { wrangler pubsub broker Interact with your Pub/Sub Brokers GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] 👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/", "warn": "", @@ -68,11 +68,11 @@ describe("wrangler", () => { wrangler pubsub namespace describe Describe a Pub/Sub Namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] 👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/", "warn": "", @@ -196,11 +196,11 @@ describe("wrangler", () => { wrangler pubsub broker public-keys Show the public keys used for verifying on-publish hooks and credentials for a Broker. GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] 👷🏽 'wrangler pubsub ...' commands are currently in private beta. If your account isn't authorized, commands will fail. Visit the Pub/Sub docs for more info: https://developers.cloudflare.com/pub-sub/", "warn": "", diff --git a/packages/wrangler/src/__tests__/queues.test.ts b/packages/wrangler/src/__tests__/queues.test.ts index 27fa62c73207..484b81c38154 100644 --- a/packages/wrangler/src/__tests__/queues.test.ts +++ b/packages/wrangler/src/__tests__/queues.test.ts @@ -32,11 +32,11 @@ describe("wrangler", () => { wrangler queues consumer Configure Queue consumers GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -106,11 +106,11 @@ describe("wrangler", () => { List Queues GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --page Page number for pagination [number]" @@ -243,11 +243,11 @@ describe("wrangler", () => { name The name of the queue [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --delivery-delay-secs How long a published message should be delayed for, in seconds. Must be a positive integer [number]" @@ -364,11 +364,11 @@ describe("wrangler", () => { name The name of the queue [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -433,11 +433,11 @@ describe("wrangler", () => { wrangler queues consumer worker Configure Queue Worker Consumers GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -481,11 +481,11 @@ describe("wrangler", () => { script-name Name of the consumer script [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --batch-size Maximum number of messages per batch [number] @@ -803,11 +803,11 @@ describe("wrangler", () => { script-name Name of the consumer script [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -1191,11 +1191,11 @@ describe("wrangler", () => { wrangler queues consumer http remove Remove a Queue HTTP Pull Consumer GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -1238,11 +1238,11 @@ describe("wrangler", () => { queue-name Name of the queue for the consumer [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --batch-size Maximum number of messages per batch [number] @@ -1369,11 +1369,11 @@ describe("wrangler", () => { queue-name Name of the queue for the consumer [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); diff --git a/packages/wrangler/src/__tests__/r2.test.ts b/packages/wrangler/src/__tests__/r2.test.ts index 55c7d7c15202..cd7552eecd79 100644 --- a/packages/wrangler/src/__tests__/r2.test.ts +++ b/packages/wrangler/src/__tests__/r2.test.ts @@ -51,11 +51,11 @@ describe("r2", () => { wrangler r2 bucket notification Manage event notifications for an R2 bucket GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -115,11 +115,11 @@ describe("r2", () => { name The name of the new bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the new bucket will be created [string] @@ -148,11 +148,11 @@ describe("r2", () => { name The name of the new bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the new bucket will be created [string] @@ -252,11 +252,11 @@ describe("r2", () => { wrangler r2 bucket update storage-class Update the default storage class of an existing R2 bucket GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); expect(std.err).toMatchInlineSnapshot(` "X [ERROR] Unknown argument: foo @@ -282,11 +282,11 @@ describe("r2", () => { name The name of the existing bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction of the bucket to be updated [string] @@ -348,11 +348,11 @@ describe("r2", () => { name The name of the bucket to delete [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the bucket exists [string]" @@ -380,11 +380,11 @@ describe("r2", () => { name The name of the bucket to delete [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the bucket exists [string]" @@ -448,11 +448,11 @@ describe("r2", () => { wrangler r2 bucket sippy get Check the status of Sippy on an R2 bucket GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -540,11 +540,11 @@ describe("r2", () => { name The name of the bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the bucket exists [string] @@ -584,11 +584,11 @@ describe("r2", () => { name The name of the bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the bucket exists [string]" @@ -636,11 +636,11 @@ describe("r2", () => { name The name of the bucket [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS -J, --jurisdiction The jurisdiction where the bucket exists [string]" @@ -762,11 +762,11 @@ describe("r2", () => { bucket The name of the bucket for which notifications will be emitted [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); @@ -868,11 +868,11 @@ describe("r2", () => { bucket The name of the bucket for which notifications will be emitted [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --event-types, --event-type Specify the kinds of object events to emit notifications for. ex. '--event-types object-create object-delete' [array] [required] [choices: \\"object-create\\", \\"object-delete\\"] @@ -960,11 +960,11 @@ describe("r2", () => { bucket The name of the bucket for which notifications will be emitted [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --queue The name of the queue that is configured to receive notifications. ex '--queue my-queue' [string] [required]" diff --git a/packages/wrangler/src/__tests__/secret.test.ts b/packages/wrangler/src/__tests__/secret.test.ts index 64ad3af235eb..e4d46bc50e56 100644 --- a/packages/wrangler/src/__tests__/secret.test.ts +++ b/packages/wrangler/src/__tests__/secret.test.ts @@ -905,11 +905,11 @@ describe("wrangler secret", () => { json The JSON file of key-value pairs to upload, in form {\\"key\\": value, ...} [string] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --name Name of the Worker [string]" diff --git a/packages/wrangler/src/__tests__/vectorize/vectorize.test.ts b/packages/wrangler/src/__tests__/vectorize/vectorize.test.ts index efc5957d4808..8ddca6a59fcf 100644 --- a/packages/wrangler/src/__tests__/vectorize/vectorize.test.ts +++ b/packages/wrangler/src/__tests__/vectorize/vectorize.test.ts @@ -29,11 +29,11 @@ describe("vectorize help", () => { wrangler vectorize insert Insert vectors into a Vectorize index GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] -------------------- 📣 Vectorize is currently in open beta @@ -68,11 +68,11 @@ describe("vectorize help", () => { wrangler vectorize insert Insert vectors into a Vectorize index GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] -------------------- 📣 Vectorize is currently in open beta @@ -103,11 +103,11 @@ describe("vectorize help", () => { name The name of the Vectorize index. [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] OPTIONS --json return output as clean JSON [boolean] [default: false] diff --git a/packages/wrangler/src/__tests__/versions/versions.help.test.ts b/packages/wrangler/src/__tests__/versions/versions.help.test.ts index c39ee773bfbe..f24ce8f9a807 100644 --- a/packages/wrangler/src/__tests__/versions/versions.help.test.ts +++ b/packages/wrangler/src/__tests__/versions/versions.help.test.ts @@ -14,10 +14,10 @@ describe("versions --help", () => { "wrangler COMMANDS - wrangler docs [command] 📚 Open the wrangler commands documentation in your browser + wrangler docs [command] 📚 Open Wrangler's command documentation in your browser - wrangler init [name] 📥 Initialize a basic Worker application - wrangler dev [script] 👂 Start a local server for developing a Worker + wrangler init [name] 📥 Initialize a basic Worker + wrangler dev [script] 👂 Start a local server for developing your Worker wrangler deploy [script] 🆙 Deploy a Worker to Cloudflare [aliases: publish] wrangler deployments 🚢 List and view the current and past deployments for your Worker [open beta] wrangler rollback [deployment-id] 🔙 Rollback a deployment for a Worker [open beta] @@ -40,14 +40,14 @@ describe("versions --help", () => { wrangler login 🔓 Login to Cloudflare wrangler logout 🚪 Logout from Cloudflare - wrangler whoami 🕵️ Retrieve your user information and test your authentication configuration + wrangler whoami 🕵️ Retrieve your user information GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean] + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean] Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose" `); @@ -70,11 +70,11 @@ describe("versions --help", () => { wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [beta] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); @@ -108,11 +108,11 @@ describe("versions subhelp", () => { wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [beta] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -134,11 +134,11 @@ describe("versions subhelp", () => { wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [beta] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -160,11 +160,11 @@ describe("versions subhelp", () => { wrangler versions deploy [version-specs..] Safely roll out new Versions of your Worker by splitting traffic between multiple Versions [beta] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); }); diff --git a/packages/wrangler/src/__tests__/worker-namespace.test.ts b/packages/wrangler/src/__tests__/worker-namespace.test.ts index 89b71c9449c1..02cecdb269cd 100644 --- a/packages/wrangler/src/__tests__/worker-namespace.test.ts +++ b/packages/wrangler/src/__tests__/worker-namespace.test.ts @@ -42,11 +42,11 @@ describe("dispatch-namespace", () => { wrangler dispatch-namespace rename Rename a dispatch namespace GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]", + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]", "warn": "", } `); @@ -95,11 +95,11 @@ describe("dispatch-namespace", () => { name Name of the dispatch namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -146,11 +146,11 @@ describe("dispatch-namespace", () => { name Name of the dispatch namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -206,11 +206,11 @@ describe("dispatch-namespace", () => { name Name of the dispatch namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); @@ -317,11 +317,11 @@ describe("dispatch-namespace", () => { new-name New name of the dispatch namespace [string] [required] GLOBAL FLAGS - -j, --experimental-json-config ⚑ Experimental: support wrangler.json [boolean] - -c, --config ⚑ Path to .toml configuration file [string] - -e, --env ⚑ Environment to use for operations and .env files [string] - -h, --help ⚑ Show help [boolean] - -v, --version ⚑ Show version number [boolean]" + -j, --experimental-json-config Experimental: support wrangler.json [boolean] + -c, --config Path to .toml configuration file [string] + -e, --env Environment to use for operations and .env files [string] + -h, --help Show help [boolean] + -v, --version Show version number [boolean]" `); }); diff --git a/packages/wrangler/src/index.ts b/packages/wrangler/src/index.ts index a54e9cb9cc7f..efe893d71611 100644 --- a/packages/wrangler/src/index.ts +++ b/packages/wrangler/src/index.ts @@ -66,7 +66,6 @@ import { logout, validateScopeKeys, } from "./user"; -import { embolden, highlight } from "./utils/stdout-styling"; import { vectorize } from "./vectorize/index"; import registerVersionsSubcommands from "./versions"; import registerVersionsDeploymentsSubcommands from "./versions/deployments"; @@ -215,29 +214,29 @@ export function createCLIParser(argv: string[]) { // the `wrangler` variable .version(false) .option("v", { - describe: "⚑ Show version number", + describe: "Show version number", alias: "version", type: "boolean", }) .option("config", { alias: "c", - describe: "⚑ Path to .toml configuration file", + describe: "Path to .toml configuration file", type: "string", requiresArg: true, }) .option("env", { alias: "e", - describe: "⚑ Environment to use for operations and .env files", + describe: "Environment to use for operations and .env files", type: "string", requiresArg: true, }) .option("experimental-json-config", { alias: "j", - describe: `⚑ Experimental: support wrangler.json`, + describe: `Experimental: support wrangler.json`, type: "boolean", }) .option("experimental-versions", { - describe: `⚑ Experimental: support Worker Versions`, + describe: `Experimental: support Worker Versions`, type: "boolean", hidden: true, alias: ["x-versions", "experimental-gradual-rollouts"], @@ -258,22 +257,21 @@ export function createCLIParser(argv: string[]) { return true; }) .epilogue( - `Please report any issues to ${highlight( - "https://github.com/cloudflare/workers-sdk/issues/new/choose", - "#3B818D" + `Please report any issues to ${chalk.hex("#3B818D")( + "https://github.com/cloudflare/workers-sdk/issues/new/choose" )}` ); wrangler.updateStrings({ - "Commands:": `${embolden("COMMANDS")}`, - "Options:": `${embolden("OPTIONS")}`, - "Positionals:": `${embolden("POSITIONALS")}`, + "Commands:": `${chalk.bold("COMMANDS")}`, + "Options:": `${chalk.bold("OPTIONS")}`, + "Positionals:": `${chalk.bold("POSITIONALS")}`, }); wrangler.group( ["experimental-json-config", "config", "env", "help", "version"], - `${embolden("GLOBAL FLAGS")}` + `${chalk.bold("GLOBAL FLAGS")}` ); - wrangler.help("help", "⚑ Show help").alias("h", "help"); + wrangler.help("help", "Show help").alias("h", "help"); // Default help command that supports the subcommands const subHelp: SubHelp = { @@ -329,7 +327,7 @@ export function createCLIParser(argv: string[]) { // docs wrangler.command( "docs [command]", - "📚 Open the wrangler commands documentation in your browser\n", + "📚 Open Wrangler's command documentation in your browser\n", docsOptions, docsHandler ); @@ -338,7 +336,7 @@ export function createCLIParser(argv: string[]) { // init wrangler.command( "init [name]", - "📥 Initialize a basic Worker application", + "📥 Initialize a basic Worker", initOptions, initHandler ); @@ -346,7 +344,7 @@ export function createCLIParser(argv: string[]) { // dev wrangler.command( "dev [script]", - "👂 Start a local server for developing a Worker", + "👂 Start a local server for developing your Worker", devOptions, devHandler ); @@ -362,7 +360,7 @@ export function createCLIParser(argv: string[]) { // [OPEN BETA] deployments const deploymentsWarning = "🚧`wrangler deployments` is a beta command. Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose"; - const deploymentsDescription = `🚢 List and view the current and past deployments for your Worker ${highlight("[open beta]", betaCmdColor)}`; + const deploymentsDescription = `🚢 List and view the current and past deployments for your Worker ${chalk.hex(betaCmdColor)("[open beta]")}`; if (experimentalGradualRollouts) { wrangler @@ -419,7 +417,7 @@ export function createCLIParser(argv: string[]) { // [OPEN BETA] rollback const rollbackWarning = "🚧`wrangler rollback` is a beta command. Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose"; - const rollbackDescription = `🔙 Rollback a deployment for a Worker ${highlight("[open beta]", betaCmdColor)}`; + const rollbackDescription = `🔙 Rollback a deployment for a Worker ${chalk.hex(betaCmdColor)("[open beta]")}`; if (experimentalGradualRollouts) { registerVersionsRollbackCommand( @@ -470,10 +468,7 @@ export function createCLIParser(argv: string[]) { if (experimentalGradualRollouts) { wrangler.command( "versions", - `🫧 List, view, upload and deploy Versions of your Worker to Cloudflare ${highlight( - "[open beta]", - betaCmdColor - )}`, + `🫧 List, view, upload and deploy Versions of your Worker to Cloudflare ${chalk.hex(betaCmdColor)("[open beta]")}`, (yargs) => { return registerVersionsSubcommands(yargs.command(subHelp)); } @@ -484,10 +479,7 @@ export function createCLIParser(argv: string[]) { if (experimentalGradualRollouts) { wrangler.command( "triggers", - `🎯 Updates the triggers of your current deployment ${highlight( - "[open beta]", - betaCmdColor - )}`, + `🎯 Updates the triggers of your current deployment ${chalk.hex(betaCmdColor)("[open beta]")}`, (yargs) => { return registerTriggersSubcommands(yargs.command(subHelp)); } @@ -551,7 +543,7 @@ export function createCLIParser(argv: string[]) { // [OPEN BETA] vectorize wrangler.command( "vectorize", - `🧮 Manage Vectorize indexes ${highlight("[open beta]", betaCmdColor)}`, + `🧮 Manage Vectorize indexes ${chalk.hex(betaCmdColor)("[open beta]")}`, (vectorYargs) => { return vectorize(vectorYargs.command(subHelp)); } @@ -592,7 +584,7 @@ export function createCLIParser(argv: string[]) { // [PRIVATE BETA] pubsub wrangler.command( "pubsub", - `📮 Manage Pub/Sub brokers ${highlight("[private beta]", betaCmdColor)}`, + `📮 Manage Pub/Sub brokers ${chalk.hex(betaCmdColor)("[private beta]")}`, (pubsubYargs) => { return pubSubCommands(pubsubYargs, subHelp); } @@ -689,7 +681,7 @@ export function createCLIParser(argv: string[]) { // whoami wrangler.command( "whoami", - "🕵️ Retrieve your user information and test your authentication configuration", + "🕵️ Retrieve your user information", () => {}, async (args) => { await printWranglerBanner(); diff --git a/packages/wrangler/src/utils/stdout-styling.ts b/packages/wrangler/src/utils/stdout-styling.ts deleted file mode 100644 index 3b45789209e8..000000000000 --- a/packages/wrangler/src/utils/stdout-styling.ts +++ /dev/null @@ -1,17 +0,0 @@ -import chalk from "chalk"; -import supportsColor from "supports-color"; - -/** - * Terminal styling util function that sets text color. If terminal does - * not support colors, it will return the unchanged text instead. - */ -export function highlight(text: string, colorHex: string): string { - return supportsColor.stdout ? chalk.hex(colorHex)(text) : text; -} - -/** - * Terminal styling util function that makes text bold. - */ -export function embolden(text: string): string { - return chalk.bold(text); -}