mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
CmdStats: Migrated from ViewText to Table
This commit is contained in:
parent
2f590bcebc
commit
b5922fbfd1
1 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ViewText.h>
|
#include <Table.h>
|
||||||
#include <Datetime.h>
|
#include <Datetime.h>
|
||||||
#include <Duration.h>
|
#include <Duration.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
|
@ -159,11 +159,11 @@ int CmdStats::execute (std::string& output)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a table for output.
|
// Create a table for output.
|
||||||
ViewText view;
|
Table view;
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
view.intraPadding (2);
|
view.intraPadding (2);
|
||||||
view.add (Column::factory ("string", STRING_CMD_STATS_CATEGORY));
|
view.add (STRING_CMD_STATS_CATEGORY);
|
||||||
view.add (Column::factory ("string", STRING_CMD_STATS_DATA));
|
view.add (STRING_CMD_STATS_DATA);
|
||||||
|
|
||||||
if (context.color ())
|
if (context.color ())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue