diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 20:01:07 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 20:01:07 +0200 |
commit | af64a8fb6f8d0651d1881166d79fccbc2c2872f3 (patch) | |
tree | 3dd5ddaf889acdfd30393a762482ccba6d208e53 /src/eval.zig | |
parent | 4dd206a5a3a32e23e05c0842ce4db7a108de4d5f (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.zig | 6 |
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); }, } } |