mirror of
https://github.com/charmbracelet/gum
synced 2024-06-09 01:02:17 +02:00
02e925ea57
This commit uses the embedded style struct for styling in all components. The most notable example is `gum write` where there are many styles that are used and composed for each component of the command.
14 lines
269 B
Go
14 lines
269 B
Go
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() {
|
|
text := strings.Join(o.Text, "\n")
|
|
fmt.Println(o.Style.ToLipgloss().Render(text))
|
|
}
|