From cbf61974bfef49445a699f9933f7a4783a7ef9ea Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 14 Dec 2019 00:11:29 +0100 Subject: [PATCH] Move ANSIRenderer into a separate package --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c4e0060..7855c2e 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,7 @@ import ( "github.com/spf13/cobra" "github.com/charmbracelet/gold" + "github.com/charmbracelet/gold/ansi" ) var ( @@ -126,7 +127,7 @@ func execute(cmd *cobra.Command, args []string) error { u.Path = filepath.Dir(u.Path) } - r, err := gold.NewTermRenderer(style, gold.Options{ + r, err := gold.NewTermRenderer(style, ansi.Options{ BaseURL: u.String() + "/", WordWrap: int(width), })