scripts/qmp-shell: move the REPL functionality into QMPShell
commitad4eebee00a52a6f0e9761ffd0fd0002c259bc21
authorJohn Snow <jsnow@redhat.com>
Mon, 7 Jun 2021 20:06:29 +0000 (7 16:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:07 +0000 (18 16:10 -0400)
treecd295c24d10f3af1dc35a5fd25d9c0df0bbe8d4b
parent1215a1fbef205ba9930a976619163271d8195cdb
scripts/qmp-shell: move the REPL functionality into QMPShell

Instead of doing this in main, move it into the class itself. (This
makes it easier to put into the qemu.qmp package later by removing as
much as we can from the main() function.)

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-23-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/qmp/qmp-shell