From: Stephen Finucane Date: Fri, 26 Feb 2016 19:54:49 +0000 (+0000) Subject: pwclient: Make 'check-list' a little more useful X-Git-Tag: v1.1.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d8a7525c0e8a1fdde3ed2e934178a966ca3f7d;p=thirdparty%2Fpatchwork.git 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 --- 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):