Skip to content

Commit

Permalink
fix(cli): hide break lin under verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 7, 2023
1 parent 7dae64d commit 5659d13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/commands/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ module.exports = async ({ url, browserless, opts }) => {
screenshot,
termImg(Buffer.from(screenshot), {
width: '50%',
fallback: () => `\n${yellow(' tip:')} ${gray('use iTerm >=3 to see the image here!')}`
fallback: () =>
`${opts.verbose ? '' : '\n'}${yellow(' tip:')} ${gray(
'use iTerm >=3 to see the image here!'
)}`
})
]
}

0 comments on commit 5659d13

Please sign in to comment.