diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-09 11:25:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-09 11:25:49 +0300 |
| commit | 6622cc6402df56dd416e3ca3894d5b208fa26077 (patch) | |
| tree | d49582c4bb2216000b01ea7d8eb2ef37ba784977 /cmd | |
| parent | fba8665dcc22d11f8ac7b7583701951dc4d9544f (diff) | |
can re-use access token for linkedin oauth
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 5b98386..6ea4995 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -20,6 +20,7 @@ func main() { dry := flag.Bool("dry", false, "Dry run") version := flag.Bool("version", false, "Display version") gosDir := flag.String("gosDir", "./gosdir", "Gos' directory") + 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") platforms := flag.String("platforms", "Mastodon,LinkedIn", "Platforms enabled") @@ -40,6 +41,7 @@ func main() { Lookback: time.Duration(*lookback) * time.Hour * 24, SecretsConfigPath: secretsConfigPath, Secrets: secrets, + OAuth2Browser: *browser, } if err := args.Validate(); err != nil { |
