mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CLI: A2::dump color
This commit is contained in:
parent
af5ee87773
commit
2cfa146241
1 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,9 @@ const std::string A2::dump () const
|
||||||
std::string tags;
|
std::string tags;
|
||||||
for (const auto& tag : _tags)
|
for (const auto& tag : _tags)
|
||||||
{
|
{
|
||||||
tags += "\033[32m" + tag + "\033[0m ";
|
if (tag == "BINARY") tags += "\033[1;37;44m" + tag + "\033[0m ";
|
||||||
|
else if (tag == "CMD") tags += "\033[1;37;46m" + tag + "\033[0m ";
|
||||||
|
else tags += "\033[32m" + tag + "\033[0m ";
|
||||||
}
|
}
|
||||||
|
|
||||||
return output + " " + atts + tags;
|
return output + " " + atts + tags;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue