Reorganized things

This commit is contained in:
2025-12-31 22:18:24 +00:00
parent 7af7a30ed2
commit b447883d10
4 changed files with 131 additions and 142 deletions

View File

@@ -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 = .{