Documentation
¶
Index ¶
- func Run(provider, model, sessionID string) error
- func RunWithModel(m *Model) error
- type ContentUpdateMsg
- type ErrorMsg
- type HeaderModel
- type Model
- func (m *Model) Err() error
- func (m Model) Init() tea.Cmd
- func (m *Model) SetContent(content string)
- func (m *Model) SetError(err error)
- func (m *Model) SetProgram(p *tea.Program)
- func (m *Model) SetProgress(current, total int, currentFile string)
- func (m *Model) StartProcessing()
- func (m *Model) StopProcessing()
- func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type ProgressModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithModel ¶
RunWithModel runs the TUI with a pre-configured model
Types ¶
type ContentUpdateMsg ¶
type ContentUpdateMsg string
New messages for overall content update and error reporting
type HeaderModel ¶
type HeaderModel struct {
// contains filtered or unexported fields
}
HeaderModel represents the header component
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the main TUI model
func (*Model) SetContent ¶
SetContent updates the viewport content
func (*Model) SetProgram ¶
SetProgram stores the tea.Program instance on the model. This is crucial for sending messages to the TUI from external goroutines.
func (*Model) SetProgress ¶
SetProgress updates the progress state (overall file progress)
func (*Model) StartProcessing ¶
func (m *Model) StartProcessing()
StartProcessing starts the processing state
func (*Model) StopProcessing ¶
func (m *Model) StopProcessing()
StopProcessing stops the processing state
type ProgressModel ¶
type ProgressModel struct {
// contains filtered or unexported fields
}
ProgressModel represents the progress component
func NewProgressModel ¶
func NewProgressModel() ProgressModel
NewProgressModel creates a new progress model
func (ProgressModel) Init ¶
func (m ProgressModel) Init() tea.Cmd
Init initializes the progress model
func (*ProgressModel) SetProgress ¶
func (m *ProgressModel) SetProgress(current, total int, currentFile string)
SetProgress updates the progress state
func (ProgressModel) Update ¶
func (m ProgressModel) Update(msg tea.Msg) (ProgressModel, tea.Cmd)
Update handles progress model updates