CmdVersion: Color only used for tty
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user