summaryrefslogtreecommitdiff
path: root/internal/config/args.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-26 15:24:33 +0200
committerPaul Buetow <paul@buetow.org>2025-02-26 15:24:33 +0200
commit547afd8c0921a7de16f0a5ce8b5d8d09bb2268c8 (patch)
tree8490aee787d4c6f9b3e025b67d888a5367def91e /internal/config/args.go
parente735b56a704b7328e7e84def46fd6d248c51e38d (diff)
introduce run interval
Diffstat (limited to 'internal/config/args.go')
-rw-r--r--internal/config/args.go33
1 files changed, 17 insertions, 16 deletions
diff --git a/internal/config/args.go b/internal/config/args.go
index e2b9dc1..d1a23b9 100644
--- a/internal/config/args.go
+++ b/internal/config/args.go
@@ -9,22 +9,23 @@ import (
)
type Args struct {
- GosDir string
- CacheDir string
- DryRun bool
- Platforms map[string]int // Platform and post size limits
- Target int
- MinQueued int
- MaxDaysQueued int
- PauseDays int
- Lookback time.Duration
- SecretsConfigPath string
- Secrets Secrets
- OAuth2Browser string
- GeminiSummaryFor []string
- GemtexterEnable bool
- GeminiCapsules []string
- ComposeMode bool
+ GosDir string
+ CacheDir string
+ DryRun bool
+ Platforms map[string]int // Platform and post size limits
+ Target int
+ MinQueued int
+ MaxDaysQueued int
+ PauseDays int
+ RunInterval time.Duration
+ Lookback time.Duration
+ ConfigPath string
+ Config Config
+ OAuth2Browser string
+ GeminiSummaryFor []string
+ GemtexterEnable bool
+ GeminiCapsules []string
+ ComposeMode bool
}
func (a *Args) ParsePlatforms(platformStrs string) error {