diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-31 23:09:54 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-31 23:09:54 +0200 |
| commit | c2b3c4f6e4d40c49d55deb5b696bb3cb8cdde531 (patch) | |
| tree | 1f83f75bf085dc1b02e7562cfcb759f4d8c6486c /cmd | |
| parent | 1c143f2e4faeb803f5f7c96f29c1ef447a0b2097 (diff) | |
intial warning when there aren't enough queued
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go index 4926bf0..af5a619 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -26,6 +26,7 @@ func main() { secretsConfigPath = *flag.String("secretsConfig", secretsConfigPath, "Gos' secret config") platforms := flag.String("platforms", "Mastodon:500,LinkedIn:1000", "Platforms enabled plus their post size limits") target := flag.Int("target", 2, "How many posts per week are the target?") + minQueued := flag.Int("minQueued", 4, "Minimum of queued items until printing a warn message!") pauseDays := flag.Int("pauseDays", 3, "How many days until next post can be posted?") lookback := flag.Int("lookback", 30, "How many days look back in time for posting history") flag.Parse() @@ -40,6 +41,7 @@ func main() { GosDir: *gosDir, Platforms: make(map[string]int), Target: *target, + MinQueued: *minQueued, // TODO: Document PauseDays: *pauseDays, Lookback: time.Duration(*lookback) * time.Hour * 24, SecretsConfigPath: secretsConfigPath, |
