1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
libvirt/tools
Lai Jiangshan a2943243c4 virsh: rework command parsing
Old virsh command parsing mashes all the args back into a string and
miss the quotes, this patches fix it. It is also needed for introducing
qemu-monitor-command which is very useful.

This patches uses the new vshCommandParser abstraction and adds
vshCommandArgvParse() for arguments vector, so we don't need
to mash arguments vector into a command sting.

And the usage was changed:
old:
virsh [options] [commands]

new:
virsh [options]... [<command_string>]
virsh [options]... <command> [args...]

So we still support commands like:
"define D.xml; dumpxml D" was parsed as a commands-string.

and support commands like:
we will not mash them into a string, we use new argv parser for it.

But we don't support the command like:
"define D.xml; dumpxml" was parsed as a command-name, but we have no such command-name.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
2010-10-13 07:52:32 -06:00
..
.gitignore maint: track moved file 2010-08-31 10:00:31 -06:00
console.c build: prefer WIN32 over __MINGW32__ checks 2010-05-03 16:03:24 -06:00
console.h build: prefer WIN32 over __MINGW32__ checks 2010-05-03 16:03:24 -06:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.init.in libvirt-guests: start late and stop early 2010-09-22 22:53:48 +02:00
libvirt-guests.sysconf Move libvirt-guests init script and config to tools 2010-08-25 14:07:26 +02:00
Makefile.am build: Fix permissions of sysconfig files 2010-09-07 10:03:14 +02:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh.c virsh: rework command parsing 2010-10-13 07:52:32 -06:00
virsh.pod virsh: rework command parsing 2010-10-13 07:52:32 -06:00
virt-pki-validate.in Fix virt-pki-validate's determination of CN 2010-04-29 20:10:46 -06:00
virt-xml-validate.in build: import latest gnulib 2010-04-02 10:18:55 -06:00