aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2018-06-18 16:38:52 +0100
committerDaniel Thompson <daniel.thompson@linaro.org>2018-06-18 16:38:52 +0100
commit1d4c6c56310f11de5baaee25b826795064b8d1c9 (patch)
tree6c9d140d2033080b15f5b57572eeba6ab2785cab
parentda73fa32abe97831f8fad031c7ec8fd54487b1c1 (diff)
glance: interact: Provide report and worklog
Make is easier to explore reports and worklogs from the interact tool.
-rwxr-xr-xbin/glance4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/glance b/bin/glance
index 52f5c8a..c300c3d 100755
--- a/bin/glance
+++ b/bin/glance
@@ -589,7 +589,11 @@ def do_format(args):
def do_interact(args):
'''Directly interaction with the JSON data'''
issues = Issue.load(args.json)
+ report = Report(issues)
+ worklog = report.worklog()
+
issue = issues[-1]
+ work = worklog[-1]
interact()