Documentation ¶
Index ¶
- Variables
- func Indent(str string, n int) string
- func Run(ctx context.Context, p *tea.Program) (context.Context, error)
- type App
- type DebugComponent
- type DebugView
- type HelpModel
- type MessageFilter
- type OnRenderFunc
- type OnScriptEventMsg
- type RenderModelMsg
- type ScriptComponent
- type Spinner
- type UpdateEntry
- type UpdateHistory
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StepStyle = lipgloss.NewStyle().Foreground(ComplementaryColor) DebugViewBorderStyle = lipgloss.NewStyle().Border(lipgloss.RoundedBorder(), false, false, false, true).BorderForeground(SecondaryColor) )
View Source
var ( SpinnerStyle = lipgloss.NewStyle() ProgressMessageStyle = lipgloss.NewStyle() PrimaryColor = lipgloss.AdaptiveColor{Light: "#0b3954", Dark: "#239be2"} ComplementaryColor = lipgloss.AdaptiveColor{Light: "#df9a0a", Dark: "#e2c923"} SecondaryColor = lipgloss.AdaptiveColor{Light: "#087e8b", Dark: "#31e0f3"} )
Functions ¶
Types ¶
type App ¶
type DebugComponent ¶
type DebugComponent struct { SC *ScriptComponent Debug debug.Controller DebugView *DebugView UpdateHistory *UpdateHistory }
func NewDebugComponent ¶
func NewDebugComponent(s debug.Controller, sc *ScriptComponent) *DebugComponent
func (*DebugComponent) Init ¶
func (d *DebugComponent) Init() tea.Cmd
func (*DebugComponent) View ¶
func (d *DebugComponent) View() string
type DebugView ¶
type DebugView struct { Inst engine.Instruction ActionData *engine.TemplateData Width int Height int // contains filtered or unexported fields }
type HelpModel ¶
type MessageFilter ¶
func DefaultUpdateFilter ¶
func DefaultUpdateFilter() MessageFilter
type OnRenderFunc ¶
type OnRenderFunc func(id string)
type OnScriptEventMsg ¶
func (OnScriptEventMsg) String ¶
func (o OnScriptEventMsg) String() string
type RenderModelMsg ¶
func (RenderModelMsg) String ¶
func (r RenderModelMsg) String() string
type ScriptComponent ¶
type ScriptComponent struct { Stream renderer.Stream ScriptEvents engine.EventQueue OnRenderFunc OnRenderFunc Logger *slog.Logger // visual components Child tea.Model Spinner *Spinner ProgressMessage string DefaultProgressMessage string // contains filtered or unexported fields }
func NewScriptComponent ¶
func NewScriptComponent(accountName string, str renderer.Stream, eq engine.EventQueue, logger *slog.Logger) *ScriptComponent
func (*ScriptComponent) Init ¶
func (s *ScriptComponent) Init() tea.Cmd
func (*ScriptComponent) View ¶
func (s *ScriptComponent) View() string
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func NewSpinner() *Spinner
type UpdateEntry ¶
func (*UpdateEntry) String ¶
func (e *UpdateEntry) String() string
type UpdateHistory ¶
type UpdateHistory struct { Limit int UpdateHistory []*UpdateEntry MessageFilter MessageFilter Style lipgloss.Style }
func NewUpdateHistory ¶
func NewUpdateHistory(limit int) *UpdateHistory
func (*UpdateHistory) Init ¶
func (u *UpdateHistory) Init() tea.Cmd
func (*UpdateHistory) View ¶
func (u *UpdateHistory) View() string
Click to show internal directories.
Click to hide internal directories.