CmdProjects: Color only used for tty
This commit is contained in:
@@ -110,8 +110,11 @@ int CmdProjects::execute (std::string& output)
|
||||
view.add (Column::factory ("string", STRING_COLUMN_LABEL_PROJECT));
|
||||
view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_TASKS));
|
||||
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
std::vector <std::string> processed;
|
||||
for (auto& project : unique)
|
||||
|
||||
Reference in New Issue
Block a user