gum/spin/options.go
Maas Lalani 02e925ea57
refactor: use embedded style struct for all lipgloss styling
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.
2022-07-12 16:08:33 -04:00

14 lines
619 B
Go

package spin
import "github.com/charmbracelet/gum/style"
// Options is the customization options for the spin command.
type Options struct {
Command []string `arg:"" help:"Command to run"`
Spinner string `help:"Spinner type" type:"spinner" enum:"line,dot,minidot,jump,pulse,points,globe,moon,monkey,meter,hamburger" default:"dot"`
SpinnerStyle style.Styles `embed:"" prefix:"spinner." set:"defaultForeground=212" set:"name=spinner"`
Title string `help:"Text to display to user while spinning" default:"Loading..."`
TitleStyle style.Styles `embed:"" prefix:"title." set:"name=title"`
}