aboutsummaryrefslogtreecommitdiff
path: root/src/cli/dev_command.zig
blob: 91c9fda3dc2c5236182f60936bf1f11751d19e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
const Command = @import("../cli.zig").Command;

pub const DevCommand = struct {
    pub fn exec(ctx: Command.Context) !void {
        if (comptime @import("root").bun.Environment.isWindows) unreachable;

        const Server = @import("../bun_dev_http_server.zig").Server;
        const Global = @import("root").bun.Global;
        Global.configureAllocator(.{ .long_running = true });
        try Server.start(ctx.allocator, ctx.args, @TypeOf(ctx.debug), ctx.debug);
    }
};