Skip to content

Commit

Permalink
chore: move printWranglerBanner for secret delete into handler (#7020)
Browse files Browse the repository at this point in the history
* chore: move printWranglerBanner for secret delete into handler

* Create giant-bottles-trade.md
  • Loading branch information
KianNH authored Nov 4, 2024
1 parent 49ef163 commit e1d2fd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-bottles-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

chore: move printWranglerBanner for secret delete into handler
2 changes: 1 addition & 1 deletion packages/wrangler/src/secret/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ export const secret = (secretYargs: CommonYargsArgv) => {
"delete <key>",
"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",
Expand All @@ -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(
Expand Down

0 comments on commit e1d2fd6

Please sign in to comment.