Documentation ¶
Index ¶
Constants ¶
View Source
const ( INDENTS = 4 LOGLEN = 5 )
Variables ¶
This section is empty.
Functions ¶
func TraverseTreeAndCall ¶
func TraverseTreeAndCall(items []*ProcessTreeItem, callback func(*ProcessTreeItem) error) error
Types ¶
type ProcessTree ¶
type ProcessTree struct {
// contains filtered or unexported fields
}
func NewProcessTree ¶
func NewProcessTree(opts []ProcessTreeOption, tree ...*ProcessTreeItem) (*ProcessTree, error)
func (*ProcessTree) Init ¶
func (pt *ProcessTree) Init() tea.Cmd
func (*ProcessTree) Start ¶
func (pt *ProcessTree) Start() error
func (ProcessTree) View ¶
func (pt ProcessTree) View() string
type ProcessTreeItem ¶
type ProcessTreeItem struct {
// contains filtered or unexported fields
}
func NewProcessTreeItem ¶
func NewProcessTreeItem(textLeft, textRight string, process SpinnerProcess, children ...*ProcessTreeItem) *ProcessTreeItem
type ProcessTreeOption ¶
type ProcessTreeOption func(pt *ProcessTree) error
func IsParallel ¶
func IsParallel(parallel bool) ProcessTreeOption
func WithFailFast ¶
func WithFailFast(failFast bool) ProcessTreeOption
func WithLogger ¶
func WithLogger(l log.Logger) ProcessTreeOption
func WithRenderer ¶
func WithRenderer(norender bool) ProcessTreeOption
func WithVerb ¶
func WithVerb(verb string) ProcessTreeOption
type SpinnerProcess ¶
type SpinnerProcessStatus ¶
type SpinnerProcessStatus uint
const ( StatusPending SpinnerProcessStatus = iota StatusRunning StatusRunningChild StatusRunningButAChildHasFailed StatusFailed StatusFailedChild StatusSuccess )
Click to show internal directories.
Click to hide internal directories.