Documentation
¶
Index ¶
- Variables
- func NewSessionScreen(s ssh.Session) (tcell.Screen, error)
- type A
- type Chat
- func (c *Chat) Init() error
- func (c *Chat) InputBlockedEnd(e *am.Event)
- func (c *Chat) InputBlockedState(e *am.Event)
- func (c *Chat) InterruptedEnd(e *am.Event)
- func (c *Chat) InterruptedState(e *am.Event)
- func (c *Chat) MsgEnter(e *am.Event) bool
- func (c *Chat) MsgState(e *am.Event)
- func (c *Chat) PromptState(e *am.Event)
- func (c *Chat) RequestingEnd(e *am.Event)
- func (c *Chat) RequestingState(e *am.Event)
- func (c *Chat) UIButtonInttState(e *am.Event)
- func (c *Chat) UIButtonSendState(e *am.Event)
- func (c *Chat) UICleanOutputState(e *am.Event)
- type Clock
- type S
- type Stories
- type StoriesHandlers
- type Tui
- func (t *Tui) BindHandlers() error
- func (t *Tui) Init(screen tcell.Screen, name string, stories *Stories, clock *Clock, chat *Chat) error
- func (t *Tui) InitComponents()
- func (t *Tui) Logger() *slog.Logger
- func (t *Tui) Mach() *am.Machine
- func (t *Tui) Redraw()
- func (t *Tui) Start(dispose func() error) error
- func (t *Tui) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ParseArgs = shared.ParseArgs
View Source
var Pass = shared.Pass
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) InputBlockedEnd ¶ added in v0.2.0
func (*Chat) InputBlockedState ¶ added in v0.2.0
func (*Chat) InterruptedEnd ¶ added in v0.2.0
func (*Chat) InterruptedState ¶ added in v0.2.0
func (*Chat) PromptState ¶
func (*Chat) RequestingEnd ¶
func (*Chat) RequestingState ¶
func (*Chat) UIButtonInttState ¶ added in v0.2.0
func (*Chat) UIButtonSendState ¶ added in v0.2.0
func (*Chat) UICleanOutputState ¶ added in v0.2.0
type Clock ¶ added in v0.2.0
func (*Clock) DisposingState ¶ added in v0.2.0
type Stories ¶ added in v0.2.0
type Stories struct {
// contains filtered or unexported fields
}
func NewStories ¶ added in v0.2.0
func NewStories(tui *Tui, buttons []shared.StoryAction, stories []shared.StoryInfo, cfg *shared.Config) *Stories
NewStories returns a new TUI dedicated to showing stories and their progress (as buttons).
func (*Stories) AddAction ¶ added in v0.4.0
func (s *Stories) AddAction(button shared.StoryAction) error
func (*Stories) ClearActions ¶ added in v0.4.0
func (s *Stories) ClearActions()
ClearActions replaces the whole button view with a new one. This method CANT be called while rendering, as replacing flexview items will deadlock.
func (*Stories) ReplaceStoriesEnd ¶ added in v0.4.0
func (*Stories) ReplaceStoriesState ¶ added in v0.4.0
func (*Stories) ReqReplaceStoriesState ¶ added in v0.4.0
type StoriesHandlers ¶ added in v0.2.0
type StoriesHandlers struct {
// contains filtered or unexported fields
}
StoriesHandlers are handlers for the agent's machine from the Stories TUI.
func (*StoriesHandlers) UICleanOutputState ¶ added in v0.2.0
func (h *StoriesHandlers) UICleanOutputState(e *am.Event)
type Tui ¶ added in v0.4.0
func (*Tui) BindHandlers ¶ added in v0.4.0
BindHandlers binds transition handlers to the state machine. Overwrite it to bind methods from a subclass.
func (*Tui) InitComponents ¶ added in v0.4.0
func (t *Tui) InitComponents()
Click to show internal directories.
Click to hide internal directories.