summaryrefslogtreecommitdiff
path: root/src/cmd/ver.zig
blob: 7ff0c6025b4f424c7eb4a7452cab3085adaafe01 (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 Ver = struct {
    pub fn eval(ver: Ver, ctx: CommandContext) !CommandStatus {
        _ = ver;

        const output = "MB-DOSE Version 6.22\n";
        var writer = ctx.output_writer;
        try writer.write(output);
        return CommandStatus{ .Code = 0 };
    }
};