From 121d2877cc7ed0aaf0bbe5c57b86abba982b0441 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 11 Dec 2024 23:09:28 +0200 Subject: initial summary support --- internal/run.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/run.go') diff --git a/internal/run.go b/internal/run.go index c0d8234..b3e4a1c 100644 --- a/internal/run.go +++ b/internal/run.go @@ -10,9 +10,14 @@ import ( "codeberg.org/snonux/gos/internal/prompt" "codeberg.org/snonux/gos/internal/queue" "codeberg.org/snonux/gos/internal/schedule" + "codeberg.org/snonux/gos/internal/summary" ) func Run(ctx context.Context, args config.Args) error { + if len(args.SummaryFor) > 0 { + return summary.Run(ctx, args) + } + if err := queue.Run(args); err != nil { if !softError(err) { return err -- cgit v1.2.3