README ¶ /internal/ui/chspinner chspinner uses channel to pass data to the bubbletea model. The channel size is 1 so the performance may be restricted. 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(up chan<- string, quit <-chan bool) error Interactive work procedure. Source Files ¶ View all Source files chspinner.go Click to show internal directories. Click to hide internal directories.