Skip to content

Commit

Permalink
fix: dont show run script banners in silent
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 24, 2024
1 parent 694dba9 commit 43e6194
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/utils/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ class Display {
return
}

// HACK: if it looks like the banner and we are silent do not print it.
// There's no other way to do this right now :(
// eslint-disable-next-line max-len
if (this.#silent && args.length === 1 && args[0].startsWith('\n> ') && args[0].endsWith('\n')) {
return
}

this.#writeOutput(level, meta, ...args)
})

Expand Down

0 comments on commit 43e6194

Please sign in to comment.