summaryrefslogtreecommitdiff
path: root/src/cmd/pipe.zig
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 20:01:07 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 20:01:07 +0200
commitaf64a8fb6f8d0651d1881166d79fccbc2c2872f3 (patch)
tree3dd5ddaf889acdfd30393a762482ccba6d208e53 /src/cmd/pipe.zig
parent4dd206a5a3a32e23e05c0842ce4db7a108de4d5f (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.zig3
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;