summaryrefslogtreecommitdiff
path: root/internal/platforms/mastodon
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-11-08 23:04:51 +0200
committerPaul Buetow <paul@buetow.org>2024-11-08 23:04:51 +0200
commit5ee4d7a6020e32159e735ff9e5b38be5da6bfe9c (patch)
treecabe16c43c3ffa4a6f55c2c3095b30bfc809aa9f /internal/platforms/mastodon
parent9b14c12e0ccd5c96dd9f17d1b20fe134308d2184 (diff)
dont use logger but color outputter
Diffstat (limited to 'internal/platforms/mastodon')
-rw-r--r--internal/platforms/mastodon/mastodon.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/platforms/mastodon/mastodon.go b/internal/platforms/mastodon/mastodon.go
index b6645f8..c0264de 100644
--- a/internal/platforms/mastodon/mastodon.go
+++ b/internal/platforms/mastodon/mastodon.go
@@ -6,10 +6,10 @@ import (
"encoding/json"
"fmt"
"io"
- "log"
"net/http"
"time"
+ "codeberg.org/snonux/gos/internal/colour"
"codeberg.org/snonux/gos/internal/config"
"codeberg.org/snonux/gos/internal/entry"
"codeberg.org/snonux/gos/internal/prompt"
@@ -28,7 +28,7 @@ func Post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry)
return fmt.Errorf("failed to marshal payload: %w", err)
}
if args.DryRun {
- log.Println("Not posting", en, "to Mastodon as dry-run enabled")
+ colour.Infoln("Not posting", en, "to Mastodon as dry-run enabled")
return nil
}
if err := prompt.FileAction("Do you want to post this message to Mastodon?", content, en.Path); err != nil {