]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pwclient: Make 'check-list' a little more useful
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 26 Feb 2016 19:54:49 +0000 (19:54 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 3 Mar 2016 14:45:26 +0000 (14:45 +0000)
Update the 'check-list' command to show more fields per check.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/bin/pwclient

index e9268e92fb187098da00ca1bdb577a99493317b9..751aeedc89a576d440b50b3f393b5eb1d27e1e26 100755 (executable)
@@ -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):