mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
- Improved "version" command.
This commit is contained in:
parent
2e32457032
commit
21c33f7030
1 changed files with 5 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Date.h"
|
#include "Date.h"
|
||||||
#include "Table.h"
|
#include "Table.h"
|
||||||
|
#include "color.h"
|
||||||
#include "TDB.h"
|
#include "TDB.h"
|
||||||
#include "T.h"
|
#include "T.h"
|
||||||
#include "task.h"
|
#include "task.h"
|
||||||
|
@ -306,6 +307,8 @@ void handleVersion (Config& conf)
|
||||||
table.setColumnUnderline (0);
|
table.setColumnUnderline (0);
|
||||||
table.setColumnUnderline (1);
|
table.setColumnUnderline (1);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
table.setTableDashedUnderline ();
|
||||||
|
|
||||||
table.setColumnWidth (0, Table::minimum);
|
table.setColumnWidth (0, Table::minimum);
|
||||||
table.setColumnWidth (1, Table::flexible);
|
table.setColumnWidth (1, Table::flexible);
|
||||||
|
@ -328,9 +331,9 @@ void handleVersion (Config& conf)
|
||||||
|
|
||||||
std::cout << "Copyright (C) 2006 - 2008, P. Beckingham."
|
std::cout << "Copyright (C) 2006 - 2008, P. Beckingham."
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< PACKAGE
|
<< (conf.get ("color", true) ? Text::colorize (Text::bold, Text::nocolor, PACKAGE) : PACKAGE)
|
||||||
<< " "
|
<< " "
|
||||||
<< VERSION
|
<< (conf.get ("color", true) ? Text::colorize (Text::bold, Text::nocolor, VERSION) : VERSION)
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< disclaimer.render ()
|
<< disclaimer.render ()
|
||||||
<< std::endl
|
<< std::endl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue