aboutsummaryrefslogtreecommitdiff
path: root/src/cli/dev_command.zig
blob: 46c4a0e3cd739f08881f81061feab8b2aee5e2f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
const Server = @import("../http.zig").Server;
const Command = @import("../cli.zig").Command;
const Global = @import("../global.zig").Global;
pub const DevCommand = struct {
    pub fn exec(ctx: Command.Context) !void {
        Global.configureAllocator(.{ .long_running = true });
        try Server.start(ctx.allocator, ctx.args, @TypeOf(ctx.debug), ctx.debug);
    }
};