gum/spin/options.go
Christian Muehlhaeuser 66993d8ef1
Add soft & hard linter configs & workflows (#44)
* chore: add linter configs & workflows

* fix: ignore certain linter warnings

* fix: mark errors as intentionally ignored

* fix: avoid unnecessary conversion

* fix: handle template/renderer errors

* fix: mark intentionally unused code
2022-07-30 12:32:59 -04:00

15 lines
651 B
Go

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"`
Spinner string `help:"Spinner type" short:"s" 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"`
}