Files
bun.sh/src/cli/dev_command.zig
2021-11-02 18:07:11 -07:00

10 lines
372 B
Zig

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);
}
};