aboutsummaryrefslogtreecommitdiff
path: root/src/cli/dev_command.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/dev_command.zig')
-rw-r--r--src/cli/dev_command.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cli/dev_command.zig b/src/cli/dev_command.zig
new file mode 100644
index 000000000..6587309b6
--- /dev/null
+++ b/src/cli/dev_command.zig
@@ -0,0 +1,8 @@
+const Server = @import("../http.zig").Server;
+const Command = @import("../cli.zig").Command;
+
+pub const DevCommand = struct {
+ pub fn exec(ctx: Command.Context) !void {
+ try Server.start(ctx.allocator, ctx.args);
+ }
+};