mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +02:00
CmdShow: Migrated from ViewText to Table
This commit is contained in:
parent
4bd8ff9834
commit
d40305f566
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <ViewText.h>
|
#include <Table.h>
|
||||||
|
|
||||||
extern Context context;
|
extern Context context;
|
||||||
|
|
||||||
|
@ -258,10 +258,10 @@ int CmdShow::execute (std::string& output)
|
||||||
default_values.push_back (i.first);
|
default_values.push_back (i.first);
|
||||||
|
|
||||||
// Create output view.
|
// Create output view.
|
||||||
ViewText view;
|
Table view;
|
||||||
view.width (width);
|
view.width (width);
|
||||||
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VAR));
|
view.add (STRING_CMD_SHOW_CONF_VAR);
|
||||||
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VALUE));
|
view.add (STRING_CMD_SHOW_CONF_VALUE);
|
||||||
|
|
||||||
Color error;
|
Color error;
|
||||||
Color warning;
|
Color warning;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue