mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdVersion: Migrated from ViewText to Table
This commit is contained in:
parent
3195e52e23
commit
998b110b02
1 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
#include <Context.h>
|
||||
#include <ViewText.h>
|
||||
#include <Table.h>
|
||||
#ifdef HAVE_COMMIT
|
||||
#include <commit.h>
|
||||
#endif
|
||||
|
@ -61,15 +61,15 @@ int CmdVersion::execute (std::string& output)
|
|||
|
||||
// Create a table for the disclaimer.
|
||||
int width = context.getWidth ();
|
||||
ViewText disclaimer;
|
||||
Table disclaimer;
|
||||
disclaimer.width (width);
|
||||
disclaimer.add (Column::factory ("string", ""));
|
||||
disclaimer.add ("");
|
||||
disclaimer.set (disclaimer.addRow (), 0, STRING_CMD_VERSION_MIT);
|
||||
|
||||
// Create a table for the URL.
|
||||
ViewText link;
|
||||
Table link;
|
||||
link.width (width);
|
||||
link.add (Column::factory ("string", ""));
|
||||
link.add ("");
|
||||
link.set (link.addRow (), 0, STRING_CMD_VERSION_DOCS);
|
||||
|
||||
Color bold;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue