gum/style/command.go

15 lines
287 B
Go
Raw Normal View History

package style
import (
"fmt"
"strings"
)
// Run provides a shell script interface for the Lip Gloss styling.
// https://github.com/charmbracelet/lipgloss
func (o Options) Run() error {
2022-07-07 19:26:35 +02:00
text := strings.Join(o.Text, "\n")
fmt.Println(o.Style.ToLipgloss().Render(text))
return nil
}