Skip to content

Commit 81d8a75

Browse files
committed
pwclient: Make 'check-list' a little more useful
Update the 'check-list' command to show more fields per check. Signed-off-by: Stephen Finucane <[email protected]> Tested-by: Andy Doan <[email protected]>
1 parent ab6ca23 commit 81d8a75

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

patchwork/bin/pwclient

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,13 @@ def action_projects(rpc):
238238

239239
def action_check_list(rpc):
240240
checks = rpc.check_list()
241+
print("%-5s %-16s %-8s %s" % ("ID", "Context", "State", "Patch"))
242+
print("%-5s %-16s %-8s %s" % ("--", "-------", "-----", "-----"))
241243
for check in checks:
242-
print("%d (for '%s')" % (check['id'], check['patch']))
244+
print("%-5s %-16s %-8s %s" % (check['id'],
245+
check['context'],
246+
check['state'],
247+
check['patch']))
243248

244249

245250
def action_check_create(rpc, patch_id, context, state, url, description):

0 commit comments

Comments
 (0)