ui

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProgram

func NewProgram(m Model) *tea.Program

NewProgram creates a new Bubble Tea program with the given model.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewUIModel

func NewUIModel(
	commitMsg, diff, language, promptText, commitType, tmpl string,
	styleReviewSuggestions string,
	enableEmoji bool,
	client ai.AIClient,
	startStreaming bool,
) Model

NewUIModel creates a new TUI model.

func (Model) FullHelp added in v0.3.0

func (m Model) FullHelp() [][]key.Binding

func (Model) GetAIClient added in v0.3.0

func (m Model) GetAIClient() ai.AIClient

GetAIClient returns the AI client stored in the UI model.

func (Model) GetCommitMsg added in v0.3.0

func (m Model) GetCommitMsg() string

GetCommitMsg returns the commit message stored in the UI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is the Bubble Tea initialization command.

func (Model) ShortHelp added in v0.3.0

func (m Model) ShortHelp() []key.Binding

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL