[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

only print one newline for empty message

Oskar Löfgren (Feb 25, 2023, 12:56 AM +0100) 7413febc a9f6f02f

+1 -1
+1 -1
packages/prompts/src/index.ts
··· 419 419 }; 420 420 export const log = { 421 421 message: (message = '', { symbol = color.gray(S_BAR) }: LogMessageOptions = {}) => { 422 - process.stdout.write(`${color.gray(S_BAR)}\n${symbol} ${message}\n`); 422 + process.stdout.write(`${color.gray(S_BAR)}\n` + message ? `${symbol} ${message}\n` : ''); 423 423 }, 424 424 info: (message: string) => { 425 425 log.message(message, { symbol: color.blue(S_INFO) });