splitter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 12 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 for the splitter UI.

Types

type Model

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

Model represents the state of the interactive splitter.

func NewSplitterModel

func NewSplitterModel(chunks []git.DiffChunk, client *gogpt.Client) Model

NewSplitterModel creates a new splitter model with the given diff chunks and OpenAI client.

func (Model) Init

func (m Model) Init() tea.Cmd

Init is the initialization function for the splitter.

func (Model) Update

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

Update updates the splitter model based on incoming messages.

func (Model) View

func (m Model) View() string

View renders the splitter UI based on the current state.

Jump to

Keyboard shortcuts

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