From 7a63e78baf3fe9f769ad4a0569baf8ca71363cfe Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 8 Nov 2024 22:48:51 +0200 Subject: can download preview image for linkedin --- cmd/gos/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/gos/main.go b/cmd/gos/main.go index 8e9e4e8..774dd13 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -22,6 +22,8 @@ func main() { browser := flag.String("browser", "firefox", "OAuth2 browser") secretsConfigPath := filepath.Join(os.Getenv("HOME"), ".config/gos/gosec.json") secretsConfigPath = *flag.String("secretsConfig", secretsConfigPath, "Gos' secret config") + cacheDir := filepath.Join(os.Getenv("HOME"), ".config/gos/cache") + cacheDir = *flag.String("cacheDir", cacheDir, "Go's cache dir") 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!") @@ -45,6 +47,7 @@ func main() { PauseDays: *pauseDays, Lookback: time.Duration(*lookback) * time.Hour * 24, SecretsConfigPath: secretsConfigPath, + CacheDir: cacheDir, Secrets: secrets, OAuth2Browser: *browser, } -- cgit v1.2.3