multispinner

package
v1.3.2-Beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiSpinner

type MultiSpinner struct {
	// contains filtered or unexported fields
}

Spinner is a component that displays a spinner while updating the logs

func CreateSpinner

func CreateSpinner(processList []string, cancel func()) MultiSpinner

func (MultiSpinner) Init

func (s MultiSpinner) Init() tea.Cmd

Init is called when the program starts and returns the initial command

func (MultiSpinner) Update

func (s MultiSpinner) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles incoming messages

func (MultiSpinner) View

func (s MultiSpinner) View() string

View renders the UI

type ProcessState

type ProcessState struct {
	Icon   string
	State  string
	Type   string
	Name   string
	Detail string
	Done   bool
}

type ProcessStateMap

type ProcessStateMap struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL