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/cmd/pipe.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cmd/pipe.zig') diff --git a/src/cmd/pipe.zig b/src/cmd/pipe.zig index f97561a..ad0d0e4 100644 --- a/src/cmd/pipe.zig +++ b/src/cmd/pipe.zig @@ -18,9 +18,8 @@ pub const PipeCommand = struct { left: *Command, right: *Command, - pub fn eval(pipe: PipeCommand, ctx: CommandContext) !CommandStatus { + pub fn eval(pipe: PipeCommand, ctx: CommandContext, executeCommandWithOutput: ExecuteCommandFn) !CommandStatus { // Cast the execute function back to its proper type - const executeCommandWithOutput: ExecuteCommandFn = @ptrCast(@alignCast(ctx.execute_command.?)); const allocator = ctx.allocator; const output_capture = ctx.output_capture; -- cgit v1.2.1