diff options
| -rw-r--r-- | src/main.zig | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |