match

package
v0.0.0-...-beb088b Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package match provides an interactive TUI for matching git authors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, repoPath string, editMode bool, allBranches bool) error

Run starts the interactive matching TUI and returns created matches. The TUI handles saving internally when the user presses 's' or confirms save on quit. If editMode is true, starts in edit mode to modify existing matches.

Types

type Model

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

Model is the TUI model for interactive author matching.

func NewModel

func NewModel(ctx context.Context, repoPath string, authorList []*authors.Author) *Model

NewModel creates a new match TUI model.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init implements tea.Model.

func (*Model) IsAutoMatch

func (m *Model) IsAutoMatch(i int) bool

IsAutoMatch returns true if the match at index i was auto-suggested.

func (*Model) Matches

func (m *Model) Matches() []authors.AuthorGroup

Matches returns the created matches from the session.

func (*Model) Update

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

Update implements tea.Model.

func (*Model) View

func (m *Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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