README ¶ /internal/ui/mxspinner mxspinner uses mutex to pass data to the bubbletea model. The task can choose between blocking or non-blocking method when it's passing data to bubbletea model. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Run(init string, f Task) error type Spinner func New(init string, f Task) Spinner func (m Spinner) Init() tea.Cmd func (m Spinner) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m Spinner) View() string type Task Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run(init string, f Task) error Types ¶ type Spinner ¶ type Spinner struct { Error error // error returned from task // contains filtered or unexported fields } func New ¶ func New(init string, f Task) Spinner func (Spinner) Init ¶ func (m Spinner) Init() tea.Cmd func (Spinner) Update ¶ func (m Spinner) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (Spinner) View ¶ func (m Spinner) View() string type Task ¶ type Task func(store *store.Store[string], quit <-chan bool) error Interactive work procedure. Source Files ¶ View all Source files mxspinner.go Click to show internal directories. Click to hide internal directories.