Documentation
¶
Index ¶
- type App
- type DefaultApp
- type DefaultGitService
- func (g *DefaultGitService) DiffCommit(ref string, diffOptions git.DiffOptions) (git.DiffResult, error)
- func (g *DefaultGitService) DiffRefs(refFrom string, refTo string, diffOptions git.DiffOptions) (git.DiffResult, error)
- func (g *DefaultGitService) DiffStaged(diffOptions git.DiffOptions) (git.DiffResult, error)
- type DefaultLLMService
- type DefaultTUIService
- type DefaultTextFormatService
- type GitService
- type LLMService
- type TUIService
- type TextFormatService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
Git() GitService
TUI() TUIService
LLM() LLMService
Format() TextFormatService
}
func NewDefaultApp ¶
func NewDefaultApp() App
type DefaultApp ¶
type DefaultApp struct {
// contains filtered or unexported fields
}
func (*DefaultApp) Format ¶
func (a *DefaultApp) Format() TextFormatService
func (*DefaultApp) Git ¶
func (a *DefaultApp) Git() GitService
func (*DefaultApp) LLM ¶
func (a *DefaultApp) LLM() LLMService
func (*DefaultApp) TUI ¶
func (a *DefaultApp) TUI() TUIService
type DefaultGitService ¶
type DefaultGitService struct{}
func (*DefaultGitService) DiffCommit ¶
func (g *DefaultGitService) DiffCommit(ref string, diffOptions git.DiffOptions) (git.DiffResult, error)
func (*DefaultGitService) DiffRefs ¶
func (g *DefaultGitService) DiffRefs(refFrom string, refTo string, diffOptions git.DiffOptions) (git.DiffResult, error)
func (*DefaultGitService) DiffStaged ¶
func (g *DefaultGitService) DiffStaged(diffOptions git.DiffOptions) (git.DiffResult, error)
type DefaultLLMService ¶
type DefaultLLMService struct{}
func (*DefaultLLMService) NewClient ¶
func (l *DefaultLLMService) NewClient(provider llm.LLMProvider, opts llm.LLMClientOptions) (llm.LLMClient, error)
type DefaultTUIService ¶
type DefaultTUIService struct{}
func (*DefaultTUIService) InitialModel ¶
func (c *DefaultTUIService) InitialModel(opts ui.InitialModelOptions) ui.ChatTUIModel
func (*DefaultTUIService) Run ¶
func (c *DefaultTUIService) Run(model ui.ChatTUIModel) (returnModel tea.Model, returnErr error)
type DefaultTextFormatService ¶
type DefaultTextFormatService struct{}
func (*DefaultTextFormatService) FormatMarkdown ¶
func (l *DefaultTextFormatService) FormatMarkdown(text string) (string, error)
type GitService ¶
type GitService interface {
DiffStaged(diffOptions git.DiffOptions) (git.DiffResult, error)
DiffRefs(refFrom string, refTo string, diffOptions git.DiffOptions) (git.DiffResult, error)
DiffCommit(ref string, diffOptions git.DiffOptions) (git.DiffResult, error)
}
type LLMService ¶
type LLMService interface {
NewClient(provider llm.LLMProvider, opts llm.LLMClientOptions) (llm.LLMClient, error)
}
type TUIService ¶
type TUIService interface {
InitialModel(opts ui.InitialModelOptions) ui.ChatTUIModel
Run(model ui.ChatTUIModel) (returnModel tea.Model, returnErr error)
}
type TextFormatService ¶
Click to show internal directories.
Click to hide internal directories.