mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Use the little green dot from the TUI when stashing on the CLI
This commit is contained in:
parent
f611b6e71f
commit
e0d6d7bea1
1 changed files with 4 additions and 1 deletions
5
stash.go
5
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
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue