- Added 'status' as a reportable column (thanks to Peter De Poorter
  and Bryce Harrington).
- Closed features pertaining to the 'task ids ... | task ...' (thanks
  to Bryce Harrington and Eric Fluger).
This commit is contained in:
Paul Beckingham
2011-04-18 01:41:08 -04:00
parent 60a5d271f4
commit f049ab3432
5 changed files with 26 additions and 7 deletions

View File

@@ -530,6 +530,19 @@ int handleCustomReport (const std::string& report, std::string& outs)
}
}
else if (*col == "status")
{
table.addColumn (columnLabels[*col] != "" ? columnLabels[*col] : "Status");
table.setColumnWidth (columnCount, Table::minimum);
table.setColumnJustification (columnCount, Table::left);
int row = 0;
foreach (task, tasks)
{
table.addCell (row++, columnCount, task->statusToText (task->getStatus ()));
}
}
// Common to all columns.
// Add underline.
if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) &&
@@ -698,7 +711,8 @@ void validReportColumns (const std::vector <std::string>& columns)
*it != "description" &&
*it != "wait" &&
*it != "depends" &&
*it != "urgency")
*it != "urgency" &&
*it != "status")
bad.push_back (*it);
if (bad.size ())