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

feat(internal): add (*ctxerr.Error).ErrorWithoutColors method #231

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

maxatome
Copy link
Owner

It is the same as (*ctxerr.Error).Error, but the string it returns does not contain any ANSI color escape sequences.

@coveralls
Copy link

coveralls commented Nov 16, 2022

Coverage Status

Coverage increased (+0.0004%) to 99.862% when pulling 3a8b686 on uncolorization into 57368f8 on master.

It is the same as (*ctxerr.Error).Error, but the string it returns
does not contain any ANSI color escape sequences.

By the way:
- util.IndentStringIn becomes util.IndentColorizeStringIn;
- add new util.IndentStringIn without colorization;
- util.IndentColorizeStringIn now also enables colorization at
  the beginning and end of string.

Signed-off-by: Maxime Soulé <[email protected]>
@maxatome maxatome merged commit a3fcff2 into master Nov 17, 2022
@maxatome maxatome deleted the uncolorization branch November 17, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants