diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-07-02 16:02:32 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-07-02 16:02:32 +0100 |
commit | 8863ecde5dba262c0736da7505a9fa3655ed42f6 (patch) | |
tree | 5b7676e4b332a2d0c5f34917f30140e29fb99dca /fish/fish.h | |
parent | 62e41312acd0f7fe7f3622a73d6f6efc27b1b511 (diff) | |
download | libguestfs-8863ecde5dba262c0736da7505a9fa3655ed42f6.tar.gz libguestfs-8863ecde5dba262c0736da7505a9fa3655ed42f6.tar.xz libguestfs-8863ecde5dba262c0736da7505a9fa3655ed42f6.zip |
Add the guestfish 'time' command.
><fs> time sfdisk /dev/sda 0 0 0 ,
elapsed time: 6.12 seconds
Diffstat (limited to 'fish/fish.h')
-rw-r--r-- | fish/fish.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/fish/fish.h b/fish/fish.h index ac846470..cad80733 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -77,17 +77,21 @@ extern int do_glob (const char *cmd, int argc, char *argv[]); /* in more.c */ extern int do_more (const char *cmd, int argc, char *argv[]); +/* in time.c */ +extern int do_time (const char *cmd, int argc, char *argv[]); + /* This should just list all the built-in commands so they can * be added to the generated auto-completion code. */ #define BUILTIN_COMMANDS_FOR_COMPLETION \ - "help", \ - "quit", "exit", "q", \ - "alloc", "allocate", \ - "echo", \ - "edit", "vi", "emacs", \ - "lcd", \ - "glob", \ - "more", "less" + "help", \ + "quit", "exit", "q", \ + "alloc", "allocate", \ + "echo", \ + "edit", "vi", "emacs", \ + "lcd", \ + "glob", \ + "more", "less", \ + "time" #endif /* FISH_H */ |