Documentation
¶
Index ¶
- type LogEntry
- type Model
- func (m *Model) AppendLog(taskID, line string, isError bool)
- func (m *Model) AppendLogs(taskID string, lines []types.OutputLine)
- func (m *Model) ClearLogs()
- func (m Model) GetLogCount() int
- func (m Model) Init() tea.Cmd
- func (m Model) IsAutoScroll() bool
- func (m *Model) NextTask()
- func (m *Model) PrevTask()
- func (m *Model) RegisterTask(taskID, taskName string)
- func (m Model) RenderCompact(lines int) string
- func (m Model) RenderWithTitle(title string) string
- func (m *Model) SetSize(width, height int)
- func (m *Model) ToggleAutoScroll()
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model 终端组件模型 - 用于展示实时日志输出
func (*Model) AppendLogs ¶ added in v0.0.6
func (m *Model) AppendLogs(taskID string, lines []types.OutputLine)
AppendLogs 批量追加日志条目
func (*Model) RegisterTask ¶
RegisterTask 注册任务名称映射
func (Model) RenderCompact ¶
RenderCompact 紧凑模式渲染(只显示最后几行)
func (Model) RenderWithTitle ¶
RenderWithTitle 带标题渲染
Click to show internal directories.
Click to hide internal directories.