From 547afd8c0921a7de16f0a5ce8b5d8d09bb2268c8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 26 Feb 2025 15:24:33 +0200 Subject: introduce run interval --- internal/config/args.go | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'internal/config/args.go') 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 { -- cgit v1.2.3