summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/run.go b/internal/run.go
index 3689667..98fb501 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -13,6 +13,7 @@ import (
"codeberg.org/snonux/gos/internal/prompt"
"codeberg.org/snonux/gos/internal/queue"
"codeberg.org/snonux/gos/internal/schedule"
+ "github.com/fatih/color"
)
func Run(ctx context.Context, args config.Args) error {
@@ -60,7 +61,10 @@ func runPlatform(ctx context.Context, args config.Args, platform string, sizeLim
if err := postCB(ctx, args, sizeLimit, ent); err != nil {
return err
}
+ if err := ent.MarkPosted(); err != nil {
+ return err
+ }
- log.Println("Posted", ent, "to", platform)
- return ent.MarkPosted()
+ color.New(color.FgWhite, color.BgGreen).Println("Successfully posted message to ", platform)
+ return nil
}