242 Commits

Author SHA1 Message Date
Richard Jones
f1fadb9217 guestfish: Always fflush stdout between commands. 2009-07-06 12:46:44 +01:00
Jim Meyering
a7b73d4a1e remove trailing blanks 2009-07-03 17:04:21 +02:00
Richard W.M. Jones
8863ecde5d Add the guestfish 'time' command.
><fs> time sfdisk /dev/sda 0 0 0 ,
 elapsed time: 6.12 seconds
2009-07-02 16:02:32 +01:00
Richard W.M. Jones
19a1382fc9 Implement "more" and "less" commands in guestfish.
Use commands such as:
  more /etc/passwd
  less /etc/fstab

These commands are specific to guestfish.
2009-06-29 12:05:58 +01:00
Richard W.M. Jones
88da5cf8a3 Guestfish pipes. 2009-06-28 22:22:30 +01:00
Richard W.M. Jones
b96fb7eb3a Quote command line arguments to virt-inspector. 2009-06-24 12:15:57 +01:00
Richard W.M. Jones
e1c62f6332 Added guestfish -i option to run virt-inspector.
You can invoke guestfish with:
 guestfish -i libvirt-domain
 guestfish -i disk-image(s)
2009-06-24 11:54:48 +01:00
Richard W.M. Jones
46551d9c51 Implement guestfish -f option to allow guestfish scripts.
New '-f' option allows scripts to be written using:
 #!/usr/bin/guestfish -f
2009-06-24 09:59:39 +01:00
Richard Jones
394c8bec21 Add 'glob' command for guestfish. 2009-06-22 09:35:43 +01:00
Richard Jones
e395d7db8f Add tab-completion of guest filenames (currently disabled). 2009-06-18 21:06:22 +01:00
Richard Jones
fa8cb5dac2 Added 'lcd' command to guestfish. 2009-06-08 10:01:42 +01:00
Charles Duffy
d1da506d35 use add_drive_ro for --mount parameters from guestfish when called with --ro
To prevent writes (such as ext3 journal replay) from occuring even when --ro is
passed, guestfish should use add_drive_ro() for any drives specified on the
command line with --add if --ro is also passed.

As we need to look through the entire command line for --ro before adding any
drives, we move the add process out of the argument-parsing loop and into its
own function, patterned off mount_mps().

Signed-off-by: Charles Duffy <charles_duffy@dell.com>
2009-06-02 19:16:34 +01:00
Richard W.M. Jones
a1e8cdf2a2 Move the appliance and build scripts into new appliance/ subdirectory. 2009-05-28 13:00:31 +01:00
Richard Jones
d70248333e Gettextize the source, make library strings translatable. 2009-05-21 12:01:36 +01:00
Richard Jones
c10fa84ada Implement -command (to ignore errors) in guestfish, and allow recovery from qemu process failure. 2009-05-08 15:19:51 +01:00
Richard Jones
64847eed16 Missing include <ctype.h> 2009-05-06 15:08:13 +01:00
Richard W.M. Jones
a4d88af2c1 Implement !local in guestfish. 2009-05-01 17:41:28 +01:00
Richard Jones
4581eb2523 Added guestfish 'echo' command. 2009-04-30 20:11:04 +01:00
Richard Jones
df189925e4 Added a comment syntax to guestfish (# ...). 2009-04-30 19:53:52 +01:00
Richard Jones
0b2748bb27 Add --version option (show version) to guestfish. 2009-04-26 12:11:23 +01:00
Richard Jones
edd99a3f79 Added the --ro option (readonly) to guestfish. 2009-04-26 12:09:06 +01:00
Richard Jones
e65e1d5d00 Don't echo output in scripts. 2009-04-26 07:05:12 +01:00
Richard Jones
ae17137f64 If LIBGUESTFS_PATH is set, guestfish shouldn't modify the path. 2009-04-25 10:38:39 +01:00
Richard W.M. Jones
b189610555 Fix buffer overrun in guestfish command-line parsing. 2009-04-23 14:47:06 +01:00
Richard Jones
05712b2457 'guestfish edit' commands and several bugfixes. 2009-04-15 23:54:51 +01:00
Richard Jones
612a358b89 Move guestfish 'alloc' command to a separate file. 2009-04-15 20:27:30 +01:00
Richard Jones
ad5abc8d36 Generated code for tune2fs-l command and RHashtable return type. 2009-04-15 13:59:07 +01:00
Richard Jones
946eec285f Quoting in guestfish. 2009-04-14 20:47:51 +01:00
Richard Jones
d268e64fe7 Added bindings for GNU readline. 2009-04-14 15:52:04 +01:00
Richard Jones
b7c9d26dde Fix looping bug in parse_string_list, and remove debug message. 2009-04-12 22:27:04 +01:00
Richard Jones
b4d2a01828 Added test suite. 2009-04-11 17:04:35 +01:00
Richard Jones
94050e0344 Many non-daemon functions are now auto-generated. 2009-04-08 20:26:35 +01:00
Richard Jones
73d6932ab2 pvs/vgs/lvs commands working now. 2009-04-07 09:14:17 +01:00
Richard Jones
843514eef9 Implement RString and RStringList return types.
- implement 'll' command.
 - outlines for 'ls' and 'cat' commands.
2009-04-04 16:38:28 +01:00
Richard Jones
eb50cde931 Implement the alloc shell command. 2009-04-04 14:51:48 +01:00
Richard Jones
8358ea9524 LIBGUESTFS_PATH implementation. 2009-04-04 12:54:47 +01:00
Richard Jones
017b503c3b Document --add and --mount options. 2009-04-04 11:29:44 +01:00
Richard Jones
c9cc61940b Implemented autosync, make it the default for guestfish. 2009-04-04 10:41:34 +01:00
Richard Jones
b4c040d30e More tidy up of messages. 2009-04-04 01:49:36 +01:00
Richard Jones
76f3ea8fb3 Command line, help. 2009-04-04 01:40:43 +01:00
Richard Jones
4567839859 Command line and interactive shell parsing, prompts etc. 2009-04-04 00:58:40 +01:00
Richard Jones
bc0b3d6f47 Added outline of shell command, added generator support. 2009-04-03 23:47:47 +01:00