diff options
Diffstat (limited to 'src/eval.zig')
-rw-r--r-- | src/eval.zig | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/eval.zig b/src/eval.zig index 9399c75..a689837 100644 --- a/src/eval.zig +++ b/src/eval.zig @@ -128,14 +128,8 @@ pub fn executeCommandWithOutput(command: Command, allocator: Allocator, output_c return redirect.eval(allocator, output_capture, input_source, executeCommandWithOutput); }, - else => { - const error_msg = "Command type not implemented\n"; - if (output_capture) |capture| { - try capture.write(error_msg); - } else { - print("{s}", .{error_msg}); - } - return CommandStatus{ .Code = 1 }; + .Pipe => |pipe| { + return pipe.eval(allocator, output_capture, input_source, executeCommandWithOutput); }, } } |