summaryrefslogtreecommitdiff
path: root/src/eval.zig
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 20:01:07 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 20:01:07 +0200
commitaf64a8fb6f8d0651d1881166d79fccbc2c2872f3 (patch)
tree3dd5ddaf889acdfd30393a762482ccba6d208e53 /src/eval.zig
parent4dd206a5a3a32e23e05c0842ce4db7a108de4d5f (diff)
CommandContext: Remove execute_command.
It was not properly typeable and it was null most of the time.
Diffstat (limited to 'src/eval.zig')
-rw-r--r--src/eval.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eval.zig b/src/eval.zig
index 7aaae4b..3b349e0 100644
--- a/src/eval.zig
+++ b/src/eval.zig
@@ -128,13 +128,11 @@ pub fn executeCommandWithOutput(command: Command, allocator: Allocator, output_c
},
.Redirect => |redirect| {
- const ctx_with_executor = CommandContext.with_executor(allocator, output_capture, input_source, executeCommandWithOutput);
- return redirect.eval(ctx_with_executor);
+ return redirect.eval(ctx, executeCommandWithOutput);
},
.Pipe => |pipe| {
- const ctx_with_executor = CommandContext.with_executor(allocator, output_capture, input_source, executeCommandWithOutput);
- return pipe.eval(ctx_with_executor);
+ return pipe.eval(ctx, executeCommandWithOutput);
},
}
}