From ebdd4e88db2738197dd4a47903f28253cfc103e0 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 2 Sep 2024 22:55:24 -0400 Subject: added basic lua scripting added exec function to run shell commands from lua --- src/lush.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/lush.h') 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 + +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); -- cgit v1.2.3-59-g8ed1b