feat: Added -watch flag.

This commit is contained in:
Spencer Brower
2026-07-14 12:48:38 -04:00
parent f48cc242a4
commit 91606a2223
4 changed files with 32 additions and 8 deletions
+4
View File
@@ -21,6 +21,7 @@ Site :: struct {
params: json.Value,
sectionate: bool,
drafts: bool `args:"name=drafts"`,
watch: bool
}
init_site :: proc(site: ^Site, args: []string) {
@@ -98,6 +99,9 @@ site_merge :: proc(config: ^Site, flags: Site) {
if flags.drafts {
config.drafts = true
}
if flags.watch {
config.watch = true
}
config.config_path = flags.config_path
}