From 6e34e57a78d77ee33c837600678b32527a0c5737 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 17 Oct 2015 23:13:14 -0400 Subject: [PATCH] Cleanup: Added comments --- src/review.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/review.cpp b/src/review.cpp index 8fef493..48bf8ed 100644 --- a/src/review.cpp +++ b/src/review.cpp @@ -196,6 +196,7 @@ static void reviewLoop (const std::vector & uuids) 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"; 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); } + // Configure '_reviewed' report, but only if necessary. status = execute ("task", {"_get", "rc.report._reviewed.columns"}, input, output); if (status || output != "uuid\n") { @@ -255,7 +257,7 @@ int cmdReview () }, input, output); - // Iterate over each task in the list. + // Review the set of UUIDs. std::vector uuids; split (uuids, trimRight (output, "\n"), '\n'); reviewLoop (uuids);