summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-28 10:59:09 +0300
committerPaul Buetow <paul@buetow.org>2025-08-28 10:59:09 +0300
commitdb3a5f331a161626acb2926ccc66665d11a9468e (patch)
tree87db81c7379e7ecf9b91c1bf3f1ce6d9087db65a
parent24691b6e87074abb84b46fd9d5e916c803bf168d (diff)
adjusting defaults
-rw-r--r--internal/main.go19
1 files changed, 4 insertions, 15 deletions
diff --git a/internal/main.go b/internal/main.go
index de90179..33bdce5 100644
--- a/internal/main.go
+++ b/internal/main.go
@@ -10,7 +10,6 @@ import (
"time"
"codeberg.org/snonux/gos/internal/config"
- "codeberg.org/snonux/gos/internal/table"
)
func Main(composeModeDefault bool) {
@@ -23,27 +22,17 @@ func Main(composeModeDefault bool) {
configPath := filepath.Join(os.Getenv("HOME"), ".config/gos/gos.json")
configPath = *flag.String("configPath", configPath, "Gos' config file path")
platforms := flag.String("platforms", "Mastodon:500,LinkedIn:1000,Noop:2000", "Platforms enabled plus their post size limits")
- target := flag.Int("target", 2, "How many posts per week are the target?")
- minQueued := flag.Int("minQueued", 4, "Minimum of queued items until printing a warn message!")
+ target := flag.Int("target", 4, "How many posts per week are the target?")
+ minQueued := flag.Int("minQueued", 10, "Minimum of queued items until printing a warn message!")
maxDaysQueued := flag.Int("maxDaysQueued", 1000, "Maximum days worth of queued posts until target++ and pauseDays--")
- pauseDays := flag.Int("pauseDays", 2, "How many days until next post can be posted?")
+ pauseDays := flag.Int("pauseDays", 1, "How many days until next post can be posted?")
runInterval := flag.Int("runInterval", 6, "How many hours to wait for the next run.")
- lookback := flag.Int("lookback", 30, "How many days look back in time for posting history")
+ lookback := flag.Int("lookback", 90, "How many days look back in time for posting history")
geminiSummaryFor := flag.String("geminiSummaryFor", "", "Generate a summary in Gemini Gemtext format, format is coma separated string of months, e.g. 202410,202411")
geminiCapsules := flag.String("geminiCapsules", "foo.zone", "Comma sepaeated list Gemini capsules. Used by geminiEnable to detect Gemtext links")
gemtexterEnable := flag.Bool("gemtexterEnable", false, "Add special Gemtexter (the static site generator) tags to the Gemini Gemtext summary")
- dev := flag.Bool("dev", false, "For internal development purposes only")
flag.Parse()
- if *dev {
- table.New().
- Header("foo", "bar", "baz", 3).
- Row("hans", "wurst", "klo", 3.3).
- Row("Klopapier", "Hans", "Wurst", 7).
- MustRender()
- os.Exit(0)
- }
-
conf, err := config.New(configPath, *composeMode)
if err != nil {
log.Fatal(err)