diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-04 22:34:30 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-04 22:34:30 +0200 |
| commit | 2f337e4924fd0e761b467dd2f81b8253022222c6 (patch) | |
| tree | f73cda1e8e056d7f4d4c8fc6001aee2b4dbc6426 /cmd | |
| parent | a35f0ed04c28d80b902a00c3aec84dd86db34e85 (diff) | |
add --compose flag
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 2 |
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, ",") |
