mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdColor: Migrated from ViewText to Table
This commit is contained in:
parent
8db15d143b
commit
ff6dcee84c
1 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <cmake.h>
|
||||
#include <CmdColor.h>
|
||||
#include <sstream>
|
||||
#include <ViewText.h>
|
||||
#include <Table.h>
|
||||
#include <Context.h>
|
||||
#include <main.h>
|
||||
#include <Color.h>
|
||||
|
@ -74,10 +74,10 @@ int CmdColor::execute (std::string& output)
|
|||
{
|
||||
out << '\n' << STRING_CMD_COLOR_HERE << '\n';
|
||||
|
||||
ViewText view;
|
||||
Table view;
|
||||
view.width (context.getWidth ());
|
||||
view.add (Column::factory ("string", STRING_CMD_COLOR_COLOR));
|
||||
view.add (Column::factory ("string", STRING_CMD_COLOR_DEFINITION));
|
||||
view.add (STRING_CMD_COLOR_COLOR);
|
||||
view.add (STRING_CMD_COLOR_DEFINITION);
|
||||
|
||||
for (auto& item : context.config)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue