diff options
Diffstat (limited to 'src/cmd/move.zig')
-rw-r--r-- | src/cmd/move.zig | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmd/move.zig b/src/cmd/move.zig index 9ae47b7..9787673 100644 --- a/src/cmd/move.zig +++ b/src/cmd/move.zig @@ -4,17 +4,16 @@ 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 Move = struct { - pub fn eval(move: Move, allocator: Allocator, output_capture: ?*OutputCapture, input_source: ?*InputSource) !CommandStatus { + pub fn eval(move: Move, ctx: CommandContext) !CommandStatus { _ = move; - _ = allocator; - _ = input_source; + _ = ctx.allocator; + _ = ctx.input_source; const error_msg = "MOVE command not yet implemented\n"; - if (output_capture) |capture| { + if (ctx.output_capture) |capture| { try capture.write(error_msg); } else { print("{s}", .{error_msg}); |