From 81d8a7525c0e8a1fdde3ed2e934178a966ca3f7d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 26 Feb 2016 19:54:49 +0000 Subject: [PATCH] pwclient: Make 'check-list' a little more useful Update the 'check-list' command to show more fields per check. Signed-off-by: Stephen Finucane Tested-by: Andy Doan --- patchwork/bin/pwclient | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient index e9268e92..751aeedc 100755 --- a/patchwork/bin/pwclient +++ b/patchwork/bin/pwclient @@ -238,8 +238,13 @@ def action_projects(rpc): def action_check_list(rpc): checks = rpc.check_list() + print("%-5s %-16s %-8s %s" % ("ID", "Context", "State", "Patch")) + print("%-5s %-16s %-8s %s" % ("--", "-------", "-----", "-----")) for check in checks: - print("%d (for '%s')" % (check['id'], check['patch'])) + print("%-5s %-16s %-8s %s" % (check['id'], + check['context'], + check['state'], + check['patch'])) def action_check_create(rpc, patch_id, context, state, url, description): -- 2.47.3