diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-11 23:09:28 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-11 23:09:28 +0200 |
| commit | 121d2877cc7ed0aaf0bbe5c57b86abba982b0441 (patch) | |
| tree | 46893a05b71aaf6b25e971adda6126ae766eae7b /cmd | |
| parent | 0f5ecb2715876d05bed8e54d7bd30754e57bcdc4 (diff) | |
initial summary support
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go index 3a6971a..3c6d613 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -7,6 +7,7 @@ import ( "log" "os" "path/filepath" + "strings" "time" "codeberg.org/snonux/gos/internal" @@ -29,6 +30,7 @@ func main() { maxDaysQueued := flag.Int("maxDaysQueued", 365, "Maximum days worth of queued posts until target++ and pauseDays--") 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") + summaryFor := flag.String("summaryFor", "", "Generate a summary in Gemtext format, format is coma separated string of months, e.g. 202410,202411") flag.Parse() secrets, err := config.NewSecrets(secretsConfigPath) @@ -48,6 +50,7 @@ func main() { CacheDir: *cacheDir, Secrets: secrets, OAuth2Browser: *browser, + SummaryFor: strings.Split(*summaryFor, ","), } if err := args.ParsePlatforms(*platforms); err != nil { |
