From e735b56a704b7328e7e84def46fd6d248c51e38d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 24 Feb 2025 21:09:14 +0200 Subject: compose mode does not require any secrets --- internal/run.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/run.go') diff --git a/internal/run.go b/internal/run.go index ff25112..ac3f75e 100644 --- a/internal/run.go +++ b/internal/run.go @@ -20,7 +20,7 @@ func run(ctx context.Context, args config.Args) error { return summary.Run(ctx, args) } - if args.ComposeEntry { + if args.ComposeMode { entryPath := fmt.Sprintf("%s/%d.ask.txt", args.GosDir, time.Now().Unix()) if err := prompt.EditFile(entryPath); err != nil { return err @@ -63,9 +63,14 @@ func runPlatform(ctx context.Context, args config.Args, platform platforms.Platf case err != nil: return err } + + if args.ComposeMode { + colour.Infoln("Not posting any entry in compose mode!") + return nil + } + err = platform.Post(ctx, args, sizeLimit, en) if errors.Is(err, prompt.ErrRamdomOther) || errors.Is(err, prompt.ErrDeleted) { - return runPlatform(ctx, args, platform, sizeLimit) } return err -- cgit v1.2.3