Documentation ¶
Index ¶
- func WithBorder(box IBox)
- func WithShutdownOnChecked(box StatusCollection)
- type IBox
- type Option
- type Status
- type StatusCollection
- func (s *StatusCollection) GetHeight() int
- func (s *StatusCollection) GetWidth() int
- func (s *StatusCollection) Init() tea.Cmd
- func (s *StatusCollection) IsAllChecked() bool
- func (s *StatusCollection) SetStyle(style *lipgloss.Style)
- func (s *StatusCollection) Shutdown()
- func (s *StatusCollection) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s *StatusCollection) View() string
- type StatusObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBorder ¶
func WithBorder(box IBox)
func WithShutdownOnChecked ¶
func WithShutdownOnChecked(box StatusCollection)
Types ¶
type StatusCollection ¶
type StatusCollection struct { Style lipgloss.Style Spinner spinner.Model Statuses []*StatusObject ShutdownOnChecked bool ShutdownChan chan bool // contains filtered or unexported fields }
func NewStatusCollection ¶
func NewStatusCollection(statuses []*StatusObject, options ...Option) *StatusCollection
func (*StatusCollection) GetHeight ¶
func (s *StatusCollection) GetHeight() int
func (*StatusCollection) GetWidth ¶
func (s *StatusCollection) GetWidth() int
func (*StatusCollection) Init ¶
func (s *StatusCollection) Init() tea.Cmd
func (*StatusCollection) IsAllChecked ¶
func (s *StatusCollection) IsAllChecked() bool
func (*StatusCollection) SetStyle ¶
func (s *StatusCollection) SetStyle(style *lipgloss.Style)
func (*StatusCollection) Shutdown ¶
func (s *StatusCollection) Shutdown()
func (*StatusCollection) View ¶
func (s *StatusCollection) View() string
type StatusObject ¶
type StatusObject struct {
// contains filtered or unexported fields
}
func CreateNewStatus ¶
func CreateNewStatus(statusName string, checkFunc func(*StatusObject)) *StatusObject
func (*StatusObject) AutoSetStatus ¶
func (s *StatusObject) AutoSetStatus()
func (*StatusObject) GetStatus ¶
func (s *StatusObject) GetStatus() Status
func (*StatusObject) GetStatusMessage ¶
func (s *StatusObject) GetStatusMessage(spinnerModel *spinner.Model) string
func (*StatusObject) SetStatus ¶
func (s *StatusObject) SetStatus(status Status)
Click to show internal directories.
Click to hide internal directories.