aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.h')
-rw-r--r--cmd.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/cmd.h b/cmd.h
index adf03c7..c094e04 100644
--- a/cmd.h
+++ b/cmd.h
@@ -16,15 +16,11 @@ typedef enum {
16typedef struct Command { 16typedef struct Command {
17 CommandType type; // the type of the command 17 CommandType type; // the type of the command
18 char **args; // an array of strings for the arguments of the command 18 char **args; // an array of strings for the arguments of the command
19 int argc;
19 struct Command *left; // a pointer to the left sub-command 20 struct Command *left; // a pointer to the left sub-command
20 struct Command *right; // a pointer to the right sub-command 21 struct Command *right; // a pointer to the right sub-command
21 char *redirect_in; // the file name for input redirection, or NULL if there
22 // is no input redirection
23 char *redirect_out; // the file name for output redirection, or NULL if
24 // there is no output redirection
25 char *append_out; // the file name for output appending, or NULL if there is
26 // no output appending
27 // add more fields as needed
28} Command; 22} Command;
29 23
24int runcmd(Command *cmd);
25
30#endif \ No newline at end of file 26#endif \ No newline at end of file