summaryrefslogtreecommitdiff
path: root/exec.h
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-14 21:41:17 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-14 21:41:17 +0200
commit5009a29f4b13786673198616838a8bd8c93cdc50 (patch)
treee1e0fda1b46063626b10a913cf9bfc62c1edbd84 /exec.h
parent6632fa4168c4d619c60e55c9eeedf90f6ef50234 (diff)
add more expansion code
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/exec.h b/exec.h
new file mode 100644
index 0000000..11a4eb9
--- /dev/null
+++ b/exec.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "typeutils.h"
+#include "parse.h"
+
+typedef struct {
+ char* key;
+ char* val;
+} StrPair;
+
+DECLARE_VEC(StrPair, KeyValMap)
+DECLARE_MAYBE(char*, MaybeStr)
+
+typedef struct {
+ KeyValMap aliases;
+ KeyValMap shell_vars;
+} ShellState;
+
+void run_pipeline(Pipeline pl, ShellState* shstate);