Documentation ¶
Index ¶
- type Prompt
- func (p *Prompt) AsString() string
- func (p *Prompt) Blur() *Prompt
- func (p *Prompt) Focus() *Prompt
- func (p *Prompt) GetMode() PromptMode
- func (p *Prompt) GetValue() string
- func (p *Prompt) SetMode(mode PromptMode) *Prompt
- func (p *Prompt) SetValue(value string) *Prompt
- func (p *Prompt) Update(msg tea.Msg) (*Prompt, tea.Cmd)
- func (p *Prompt) View() string
- type PromptMode
- type Renderer
- func (r *Renderer) RenderConfigMessage() string
- func (r *Renderer) RenderContent(in string) string
- func (r *Renderer) RenderError(in string) string
- func (r *Renderer) RenderHelp(in string) string
- func (r *Renderer) RenderHelpMessage() string
- func (r *Renderer) RenderSuccess(in string) string
- func (r *Renderer) RenderWarning(in string) string
- type RunMode
- type Spinner
- type Ui
- type UiComponents
- type UiDimensions
- type UiInput
- type UiState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompt ¶
type Prompt struct {
// contains filtered or unexported fields
}
func NewPrompt ¶
func NewPrompt(mode PromptMode) *Prompt
func (*Prompt) GetMode ¶
func (p *Prompt) GetMode() PromptMode
func (*Prompt) SetMode ¶
func (p *Prompt) SetMode(mode PromptMode) *Prompt
type PromptMode ¶
type PromptMode int
const ( ExecPromptMode PromptMode = iota ConfigPromptMode ChatPromptMode DefaultPromptMode )
func GetPromptModeFromString ¶
func GetPromptModeFromString(s string) PromptMode
func (PromptMode) String ¶
func (m PromptMode) String() string
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(options ...glamour.TermRendererOption) *Renderer
func (*Renderer) RenderConfigMessage ¶
func (*Renderer) RenderContent ¶
func (*Renderer) RenderError ¶
func (*Renderer) RenderHelp ¶
func (*Renderer) RenderHelpMessage ¶
func (*Renderer) RenderSuccess ¶
func (*Renderer) RenderWarning ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func NewSpinner() *Spinner
type UiComponents ¶
type UiComponents struct {
// contains filtered or unexported fields
}
type UiDimensions ¶
type UiDimensions struct {
// contains filtered or unexported fields
}
type UiInput ¶
type UiInput struct {
// contains filtered or unexported fields
}
func NewUIInput ¶
func (*UiInput) GetPromptMode ¶
func (i *UiInput) GetPromptMode() PromptMode
func (*UiInput) GetRunMode ¶
Click to show internal directories.
Click to hide internal directories.