[PATCH v3 8/8] pwclient: Integrate 'checks' endpoint
Stephen Finucane
stephen.finucane at intel.com
Fri Nov 6 04:13:23 AEDT 2015
Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
patchwork/bin/pwclient | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index 76dd97b..39d8f8a 100755
--- a/patchwork/bin/pwclient
+++ b/patchwork/bin/pwclient
@@ -225,6 +225,11 @@ def action_projects(rpc):
project['linkname'], \
project['name']))
+def action_checks(rpc):
+ checks = rpc.check_list("", 0)
+ for check in checks:
+ print("%d (for '%s')" % (check['id'], check['patch']))
+
def action_states(rpc):
states = rpc.state_list("", 0)
print("%-5s %s" % ("ID", "Name"))
@@ -439,6 +444,12 @@ def main():
help='''List all projects'''
)
projects_parser.set_defaults(subcmd='projects')
+ checks_parser = subparsers.add_parser(
+ 'checks',
+ add_help=False,
+ help='''Show list of patch checks'''
+ )
+ checks_parser.set_defaults(subcmd='checks')
states_parser = subparsers.add_parser(
'states',
help='''Show list of potential patch states'''
@@ -640,6 +651,9 @@ def main():
elif action.startswith('project'):
action_projects(rpc)
+ elif action.startswith('check'):
+ action_checks(rpc)
+
elif action.startswith('state'):
action_states(rpc)
--
2.0.0
More information about the Patchwork
mailing list