From e0d6d7bea1d16423329859156c90bc62824c0c71 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 21 Jul 2020 17:38:37 -0400 Subject: [PATCH] Use the little green dot from the TUI when stashing on the CLI --- stash.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stash.go b/stash.go index ffb3e87..cc87fb6 100644 --- a/stash.go +++ b/stash.go @@ -9,7 +9,9 @@ import ( "strings" "github.com/charmbracelet/charm" + "github.com/charmbracelet/charm/ui/common" "github.com/mattn/go-runewidth" + "github.com/muesli/termenv" "github.com/spf13/cobra" "golang.org/x/crypto/ssh/terminal" ) @@ -39,7 +41,8 @@ var ( if err != nil { return fmt.Errorf("error stashing markdown") } - fmt.Println("Stashed!") + dot := termenv.String("•").Foreground(common.Green.Color()).String() + fmt.Println(dot + " Stashed!") return nil }, }