summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-01-04 22:34:30 +0200
committerPaul Buetow <paul@buetow.org>2025-01-04 22:34:30 +0200
commit2f337e4924fd0e761b467dd2f81b8253022222c6 (patch)
treef73cda1e8e056d7f4d4c8fc6001aee2b4dbc6426 /cmd
parenta35f0ed04c28d80b902a00c3aec84dd86db34e85 (diff)
add --compose flag
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 c8e94e8..535d609 100644
--- a/cmd/gos/main.go
+++ b/cmd/gos/main.go
@@ -32,6 +32,7 @@ func main() {
lookback := flag.Int("lookback", 30, "How many days look back in time for posting history")
summaryFor := flag.String("summaryFor", "", "Generate a summary in Gemtext format, format is coma separated string of months, e.g. 202410,202411")
gemtexterEnable := flag.Bool("gemtexterEnable", true, "Add special Gemtexter tags to the Gemtext summary")
+ composeEntry := flag.Bool("compose", true, "Compose a new entry")
flag.Parse()
secrets, err := config.NewSecrets(secretsConfigPath)
@@ -52,6 +53,7 @@ func main() {
Secrets: secrets,
OAuth2Browser: *browser,
GemtexterEnable: *gemtexterEnable,
+ ComposeEntry: *composeEntry,
}
if *summaryFor != "" {
args.SummaryFor = strings.Split(*summaryFor, ",")