Skip to content

Commit e1d2fd6

Browse files
authored
chore: move printWranglerBanner for secret delete into handler (#7020)
* chore: move printWranglerBanner for secret delete into handler * Create giant-bottles-trade.md
1 parent 49ef163 commit e1d2fd6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/giant-bottles-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
chore: move printWranglerBanner for secret delete into handler

packages/wrangler/src/secret/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ export const secret = (secretYargs: CommonYargsArgv) => {
249249
"delete <key>",
250250
"Delete a secret variable from a Worker",
251251
async (yargs) => {
252-
await printWranglerBanner();
253252
return yargs
254253
.positional("key", {
255254
describe: "The variable name to be accessible in the Worker",
@@ -262,6 +261,7 @@ export const secret = (secretYargs: CommonYargsArgv) => {
262261
});
263262
},
264263
async (args) => {
264+
await printWranglerBanner();
265265
const config = readConfig(args.config, args);
266266
if (config.pages_build_output_dir) {
267267
throw new UserError(

0 commit comments

Comments
 (0)