CmdUDAs: Color only used for tty
This commit is contained in:
@@ -92,8 +92,11 @@ int CmdUDAs::execute (std::string& output)
|
|||||||
view.add (Column::factory ("string", STRING_COLUMN_LABEL_DEFAULT));
|
view.add (Column::factory ("string", STRING_COLUMN_LABEL_DEFAULT));
|
||||||
view.add (Column::factory ("string", STRING_COLUMN_LABEL_UDACOUNT));
|
view.add (Column::factory ("string", STRING_COLUMN_LABEL_UDACOUNT));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
view.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& uda : udas)
|
for (auto& uda : udas)
|
||||||
{
|
{
|
||||||
@@ -151,8 +154,11 @@ int CmdUDAs::execute (std::string& output)
|
|||||||
orphanView.add (Column::factory ("string", STRING_COLUMN_LABEL_ORPHAN));
|
orphanView.add (Column::factory ("string", STRING_COLUMN_LABEL_ORPHAN));
|
||||||
orphanView.add (Column::factory ("string", STRING_COLUMN_LABEL_UDACOUNT));
|
orphanView.add (Column::factory ("string", STRING_COLUMN_LABEL_UDACOUNT));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
orphanView.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
orphanView.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& o : orphans)
|
for (auto& o : orphans)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user