From e1d2fd668678dadcd46a1a9ca7da17e1627be807 Mon Sep 17 00:00:00 2001 From: Kian Date: Mon, 4 Nov 2024 18:41:44 +0000 Subject: [PATCH] chore: move printWranglerBanner for secret delete into handler (#7020) * chore: move printWranglerBanner for secret delete into handler * Create giant-bottles-trade.md --- .changeset/giant-bottles-trade.md | 5 +++++ packages/wrangler/src/secret/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/giant-bottles-trade.md diff --git a/.changeset/giant-bottles-trade.md b/.changeset/giant-bottles-trade.md new file mode 100644 index 000000000000..f156f5cbeb92 --- /dev/null +++ b/.changeset/giant-bottles-trade.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +chore: move printWranglerBanner for secret delete into handler diff --git a/packages/wrangler/src/secret/index.ts b/packages/wrangler/src/secret/index.ts index 1c3926cd9b89..3153d2d9ebbc 100644 --- a/packages/wrangler/src/secret/index.ts +++ b/packages/wrangler/src/secret/index.ts @@ -249,7 +249,6 @@ export const secret = (secretYargs: CommonYargsArgv) => { "delete ", "Delete a secret variable from a Worker", async (yargs) => { - await printWranglerBanner(); return yargs .positional("key", { describe: "The variable name to be accessible in the Worker", @@ -262,6 +261,7 @@ export const secret = (secretYargs: CommonYargsArgv) => { }); }, async (args) => { + await printWranglerBanner(); const config = readConfig(args.config, args); if (config.pages_build_output_dir) { throw new UserError(