summaryrefslogtreecommitdiff
path: root/src/cmd/ver.zig
blob: c9ba4c3fdde20ccfa763dcb4cac2f7aa566bc337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 Ver = struct {
    pub fn eval(ver: Ver, ctx: CommandContext) !CommandStatus {
        _ = ver;

        const output =
            \\
            \\MB-DOS Version 6.22
            \\    (C)Copyright Mulkrosoft Corp 1985-1925.
            \\
            \\
        ;
        var writer = ctx.output_writer;
        try writer.write(output);
        return CommandStatus{ .Code = 0 };
    }
};