summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-24 21:09:14 +0200
committerPaul Buetow <paul@buetow.org>2025-02-24 21:09:14 +0200
commite735b56a704b7328e7e84def46fd6d248c51e38d (patch)
tree34c2bf458d6d0a136439d6891afe490eac64faa3 /internal/run.go
parente957564316024f6412399015d2e8a7861e05ec82 (diff)
compose mode does not require any secrets
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go9
1 files changed, 7 insertions, 2 deletions
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