mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdInfo: Added Table::forceColor
This commit is contained in:
parent
2c07858bd3
commit
9be1494357
1 changed files with 6 additions and 0 deletions
|
@ -103,6 +103,8 @@ int CmdInfo::execute (std::string& output)
|
|||
view.width (context.getWidth ());
|
||||
if (context.config.getBoolean ("obfuscate"))
|
||||
view.obfuscate ();
|
||||
if (context.config.getBoolean ("color"))
|
||||
view.forceColor ();
|
||||
view.add (STRING_COLUMN_LABEL_NAME);
|
||||
view.add (STRING_COLUMN_LABEL_VALUE);
|
||||
|
||||
|
@ -424,6 +426,8 @@ int CmdInfo::execute (std::string& output)
|
|||
|
||||
if (context.config.getBoolean ("obfuscate"))
|
||||
urgencyDetails.obfuscate ();
|
||||
if (context.config.getBoolean ("color"))
|
||||
view.forceColor ();
|
||||
|
||||
urgencyDetails.width (context.getWidth ());
|
||||
urgencyDetails.add (""); // Attribute
|
||||
|
@ -526,6 +530,8 @@ int CmdInfo::execute (std::string& output)
|
|||
|
||||
if (context.config.getBoolean ("obfuscate"))
|
||||
journal.obfuscate ();
|
||||
if (context.config.getBoolean ("color"))
|
||||
journal.forceColor ();
|
||||
|
||||
journal.width (context.getWidth ());
|
||||
journal.add (STRING_COLUMN_LABEL_DATE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue