Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split and align on linebreaks and too long lines #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vorph1
Copy link

@vorph1 vorph1 commented Jun 18, 2019

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)'});

1560872094

@klaudiosinani klaudiosinani added the enhancement New feature or request label Apr 7, 2022
@sonarcloud
Copy link

sonarcloud bot commented Sep 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants