Documentation
¶
Index ¶
- type Model
- func (m *Model) AppendOutput(line string, isError bool)
- func (m *Model) AppendOutputs(lines []types.OutputLine)
- func (m *Model) ClearOutput()
- func (m Model) GetOutputLines() []string
- func (m Model) GetRawOutputLines() []string
- func (m Model) GetStatus() types.TaskStatus
- func (m Model) GetTaskID() string
- func (m Model) Init() tea.Cmd
- func (m Model) RenderCompact() string
- func (m *Model) SetProgress(current, total int)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetStatus(status types.TaskStatus)
- 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) AppendOutput ¶
AppendOutput 追加输出内容
func (*Model) AppendOutputs ¶ added in v0.0.6
func (m *Model) AppendOutputs(lines []types.OutputLine)
AppendOutputs 批量追加输出内容
func (Model) GetRawOutputLines ¶
GetRawOutputLines 获取未格式化的输出行
Click to show internal directories.
Click to hide internal directories.