mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdReports: Migrated from ViewText to Table
This commit is contained in:
parent
cd2fe40a59
commit
a4c2ec0440
1 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <ViewText.h>
|
#include <Table.h>
|
||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
|
@ -86,10 +86,10 @@ int CmdReports::execute (std::string& output)
|
||||||
|
|
||||||
// Compose the output.
|
// Compose the output.
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
ViewText view;
|
Table view;
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
view.add (Column::factory ("string", STRING_CMD_REPORTS_REPORT));
|
view.add (STRING_CMD_REPORTS_REPORT);
|
||||||
view.add (Column::factory ("string", STRING_CMD_REPORTS_DESC));
|
view.add (STRING_CMD_REPORTS_DESC);
|
||||||
|
|
||||||
if (context.color ())
|
if (context.color ())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue