mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Review: Show task description in banner.
This commit is contained in:
parent
964d1aa93e
commit
5bd8886b9e
1 changed files with 11 additions and 3 deletions
|
@ -146,11 +146,19 @@ static void reviewLoop (const std::vector <std::string>& uuids)
|
|||
unsigned int current = 0;
|
||||
while (current < total)
|
||||
{
|
||||
// Display banner for this task.
|
||||
std::cout << banner (current + 1, total, width, "");
|
||||
|
||||
// Run 'info' report for task.
|
||||
auto uuid = uuids[current];
|
||||
|
||||
// Display banner for this task.
|
||||
std::string dummy;
|
||||
std::string description;
|
||||
execute ("task",
|
||||
{"_get", uuid + ".description"},
|
||||
dummy,
|
||||
description);
|
||||
|
||||
std::cout << banner (current + 1, total, width, trimRight (description, "\n"));
|
||||
|
||||
std::string command = "task " + uuid + " information";
|
||||
system (command.c_str ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue