mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Enhancement
- Allow a separate color for error messages via the 'color.error' configuration variable.
This commit is contained in:
parent
eaae2d84da
commit
e1407437e0
21 changed files with 97 additions and 1 deletions
|
@ -356,6 +356,15 @@ std::string colorizeFootnote (const std::string& input)
|
|||
return input;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string colorizeError (const std::string& input)
|
||||
{
|
||||
if (gsColor["color.error"].nontrivial ())
|
||||
return gsColor["color.error"].colorize (input);
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string colorizeDebug (const std::string& input)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue