mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 19:33:32 -04:00
feat: Added -watch flag.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user