aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.h
diff options
context:
space:
mode:
authorGravatar Lance Borden 2024-09-23 09:51:17 -0400
committerGravatar GitHub 2024-09-23 09:51:17 -0400
commitb578aef7bf03fad539969aa671829e1a8643248b (patch)
tree0d1ac4d5d39de29c1cf7d4d682c09c50446b9821 /src/lush.h
parentUpdate README.md (diff)
parentimplemented piping into new chaining method (diff)
Merge pull request #2 from BanceDev/chaining-operators
Chaining operators
Diffstat (limited to '')
-rw-r--r--src/lush.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lush.h b/src/lush.h
index 15d4d71..291a8dd 100644
--- a/src/lush.h
+++ b/src/lush.h
@@ -35,11 +35,12 @@ int lush_num_builtins();
int lush_run(lua_State *L, char ***commands, int num_commands);
char *lush_read_line();
-char **lush_split_pipes(char *line);
+char **lush_split_commands(char *line);
char ***lush_split_args(char **commands, int *status);
-void lush_execute_command(char **args, int input_fd, int output_fd);
+int lush_execute_command(char **args, int input_fd, int output_fd);
int lush_execute_pipeline(char ***commands, int num_commands);
+int lush_execute_chain(lua_State *L, char ***commands, int num_commands);
void lush_format_prompt(const char *prompt_format);