summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-28 11:48:25 +0300
committerPaul Buetow <paul@buetow.org>2024-09-28 11:48:25 +0300
commit9dda6355b81f6e6b93fc67d846657a388fcce4b7 (patch)
treec02302ab96885f5238e6a20c215115083f52ff37 /cmd
parent262af22115291863609319b6b0f313873891e15f (diff)
can hit and not hit the target
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 2a457d4..3724f3e 100644
--- a/cmd/gos/main.go
+++ b/cmd/gos/main.go
@@ -19,6 +19,7 @@ func main() {
version := flag.Bool("version", false, "Display version")
gosDir := flag.String("gosDir", "./gosdir", "Gos' directory")
platforms := flag.String("platforms", "Mastodon,LinkedIn", "Platforms enabled")
+ target := flag.Int("target", 2, "How many posts per week are the target?")
lookback := flag.Int("lookback", 30, "How many days look back in time for posting history")
flag.Parse()
@@ -26,6 +27,7 @@ func main() {
DryRun: *dry,
GosDir: *gosDir,
Platforms: strings.Split(*platforms, ","),
+ Target: *target,
Lookback: time.Duration(*lookback) * time.Hour * 24,
}