Skip to content

Commit

Permalink
Merge pull request #4 from diggyk/master
Browse files Browse the repository at this point in the history
CLI now notes which fates are intermediate
  • Loading branch information
gmjosack committed Jun 15, 2015
2 parents cead967 + e5b1857 commit f9d3159
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/hermes
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def list_fates(args):
response = request_get("/api/v1/eventtypes?limit=all")
event_types = response.json()["eventTypes"]

print "FATES ([id] created by => completed by)\n "
print "FATES ([id] created by => completed by)"
print " * = intermediate\n"
for fate in fates:
creation_event = None
completion_event = None
Expand All @@ -118,8 +119,9 @@ def list_fates(args):
if event_type["id"] == fate['completionEventTypeId']:
completion_event = event_type

print "[{}] {} => {}".format(
print "[{}]{} {} => {}".format(
fate["id"],
"*" if fate["intermediate"] else " ",
creation_event["category"] + "-" + creation_event["state"],
completion_event["category"] + "-" + completion_event["state"]
)
Expand Down

0 comments on commit f9d3159

Please sign in to comment.