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

Signed-off-by: Stephen Finucane <[email protected]>
---
 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

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to