aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.h
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-02 22:55:24 -0400
committerGravatar BanceDev 2024-09-02 22:55:24 -0400
commitebdd4e88db2738197dd4a47903f28253cfc103e0 (patch)
treea9a5e7dd6b57dfa18fdafec0cf912042468a5f56 /src/lush.h
parentadded arrow key movement (diff)
added basic lua scripting
added exec function to run shell commands from lua
Diffstat (limited to 'src/lush.h')
-rw-r--r--src/lush.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lush.h b/src/lush.h
index 65846b0..ef60692 100644
--- a/src/lush.h
+++ b/src/lush.h
@@ -18,14 +18,17 @@ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#ifndef LUSH_H
#define LUSH_H
-int lush_cd(char ***args);
-int lush_help(char ***args);
-int lush_exit(char ***args);
-int lush_time(char ***args);
+#include <lua.h>
+
+int lush_cd(lua_State *L, char ***args);
+int lush_help(lua_State *L, char ***args);
+int lush_exit(lua_State *L, char ***args);
+int lush_time(lua_State *L, char ***args);
+int lush_lush(lua_State *L, char ***args);
int lush_num_builtins();
-int lush_run(char ***commands, int num_commands);
+int lush_run(lua_State *L, char ***commands, int num_commands);
char *lush_read_line();
char **lush_split_pipes(char *line);