Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(internal): add (*ctxerr.Error).ErrorWithoutColors method
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é <btik-git@scoubidou.com>
- Loading branch information
Showing
7 changed files
with
199 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.