mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdVersion: Color only used for tty
This commit is contained in:
parent
ec779bb0e8
commit
a6f8d93fe1
1 changed files with 4 additions and 4 deletions
|
@ -72,12 +72,12 @@ int CmdVersion::execute (std::string& output)
|
|||
link.add (Column::factory ("string", ""));
|
||||
link.set (link.addRow (), 0, STRING_CMD_VERSION_DOCS);
|
||||
|
||||
Color bold ("bold");
|
||||
Color bold;
|
||||
if (context.color ())
|
||||
bold = Color ("bold");
|
||||
|
||||
out << "\n"
|
||||
<< format (STRING_CMD_VERSION_BUILT,
|
||||
(context.color () ? bold.colorize (PACKAGE) : PACKAGE),
|
||||
(context.color () ? bold.colorize (VERSION) : VERSION))
|
||||
<< format (STRING_CMD_VERSION_BUILT, bold.colorize (PACKAGE), bold.colorize (VERSION))
|
||||
|
||||
#if defined (DARWIN)
|
||||
<< "darwin"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue