summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-12-31 22:18:24 +0000
committerRobby Zambito <contact@robbyzambito.me>2026-01-01 05:22:02 +0000
commitb447883d106f0ac427b0b0a00a8015be8eb4730c (patch)
treed8d46d8ed960d84b7d16b99adabb443c9499b885 /src/main.zig
parent7af7a30ed21663d510d368d0f936b08285bf092b (diff)
Reorganized things
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 5 insertions, 1 deletions
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 = .{