mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Merge branch '1.8.0' of git@github.com:pbeckingham/task into 1.8.0
This commit is contained in:
commit
5cb009bc0a
1 changed files with 33 additions and 28 deletions
|
@ -336,8 +336,13 @@ std::string handleVersion ()
|
|||
"and lively discussion. New releases containing fixes and enhancements "
|
||||
"are made frequently.");
|
||||
|
||||
std::vector <std::string> all;
|
||||
context.config.all (all);
|
||||
|
||||
// Create a table for output.
|
||||
Table table;
|
||||
if (context.config.get ("longversion", true))
|
||||
{
|
||||
table.setTableWidth (width);
|
||||
table.setDateFormat (context.config.get ("dateformat", "m/d/Y"));
|
||||
table.addColumn ("Config variable");
|
||||
|
@ -357,8 +362,6 @@ std::string handleVersion ()
|
|||
table.setColumnJustification (1, Table::left);
|
||||
table.sortOn (0, Table::ascendingCharacter);
|
||||
|
||||
std::vector <std::string> all;
|
||||
context.config.all (all);
|
||||
foreach (i, all)
|
||||
{
|
||||
std::string value = context.config.get (*i);
|
||||
|
@ -369,6 +372,7 @@ std::string handleVersion ()
|
|||
table.addCell (row, 1, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
out << "Copyright (C) 2006 - 2009, P. Beckingham."
|
||||
<< std::endl
|
||||
|
@ -382,7 +386,7 @@ std::string handleVersion ()
|
|||
<< std::endl
|
||||
<< disclaimer.render ()
|
||||
<< std::endl
|
||||
<< table.render ()
|
||||
<< (context.config.get ("longversion", true) ? table.render () : "")
|
||||
<< link.render ()
|
||||
<< std::endl;
|
||||
|
||||
|
@ -397,6 +401,7 @@ std::string handleVersion ()
|
|||
"defaultwidth displayweeknumber due echo.command locale locking "
|
||||
"monthsperline nag next project shadow.command shadow.file shadow.notify "
|
||||
"weekstart editor import.synonym.id import.synonym.uuid "
|
||||
"longversion "
|
||||
#ifdef FEATURE_SHELL
|
||||
"shell.prompt "
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue