diff options
| author | Paul Buetow <paul@buetow.org> | 2024-11-01 11:43:22 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-11-01 11:44:51 +0200 |
| commit | 21a5f90ea1187a064fdcc415230561ee47c2cf9a (patch) | |
| tree | d4c0ce22ba310d1229ae2149ab24e108ade99362 /internal/run.go | |
| parent | 8e5def8c2e3e4ff347b1f60eb5f6007dae1bbd0a (diff) | |
add colour package
Diffstat (limited to 'internal/run.go')
| -rw-r--r-- | internal/run.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 } |
