gum/spin/options.go

16 lines
690 B
Go
Raw Normal View History

package spin
import "github.com/charmbracelet/gum/style"
// Options is the customization options for the spin command.
// nolint:staticcheck
type Options struct {
Command []string `arg:"" help:"Command to run"`
2022-08-03 18:28:02 +02:00
ShowOutput bool `help:"Show output of command" default:"false"`
2022-07-20 18:43:37 +02:00
Spinner string `help:"Spinner type" short:"s" type:"spinner" enum:"line,dot,minidot,jump,pulse,points,globe,moon,monkey,meter,hamburger" default:"dot"`
2022-08-03 18:28:02 +02:00
SpinnerStyle style.Styles `embed:"" prefix:"spinner." set:"defaultForeground=212"`
Title string `help:"Text to display to user while spinning" default:"Loading..."`
2022-08-03 18:28:02 +02:00
TitleStyle style.Styles `embed:"" prefix:"title."`
}