add new command line handler 11/811/4
authorJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Fri, 12 Jun 2015 09:19:57 +0000 (11:19 +0200)
committerJo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Thu, 18 Jun 2015 13:37:30 +0000 (15:37 +0200)
commit40f49a42dd8476ad2332ecf2e0a57e6bf511aa63
tree2cc1a81ddf04efde2bc85b8dd0a0675c31516545
parent407de6815f1462540ba067a16a3c69e590aa3f8e
add new command line handler

New command line handler with pluggable classes.

Task subcommand added.

To run a scenario: yardstick -d task start samples/ping.yaml

$ yardstick -h
usage: yardstick [-h] [-V] [-d] [-v] {task} ...

Command-line interface to yardstick

optional arguments:
  -h, --help     show this help message and exit
  -V, --version  display version
  -d, --debug    increase output verbosity to debug
  -v, --verbose  increase output verbosity to info

subcommands:
  {task}

$ yardstick task -h
usage: yardstick task [-h] {start} ...

Task commands.

       Set of commands to manage benchmark tasks.

optional arguments:
  -h, --help  show this help message and exit

subcommands:
  {start}

$ yardstick task start -h
usage: yardstick task start [-h] [--keep-deploy] [--parse-only]
                            [--output-file OUTPUT_FILE]
                            taskfile

Start a benchmark scenario.

positional arguments:
  taskfile              path to taskfile

optional arguments:
  -h, --help            show this help message and exit
  --keep-deploy         keep context deployed in cloud
  --parse-only          parse the benchmark config file and exit
  --output-file OUTPUT_FILE
                        file where output is stored, default
                        /tmp/yardstick.out

JIRA :-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Change-Id: If0672594efa4c94c94ebb73f0bc97ecfe3e00c62
yardstick/cmd/__init__.py [new file with mode: 0644]
yardstick/cmd/cli.py [new file with mode: 0644]
yardstick/cmd/commands/__init__.py [new file with mode: 0644]
yardstick/cmd/commands/task.py [new file with mode: 0644]
yardstick/cmdparser.py [deleted file]
yardstick/common/utils.py
yardstick/main.py