diff options
| author | 2024-09-02 22:55:24 -0400 | |
|---|---|---|
| committer | 2024-09-02 22:55:24 -0400 | |
| commit | ebdd4e88db2738197dd4a47903f28253cfc103e0 (patch) | |
| tree | a9a5e7dd6b57dfa18fdafec0cf912042468a5f56 /src/lush.h | |
| parent | added 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.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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); |
