scripts: qmp-shell: refactor helpers
commita7430a0badc59bd6295936e06c1869e8fe32649d
authorJohn Snow <jsnow@redhat.com>
Wed, 29 Apr 2015 19:14:01 +0000 (29 15:14 -0400)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 11 May 2015 12:59:07 +0000 (11 08:59 -0400)
tree6a71e2efb45a0b4b642326b24bfc700bf33eb8d5
parent9740618cd2a0ed85b9c1648f05f3066f525f4b2e
scripts: qmp-shell: refactor helpers

Refactor the qmp-shell command line processing function
into two components. This will be used to allow sub-expressions,
which will assist us in adding transactional support to qmp-shell.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Kashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
scripts/qmp/qmp-shell