Documentation
¶
Overview ¶
Package headless provides a UI that prints events to stdout without user input.
Index ¶
- type Headless
- func (h *Headless) Actions() <-chan ui.UserAction
- func (h *Headless) Cancel() <-chan struct{}
- func (h *Headless) Events() chan<- ui.Event
- func (h *Headless) Input() <-chan ui.UserInput
- func (h *Headless) Run(ctx context.Context) error
- func (h *Headless) SetHintFunc(_ func(string) string)
- func (h *Headless) SetWorkdir(_ string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headless ¶
type Headless struct {
// contains filtered or unexported fields
}
Headless prints events to stdout without readline input.
func (*Headless) Actions ¶
func (h *Headless) Actions() <-chan ui.UserAction
Actions returns nil (headless has no user actions).
func (*Headless) Cancel ¶
func (h *Headless) Cancel() <-chan struct{}
Cancel returns nil (headless has no cancel mechanism).
func (*Headless) SetHintFunc ¶
SetHintFunc is a no-op for headless.
func (*Headless) SetWorkdir ¶
SetWorkdir is a no-op for headless.
Click to show internal directories.
Click to hide internal directories.