CmdShow: Migrated from ViewText to Table
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user