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/cmd/pipe.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/cmd/pipe.zig')
-rw-r--r-- | src/cmd/pipe.zig | 3 |
1 files changed, 1 insertions, 2 deletions
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; |