Documentation
¶
Index ¶
- func BorderedBox(title, content string) string
- func ErrorBox(title, message string) string
- func InfoBox(title, message string) string
- func LoadingWithText(text string) string
- func PromptModel(provider string) (string, error)
- func PromptProvider() (string, error)
- func RunLoadingAnimation(text string) (*tea.Program, func())
- func Separator(width int) string
- func ShowAPIKeyHelp(provider string)
- func SuccessBox(title, message string) string
- func Timestamp() string
- func WarningBox(title, message string) string
- type AnimatedProgress
- type FileTable
- type KeyBindings
- type LoadingModel
- type LoadingMsg
- type MarkdownRenderer
- type ProgressModel
- type SpinnerModel
- type StatusBar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorderedBox ¶ added in v0.2.0
BorderedBox creates a bordered box around content
func LoadingWithText ¶ added in v0.2.0
LoadingWithText creates a loading indicator with custom text
func PromptModel ¶ added in v0.2.2
PromptModel prompts the user to select a model for the given provider
func PromptProvider ¶ added in v0.2.2
PromptProvider prompts the user to select an LLM provider
func RunLoadingAnimation ¶
RunLoadingAnimation starts a loading animation and returns a function to stop it
func ShowAPIKeyHelp ¶ added in v0.2.2
func ShowAPIKeyHelp(provider string)
ShowAPIKeyHelp shows helpful information about setting up API keys
func SuccessBox ¶ added in v0.2.0
SuccessBox creates a success box with styled content
func WarningBox ¶ added in v0.2.0
WarningBox creates a warning box with styled content
Types ¶
type AnimatedProgress ¶ added in v0.2.0
type AnimatedProgress struct {
// contains filtered or unexported fields
}
AnimatedProgress represents an animated progress indicator
func NewAnimatedProgress ¶ added in v0.2.0
func NewAnimatedProgress(text string) *AnimatedProgress
NewAnimatedProgress creates a new animated progress
func (*AnimatedProgress) Stop ¶ added in v0.2.0
func (a *AnimatedProgress) Stop()
Stop stops the animation
func (*AnimatedProgress) Tick ¶ added in v0.2.0
func (a *AnimatedProgress) Tick() string
Tick advances the animation
type FileTable ¶ added in v0.2.0
type FileTable struct {
// contains filtered or unexported fields
}
FileTable represents a styled file table
func NewFileTable ¶ added in v0.2.0
func NewFileTable() *FileTable
NewFileTable creates a new file table
type KeyBindings ¶ added in v0.2.0
type KeyBindings struct {
// contains filtered or unexported fields
}
Key bindings display
func NewKeyBindings ¶ added in v0.2.0
func NewKeyBindings() *KeyBindings
NewKeyBindings creates a new key bindings display
func (*KeyBindings) Add ¶ added in v0.2.0
func (kb *KeyBindings) Add(key, description string)
Add adds a key binding
func (*KeyBindings) View ¶ added in v0.2.0
func (kb *KeyBindings) View() string
View renders the key bindings
type LoadingModel ¶
type LoadingModel struct {
// contains filtered or unexported fields
}
LoadingModel represents a loading animation model
func NewLoading ¶
func NewLoading(text string) *LoadingModel
NewLoading creates a new loading animation model
type MarkdownRenderer ¶
type MarkdownRenderer struct {
// contains filtered or unexported fields
}
MarkdownRenderer handles markdown rendering with glamour
func NewMarkdownRenderer ¶
func NewMarkdownRenderer() (*MarkdownRenderer, error)
NewMarkdownRenderer creates a new markdown renderer
func (*MarkdownRenderer) Render ¶
func (r *MarkdownRenderer) Render(markdown string) (string, error)
Render renders markdown text
func (*MarkdownRenderer) RenderResponse ¶
func (r *MarkdownRenderer) RenderResponse(content string) string
RenderResponse renders an LLM response with markdown
type ProgressModel ¶ added in v0.2.0
type ProgressModel struct {
// contains filtered or unexported fields
}
ProgressModel represents a progress bar
func NewProgress ¶ added in v0.2.0
func NewProgress(width, total int, text string) *ProgressModel
NewProgress creates a new progress bar
func (*ProgressModel) Update ¶ added in v0.2.0
func (p *ProgressModel) Update(current int)
Update updates the progress bar
func (*ProgressModel) View ¶ added in v0.2.0
func (p *ProgressModel) View() string
View renders the progress bar
type SpinnerModel ¶
type SpinnerModel struct {
// contains filtered or unexported fields
}
SpinnerModel represents a compact spinner model
type StatusBar ¶ added in v0.2.0
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar represents a status bar
func NewStatusBar ¶ added in v0.2.0
NewStatusBar creates a new status bar