mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 03:18:33 +02:00
Visuals
- Cleaned up 'info' command output when the task is not pending and has no ID. It displays '-' instead of the misleading "0".
This commit is contained in:
parent
64be6e1cf4
commit
f92b13fbf7
1 changed files with 4 additions and 3 deletions
|
@ -51,7 +51,7 @@ CmdInfo::CmdInfo ()
|
||||||
// lot of sense, given that the info command shows the ID, it does mimic the
|
// lot of sense, given that the info command shows the ID, it does mimic the
|
||||||
// behavior of versions prior to 2.0, which the test suite relies upon.
|
// behavior of versions prior to 2.0, which the test suite relies upon.
|
||||||
//
|
//
|
||||||
// One the test suite is completely modified, this can be corrected.
|
// Once the test suite is completely modified, this can be corrected.
|
||||||
_displays_id = false;
|
_displays_id = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,11 +100,12 @@ int CmdInfo::execute (std::string& output)
|
||||||
}
|
}
|
||||||
|
|
||||||
Date now;
|
Date now;
|
||||||
|
int row;
|
||||||
|
|
||||||
// id
|
// id
|
||||||
int row = view.addRow ();
|
row = view.addRow ();
|
||||||
view.set (row, 0, STRING_COLUMN_LABEL_ID);
|
view.set (row, 0, STRING_COLUMN_LABEL_ID);
|
||||||
view.set (row, 1, format (task->id));
|
view.set (row, 1, (task->id ? format (task->id) : "-"));
|
||||||
|
|
||||||
std::string status = ucFirst (Task::statusToText (task->getStatus ()));
|
std::string status = ucFirst (Task::statusToText (task->getStatus ()));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue