Documentation
¶
Overview ¶
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
Index ¶
Constants ¶
const ( INDENTS = 4 LOGLEN = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessTree ¶
type ProcessTree struct {
// contains filtered or unexported fields
}
func NewProcessTree ¶
func NewProcessTree(ctx context.Context, 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
func (*ProcessTreeItem) Close ¶ added in v0.4.2
func (pti *ProcessTreeItem) Close() error
func (*ProcessTreeItem) Fd ¶ added in v0.4.2
func (pti *ProcessTreeItem) Fd() int
type ProcessTreeOption ¶
type ProcessTreeOption func(pt *ProcessTree) error
func IsParallel ¶
func IsParallel(parallel bool) ProcessTreeOption
func WithFailFast ¶
func WithFailFast(failFast bool) ProcessTreeOption
func WithHideOnSuccess ¶ added in v0.7.0
func WithHideOnSuccess(hide bool) 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 )