Skip to content

Commit

Permalink
remove beta tag from r2 event notification wrangler commands (#6809)
Browse files Browse the repository at this point in the history
  • Loading branch information
smellercf authored Sep 24, 2024
1 parent 4e33f2c commit 28cb0d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-years-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: Remove Beta tag from r2 event notification wrangler command descriptions
10 changes: 5 additions & 5 deletions packages/wrangler/src/__tests__/r2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe("r2", () => {
wrangler r2 bucket list List R2 buckets
wrangler r2 bucket delete <name> 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]
Expand Down Expand Up @@ -130,7 +130,7 @@ describe("r2", () => {
wrangler r2 bucket list List R2 buckets
wrangler r2 bucket delete <name> 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]
Expand Down Expand Up @@ -902,7 +902,7 @@ describe("r2", () => {
"
wrangler r2 bucket notification list <bucket>
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]
Expand Down Expand Up @@ -1008,7 +1008,7 @@ describe("r2", () => {
"
wrangler r2 bucket notification create <bucket>
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]
Expand Down Expand Up @@ -1165,7 +1165,7 @@ describe("r2", () => {
"
wrangler r2 bucket notification delete <bucket>
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]
Expand Down
15 changes: 5 additions & 10 deletions packages/wrangler/src/r2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 <bucket>", "get <bucket>"],
`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 <bucket>",
`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 <bucket>",
`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
);
Expand Down

0 comments on commit 28cb0d7

Please sign in to comment.