From 21a5f90ea1187a064fdcc415230561ee47c2cf9a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 1 Nov 2024 11:43:22 +0200 Subject: add colour package --- internal/run.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/run.go') diff --git a/internal/run.go b/internal/run.go index ea20643..d865b2c 100644 --- a/internal/run.go +++ b/internal/run.go @@ -6,6 +6,7 @@ import ( "log" "strings" + "codeberg.org/snonux/gos/internal/colour" "codeberg.org/snonux/gos/internal/config" "codeberg.org/snonux/gos/internal/entry" "codeberg.org/snonux/gos/internal/platforms/linkedin" @@ -13,7 +14,6 @@ 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 { @@ -68,8 +68,7 @@ func runPlatform(ctx context.Context, args config.Args, platform string, sizeLim return err } - // TODO: Put all color definitions into ints own package - color.New(color.FgWhite, color.BgGreen).Println("Successfully posted message to ", platform) + colour.Successf("Successfully posted message to %s", platform) return nil } -- cgit v1.2.3