Files
bun.sh/src/cli/dev_command.zig
2023-04-19 00:01:27 -07:00

10 lines
367 B
Zig

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