diff options
author | Richard Jones <rjones@redhat.com> | 2010-05-25 11:28:09 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-05-25 11:31:11 +0100 |
commit | c9f1a45334efca844c8918b9f0de373f16fd9766 (patch) | |
tree | c373c8568a8d58cd23478a4f9d86212f3b733b78 /fish/fish.c | |
parent | 1bd1f9b85f45275b1600d148530bc1877ff15213 (diff) | |
download | libguestfs-c9f1a45334efca844c8918b9f0de373f16fd9766.tar.gz libguestfs-c9f1a45334efca844c8918b9f0de373f16fd9766.tar.xz libguestfs-c9f1a45334efca844c8918b9f0de373f16fd9766.zip |
fish: New command: 'supported'
This checks all available optional groups and prints out which
ones are supported by the daemon. Note you must launch the appliance
first.
Example:
><fs> supported
augeas yes
inotify yes
linuxfsuuid yes
linuxmodules yes
linuxxattrs yes
lvm2 yes
mknod yes
ntfs3g yes
ntfsprogs yes
realpath yes
scrub yes
selinux yes
xz yes
zerofree yes
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c index d38d1c13..cbbbf970 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -992,6 +992,8 @@ issue_command (const char *cmd, char *argv[], const char *pipecmd) r = do_reopen (cmd, argc, argv); else if (STRCASEEQ (cmd, "sparse")) r = do_sparse (cmd, argc, argv); + else if (STRCASEEQ (cmd, "supported")) + r = do_supported (cmd, argc, argv); else if (STRCASEEQ (cmd, "time")) r = do_time (cmd, argc, argv); else @@ -1049,6 +1051,8 @@ list_builtin_commands (void) printf ("%-20s %s\n", "sparse", _("allocate a sparse image file")); printf ("%-20s %s\n", + "supported", _("list supported groups of commands")); + printf ("%-20s %s\n", "time", _("measure time taken to run command")); /* actions are printed after this (see list_commands) */ @@ -1162,6 +1166,16 @@ display_builtin_command (const char *cmd) "\n" " Size can be specified using standard suffixes, eg. '1M'.\n" )); + else if (STRCASEEQ (cmd, "supported")) + printf (_("supported - list supported groups of commands\n" + " supported\n" + "\n" + " This command returns a list of the optional groups\n" + " known to the daemon, and indicates which ones are\n" + " supported by this build of the libguestfs appliance.\n" + "\n" + " See also guestfs(3) section AVAILABILITY.\n" + )); else if (STRCASEEQ (cmd, "time")) printf (_("time - measure time taken to run command\n" " time <command> [<args> ...]\n" |