From 05012c8bbee46fea2e9d556c48295bb8ce89a42c Mon Sep 17 00:00:00 2001 From: Anand Shanmugam <anand1712@gmail.com> Date: Thu, 22 Oct 2015 12:24:41 -0700 Subject: [PATCH] Add help for cloudpulse client commands Change-Id: I503889d27ad336cc1e18e990233a47e601a2cffc --- cloudpulseclient/v1/shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloudpulseclient/v1/shell.py b/cloudpulseclient/v1/shell.py index 481a198..15259c9 100644 --- a/cloudpulseclient/v1/shell.py +++ b/cloudpulseclient/v1/shell.py @@ -21,6 +21,7 @@ def _print_list_field(field): def do_result(cs, args): + """List all the tests""" healtchecks = cs.healthcheck.list() columns = ('uuid', 'id', 'name', 'testtype', 'state') utils.print_list(healtchecks, columns, @@ -41,6 +42,7 @@ def do_result(cs, args): metavar='<FILE>', help='Path to the file which is needed by the extension.') def do_run(cs, args): + """Run new test""" opts = {} opts['name'] = args.name healtcheck = cs.healthcheck.create(**opts) @@ -52,6 +54,7 @@ def do_run(cs, args): nargs='+', help='ID or name of the (cpulse)s to delete.') def do_show(cs, args): + """Show the results of the test""" for id in args.cpulse: healthcheck = cs.healthcheck.get(id) utils.print_dict(healthcheck._info) @@ -62,6 +65,7 @@ def do_show(cs, args): nargs='+', help='ID or name of the (cpulse)s to delete.') def do_delete(cs, args): + """Delete the test""" for id in args.cpulse: try: cs.healthcheck.delete(id)