summaryrefslogtreecommitdiff
path: root/src/cmd/move.zig
blob: 557566f0c8059ffeed81c86d221c3281401a8db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const std = @import("std");
const Allocator = std.mem.Allocator;

const types = @import("./lib/types.zig");
const CommandStatus = types.CommandStatus;
const CommandContext = types.CommandContext;

pub const Move = struct {
    pub fn eval(move: Move, ctx: CommandContext) !CommandStatus {
        _ = move;

        const error_msg = "MOVE command not yet implemented\n";
        var writer = ctx.output_writer;
        try writer.write(error_msg);
        return CommandStatus{ .Code = 1 };
    }
};