mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Cleanup: Added comments
This commit is contained in:
parent
b8810c4cab
commit
6e34e57a78
1 changed files with 3 additions and 1 deletions
|
@ -196,6 +196,7 @@ static void reviewLoop (const std::vector <std::string>& uuids)
|
||||||
|
|
||||||
std::cout << banner (current + 1, total, width, trimRight (description, "\n"));
|
std::cout << banner (current + 1, total, width, trimRight (description, "\n"));
|
||||||
|
|
||||||
|
// Use 'system' to run the command and show the output.
|
||||||
std::string command = "task " + uuid + " information";
|
std::string command = "task " + uuid + " information";
|
||||||
system (command.c_str ());
|
system (command.c_str ());
|
||||||
|
|
||||||
|
@ -235,6 +236,7 @@ int cmdReview ()
|
||||||
execute ("task", {"rc.confirmation:no", "rc.verbose:nothing", "config", "uda.reviewed.label", "Reviewed"}, input, output);
|
execute ("task", {"rc.confirmation:no", "rc.verbose:nothing", "config", "uda.reviewed.label", "Reviewed"}, input, output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Configure '_reviewed' report, but only if necessary.
|
||||||
status = execute ("task", {"_get", "rc.report._reviewed.columns"}, input, output);
|
status = execute ("task", {"_get", "rc.report._reviewed.columns"}, input, output);
|
||||||
if (status || output != "uuid\n")
|
if (status || output != "uuid\n")
|
||||||
{
|
{
|
||||||
|
@ -255,7 +257,7 @@ int cmdReview ()
|
||||||
},
|
},
|
||||||
input, output);
|
input, output);
|
||||||
|
|
||||||
// Iterate over each task in the list.
|
// Review the set of UUIDs.
|
||||||
std::vector <std::string> uuids;
|
std::vector <std::string> uuids;
|
||||||
split (uuids, trimRight (output, "\n"), '\n');
|
split (uuids, trimRight (output, "\n"), '\n');
|
||||||
reviewLoop (uuids);
|
reviewLoop (uuids);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue