From be80c2023cbe984bd0337e4c24a6a07e3ab263ba Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 6 Oct 2025 18:02:52 +0200 Subject: rename genMdCmd, simply to mdCmd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- src/main.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index f2f9443..9a588a9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -152,7 +152,9 @@ const Cli = struct { if (std.mem.eql(u8, arg, "gen")) { try Cli.genCmd(ctx); } else if (std.mem.eql(u8, arg, "md")) { - try Cli.genMdCmd(ctx); + try Cli.mdCmd(ctx); + } else if (std.mem.eql(u8, arg, "watch")) { + try Cli.watchCmd(ctx); } else { return Cli.helpCmd(ctx); } @@ -168,7 +170,7 @@ const Cli = struct { try gen.generate(ctx); } - fn genMdCmd(ctx: *Context) !void { + fn mdCmd(ctx: *Context) !void { try index(ctx); try exe.runPandoc(ctx); } -- cgit 1.4.1