Documentation
¶
Overview ¶
Package simple provides a readline-based TUI implementation.
Index ¶
- type Simple
- func (s *Simple) Actions() <-chan ui.UserAction
- func (s *Simple) Cancel() <-chan struct{}
- func (s *Simple) Events() chan<- ui.Event
- func (s *Simple) Input() <-chan ui.UserInput
- func (s *Simple) Run(ctx context.Context) error
- func (s *Simple) SetHintFunc(_ func(string) string)
- func (s *Simple) SetWorkdir(_ string)
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple implements a readline-based TUI.
func (*Simple) Actions ¶
func (s *Simple) Actions() <-chan ui.UserAction
Actions returns the channel for sending UI actions to the assistant.
func (*Simple) Cancel ¶
func (s *Simple) Cancel() <-chan struct{}
Cancel returns the channel for receiving cancel requests.
func (*Simple) SetHintFunc ¶
SetHintFunc is a no-op for the simple UI (hints are TUI-only).
func (*Simple) SetWorkdir ¶
SetWorkdir is a no-op for the simple UI (autocomplete is TUI-only).
Click to show internal directories.
Click to hide internal directories.