mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 03:34:48 +00:00
Reorganized things
This commit is contained in:
@@ -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 = .{
|
||||
|
||||
Reference in New Issue
Block a user