From af64a8fb6f8d0651d1881166d79fccbc2c2872f3 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 14 Aug 2025 20:01:07 +0200 Subject: CommandContext: Remove execute_command. It was not properly typeable and it was null most of the time. --- src/eval.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/eval.zig') 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); }, } } -- cgit v1.2.1