From b447883d106f0ac427b0b0a00a8015be8eb4730c Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 31 Dec 2025 22:18:24 +0000 Subject: Reorganized things --- src/main.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index b0588eb..42a4d34 100644 --- a/src/main.zig +++ b/src/main.zig @@ -44,7 +44,11 @@ pub fn main() !void { const pub_cmd = app.createCommand("pub", "Publish a message."); try zits_app.addSubcommand(pub_cmd); - const matches = try app.parseProcess(); + var io_impl: std.Io.Threaded = .init_single_threaded; + defer io_impl.deinit(); + const io = io_impl.io(); + + const matches = try app.parseProcess(io); if (matches.subcommandMatches("serve")) |serve_matches| { var info: zits.Server.ServerInfo = .{ -- cgit