CmdColor: Migrated from ViewText to Table

This commit is contained in:
Paul Beckingham
2016-12-17 13:40:46 -05:00
parent b5922fbfd1
commit ecdb96f7e1

View File

@@ -27,7 +27,7 @@
#include <cmake.h> #include <cmake.h>
#include <CmdColor.h> #include <CmdColor.h>
#include <sstream> #include <sstream>
#include <ViewText.h> #include <Table.h>
#include <Context.h> #include <Context.h>
#include <main.h> #include <main.h>
#include <Color.h> #include <Color.h>
@@ -74,10 +74,10 @@ int CmdColor::execute (std::string& output)
{ {
out << '\n' << STRING_CMD_COLOR_HERE << '\n'; out << '\n' << STRING_CMD_COLOR_HERE << '\n';
ViewText view; Table view;
view.width (context.getWidth ()); view.width (context.getWidth ());
view.add (Column::factory ("string", STRING_CMD_COLOR_COLOR)); view.add (STRING_CMD_COLOR_COLOR);
view.add (Column::factory ("string", STRING_CMD_COLOR_DEFINITION)); view.add (STRING_CMD_COLOR_DEFINITION);
for (auto& item : context.config) for (auto& item : context.config)
{ {