From 0fc8d16049dad035d58d37d71561976b5434babb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 26 Sep 2021 23:24:18 +0530 Subject: gnbug: Print tasks. * gnbug (print-issue): If the issue has tasks, print the fraction completed. --- gnbug | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnbug') diff --git a/gnbug b/gnbug index 06f6cc0..d7219fe 100755 --- a/gnbug +++ b/gnbug @@ -332,6 +332,12 @@ List recent updates. (cyan (issue-created-relative-date issue)) " by " (cyan (issue-creator issue)))) + (unless (zero? (issue-tasks issue)) + (display (string-append (cyan "; ") + (number->string (issue-completed-tasks issue)) + "/" + (number->string (issue-tasks issue)) + " tasks done"))) (newline)) (define gnbug-list -- cgit 1.4.1