diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-15 13:43:22 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-15 13:43:22 +0200 |
commit | 6f84a9a1458ff053d6dc7c1a66c1e03deb8e8793 (patch) | |
tree | eb7e23e0f58bdbb3e40ba73a21d13b65fea18b5f /src/eval.zig | |
parent | e8dbb3c17c93372a771a7a26900ae05754b217dc (diff) |
CommandContext: Add execute_command back, properly typed.
Diffstat (limited to 'src/eval.zig')
-rw-r--r-- | src/eval.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.zig b/src/eval.zig index 7bd7da7..17486aa 100644 --- a/src/eval.zig +++ b/src/eval.zig @@ -36,7 +36,7 @@ pub fn executeCommand(command: Command, allocator: Allocator) !CommandStatus { } pub fn executeCommandWithOutput(command: Command, allocator: Allocator, output_capture: ?*OutputCapture, input_source: ?*InputSource) !CommandStatus { - const ctx = CommandContext.init(allocator, output_capture, input_source); + const ctx = CommandContext.init(allocator, output_capture, input_source, executeCommandWithOutput); switch (command) { .Empty => return CommandStatus{ .Code = 0 }, @@ -124,11 +124,11 @@ pub fn executeCommandWithOutput(command: Command, allocator: Allocator, output_c }, .Redirect => |redirect| { - return redirect.eval(ctx, executeCommandWithOutput); + return redirect.eval(ctx); }, .Pipe => |pipe| { - return pipe.eval(ctx, executeCommandWithOutput); + return pipe.eval(ctx); }, } } |