Files
bun.sh/src/cli/dev_command.zig
2022-11-29 02:42:56 -08:00

10 lines
362 B
Zig

const Server = @import("../http.zig").Server;
const Command = @import("../cli.zig").Command;
const Global = @import("bun").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);
}
};