diff options
| author | Paul Buetow <paul@buetow.org> | 2024-11-08 22:48:51 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-11-08 22:48:51 +0200 |
| commit | 7a63e78baf3fe9f769ad4a0569baf8ca71363cfe (patch) | |
| tree | d696caa20f94e8c05a8619240428cffb94fdf85d /cmd | |
| parent | e9142b9d7a2faf5c7dc5b13a621d3a216bce8e54 (diff) | |
can download preview image for linkedin
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 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, } |
