diff --git a/.changeset/many-years-nail.md b/.changeset/many-years-nail.md new file mode 100644 index 000000000000..77252432fdf5 --- /dev/null +++ b/.changeset/many-years-nail.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +fix: Remove Beta tag from r2 event notification wrangler command descriptions diff --git a/packages/wrangler/src/__tests__/r2.test.ts b/packages/wrangler/src/__tests__/r2.test.ts index b255d418ecdb..08304e59dc64 100644 --- a/packages/wrangler/src/__tests__/r2.test.ts +++ b/packages/wrangler/src/__tests__/r2.test.ts @@ -96,7 +96,7 @@ describe("r2", () => { wrangler r2 bucket list List R2 buckets wrangler r2 bucket delete Delete an R2 bucket wrangler r2 bucket sippy Manage Sippy incremental migration on an R2 bucket - wrangler r2 bucket notification Manage event notification rules for an R2 bucket [open beta] + wrangler r2 bucket notification Manage event notification rules for an R2 bucket GLOBAL FLAGS -j, --experimental-json-config Experimental: support wrangler.json [boolean] @@ -130,7 +130,7 @@ describe("r2", () => { wrangler r2 bucket list List R2 buckets wrangler r2 bucket delete Delete an R2 bucket wrangler r2 bucket sippy Manage Sippy incremental migration on an R2 bucket - wrangler r2 bucket notification Manage event notification rules for an R2 bucket [open beta] + wrangler r2 bucket notification Manage event notification rules for an R2 bucket GLOBAL FLAGS -j, --experimental-json-config Experimental: support wrangler.json [boolean] @@ -902,7 +902,7 @@ describe("r2", () => { " wrangler r2 bucket notification list - List event notification rules for a bucket [open beta] + List event notification rules for a bucket POSITIONALS bucket The name of the R2 bucket to get event notification rules for [string] [required] @@ -1008,7 +1008,7 @@ describe("r2", () => { " wrangler r2 bucket notification create - Create an event notification rule for an R2 bucket [open beta] + Create an event notification rule for an R2 bucket POSITIONALS bucket The name of the R2 bucket to create an event notification rule for [string] [required] @@ -1165,7 +1165,7 @@ describe("r2", () => { " wrangler r2 bucket notification delete - Delete an event notification rule from an R2 bucket [open beta] + Delete an event notification rule from an R2 bucket POSITIONALS bucket The name of the R2 bucket to delete an event notification rule for [string] [required] diff --git a/packages/wrangler/src/r2/index.ts b/packages/wrangler/src/r2/index.ts index baed63258829..8f936339bfea 100644 --- a/packages/wrangler/src/r2/index.ts +++ b/packages/wrangler/src/r2/index.ts @@ -3,15 +3,10 @@ import * as fs from "node:fs"; import * as path from "node:path"; import * as stream from "node:stream"; import { ReadableStream } from "node:stream/web"; -import chalk from "chalk"; import prettyBytes from "pretty-bytes"; import { readConfig } from "../config"; import { FatalError, UserError } from "../errors"; -import { - betaCmdColor, - CommandLineArgsError, - printWranglerBanner, -} from "../index"; +import { CommandLineArgsError, printWranglerBanner } from "../index"; import { logger } from "../logger"; import * as metrics from "../metrics"; import { requireAuth } from "../user"; @@ -648,24 +643,24 @@ export function r2(r2Yargs: CommonYargsArgv, subHelp: SubHelp) { r2BucketYargs.command( "notification", - `Manage event notification rules for an R2 bucket ${chalk.hex(betaCmdColor)("[open beta]")}`, + "Manage event notification rules for an R2 bucket", (r2EvNotifyYargs) => { return r2EvNotifyYargs .command( ["list ", "get "], - `List event notification rules for a bucket ${chalk.hex(betaCmdColor)("[open beta]")}`, + "List event notification rules for a bucket", Notification.ListOptions, Notification.ListHandler ) .command( "create ", - `Create an event notification rule for an R2 bucket ${chalk.hex(betaCmdColor)("[open beta]")}`, + "Create an event notification rule for an R2 bucket", Notification.CreateOptions, Notification.CreateHandler ) .command( "delete ", - `Delete an event notification rule from an R2 bucket ${chalk.hex(betaCmdColor)("[open beta]")}`, + "Delete an event notification rule from an R2 bucket", Notification.DeleteOptions, Notification.DeleteHandler );