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(