diff options
Diffstat (limited to 'src/cmd/ver.zig')
-rw-r--r-- | src/cmd/ver.zig | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cmd/ver.zig b/src/cmd/ver.zig index 2d8d56b..5e99c03 100644 --- a/src/cmd/ver.zig +++ b/src/cmd/ver.zig @@ -4,17 +4,14 @@ const print = std.debug.print; const types = @import("./lib/types.zig"); const CommandStatus = types.CommandStatus; -const OutputCapture = types.OutputCapture; -const InputSource = types.InputSource; +const CommandContext = types.CommandContext; pub const Ver = struct { - pub fn eval(ver: Ver, allocator: Allocator, output_capture: ?*OutputCapture, input_source: ?*InputSource) !CommandStatus { + pub fn eval(ver: Ver, ctx: CommandContext) !CommandStatus { _ = ver; - _ = allocator; - _ = input_source; const output = "MB-DOSE Version 6.22\n"; - if (output_capture) |capture| { + if (ctx.output_capture) |capture| { try capture.write(output); } else { print("{s}", .{output}); |