summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-28 11:02:37 +0300
committerPaul Buetow <paul@buetow.org>2024-09-28 11:02:37 +0300
commit6865389682c865717bb28f19943c09d0610a7981 (patch)
tree43356c5d709977aca65ebb51d7ec4dfe122fc28b /cmd
parentb8c5cb42095cf9406e3e4330aefee5063bf00bea (diff)
add lookback time
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gos/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go
index 67f3351..1248239 100644
--- a/cmd/gos/main.go
+++ b/cmd/gos/main.go
@@ -19,12 +19,14 @@ func main() {
version := flag.Bool("version", false, "Display version")
gosDir := flag.String("gosDir", "./gosdir", "Gos' directory")
platforms := flag.String("platforms", "Mastodon,LinkedIn", "Platforms enabled")
+ lookback := flag.Int("lookback", 30, "How many days look back in time for posting history")
flag.Parse()
args := config.Args{
DryRun: *dry,
GosDir: *gosDir,
Platforms: strings.Split(*platforms, ","),
+ Lookback: time.Duration(*lookback) * time.Hour * 24,
}
if *version {