Documentation ¶
Index ¶
- type DemoScreen
- func (s *DemoScreen) AddMenuItem(id, label string, action MenuAction) *DemoScreen
- func (s *DemoScreen) AddStatusItem(id, label string) *DemoScreen
- func (s *DemoScreen) AddStreamPair(title string, stdout, stderr <-chan string)
- func (s *DemoScreen) Run() error
- func (s *DemoScreen) Stop()
- func (s *DemoScreen) UpdateStatusItem(id, msg string, ok bool) *DemoScreen
- type MenuAction
- type Severity
- type StackedTextViews
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DemoScreen ¶
type DemoScreen struct {
// contains filtered or unexported fields
}
func NewDemoScreen ¶
func NewDemoScreen() *DemoScreen
func (*DemoScreen) AddMenuItem ¶
func (s *DemoScreen) AddMenuItem(id, label string, action MenuAction) *DemoScreen
func (*DemoScreen) AddStatusItem ¶
func (s *DemoScreen) AddStatusItem(id, label string) *DemoScreen
func (*DemoScreen) AddStreamPair ¶
func (s *DemoScreen) AddStreamPair(title string, stdout, stderr <-chan string)
func (*DemoScreen) Run ¶
func (s *DemoScreen) Run() error
func (*DemoScreen) Stop ¶
func (s *DemoScreen) Stop()
func (*DemoScreen) UpdateStatusItem ¶
func (s *DemoScreen) UpdateStatusItem(id, msg string, ok bool) *DemoScreen
type MenuAction ¶
type MenuAction func()
type StackedTextViews ¶
type StackedTextViews struct {
// contains filtered or unexported fields
}
func NewStackedTextViews ¶
func NewStackedTextViews() *StackedTextViews
func (*StackedTextViews) AddStatusItem ¶
func (s *StackedTextViews) AddStatusItem(label string, updates <-chan *Status) *StackedTextViews
func (*StackedTextViews) AddStdView ¶
func (s *StackedTextViews) AddStdView( label string, stdout, stderr <-chan string, updates <-chan *Status, ) *StackedTextViews
func (*StackedTextViews) Run ¶
func (s *StackedTextViews) Run() error
func (*StackedTextViews) Stop ¶
func (s *StackedTextViews) Stop()
Click to show internal directories.
Click to hide internal directories.