Open vorph1 opened 5 years ago
Hi! I wanted a more readable output for longer messages so I went ahead and implemented that. Here's a sample output and corresponding code
signale.config({ splitLongLines: true, //split to 80 chars width splitLinebreaks: true }); signale.complete({prefix: '[task]', message: 'Fix issue #59 '.repeat(20), suffix: '(@klauscfhq)'}); signale.config({ splitLongLines: 120, // split to given width splitLinebreaks: true }); signale.complete({prefix: '[task]', message: 'Fix issue #59 '.repeat(20), suffix: '(@klauscfhq)'}); signale.config({ splitLongLines: 'auto', // split to terminal width splitLinebreaks: true }); signale.complete({prefix: '[task]', message: 'Fix issue #59 '.repeat(20), suffix: '(@klauscfhq)'}); signale.config({ splitLongLines: 'auto', // split to terminal width splitLinebreaks: true }); signale.complete({prefix: '[task]', message: "Fix issue #59\n".repeat(20), suffix: '(@klauscfhq)'});
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information No Duplication information
Hi! I wanted a more readable output for longer messages so I went ahead and implemented that. Here's a sample output and corresponding code