aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-02-28 23:49:02 -0600
committericeyrazor <iceyrazor@mailfence.com>2026-02-28 23:49:02 -0600
commit1b8967ea87c63342f03c340d44a084ea7f62cae9 (patch)
tree06b7998b94fe9b05115d59c2a584339af8943445 /src/main.h
parentbecbecb016f16c2dea64aacd7077973f45ed0517 (diff)
command typing
now can chain commands with just ;
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
new file mode 100644
index 0000000..2b8505b
--- /dev/null
+++ b/src/main.h
@@ -0,0 +1,23 @@
+#ifndef mainh
+#define mainh
+
+typedef struct{
+ char *prompt;
+ char *pre_prompt;
+} SHELL_OB;
+
+typedef enum{
+ Stdout=0,
+ Redirect=1,
+ Pipe=2,
+ If=3,
+ Continue=4
+} cmd_t;
+
+typedef struct{
+ char *cmd;
+ cmd_t type;
+ char *Stdout;
+} CMD;
+
+#endif