X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=TODO;h=ee431d2fc05ab82de7764f0c880f5cbc6dc39e7a;hp=0f933fafd55cf3bd2df366327227d073b9ff1734;hb=a22d5a7390339eca5d9bafb2155439ad1ccc02ac;hpb=6590e04bdcc3038312cb0a5f5545f1f0924907b2 diff --git a/TODO b/TODO index 0f933fa..ee431d2 100644 --- a/TODO +++ b/TODO @@ -348,10 +348,37 @@ capturing traces than using patched qemu (see contrib/visualize-alignment). We would still use the same visualization tools in conjunction with blktrace traces. -Add-domain command +guestfish parsing +----------------- + +At the moment guestfish uses an ad hoc parser which has many +shortcomings. We should change to using a lex/yacc-based scanner and +parser (there are better parsers out there, but yacc is sufficient and +very widely available). + +The scanner must deal with the case of parsing a whole command string, +eg. for a command that the user types in: + + > add-drive-opts "/tmp/foo" readonly:true + +and also with parsing single words from the command line: + + guestfish add-drive-opts /tmp/foo readonly:true + +Note the quotes are for scanning and don't indicate types. + +We should also allow variables and expressions as part of this new +parsing code, eg: + + set roots inspect-os + set product inspect-get-product-name %{roots[0]} + +% is better than $ because of shell escaping and confusion with shell +variables. + +live CD inspection ------------------ -guestfs_add_domain (g, "libvirt-dom"); +guestfish -i livecd.iso -However this would need to not depend on libvirt, eg. loading it -on demand. +Could this be done through the core API and existing calls?