mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdContext: Color only used for tty
This commit is contained in:
parent
30a2ab8ea8
commit
116e5adaf2
1 changed files with 5 additions and 2 deletions
|
@ -227,8 +227,11 @@ void CmdContext::listContexts (std::stringstream& out)
|
|||
view.add (Column::factory ("string", "Definition"));
|
||||
view.add (Column::factory ("string", "Active"));
|
||||
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
std::string activeContext = context.config.get ("context");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue