[PATCH 3/4] pwclient: Make 'check-list' a little more useful

Stephen Finucane stephen.finucane at intel.com
Sat Feb 27 06:54:49 AEDT 2016


Update the 'check-list' command to show more fields per check.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/bin/pwclient | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index e9268e9..751aeed 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.0.0



More information about the Patchwork mailing list