v2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleModel

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

ConsoleModel is the top-level Bubbletea model for the console command.

func NewConsoleModel

func NewConsoleModel(commits []*model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig, themeArg any, _ string, runFn RunChangeratorFn) ConsoleModel

NewConsoleModel creates a new ConsoleModel and runs the changerator on the first commit.

func (ConsoleModel) Init

func (m ConsoleModel) Init() tea.Cmd

Init implements tea.Model.

func (ConsoleModel) Update

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

Update implements tea.Model.

func (ConsoleModel) View

func (m ConsoleModel) View() tea.View

View implements tea.Model.

type PanelFocus

type PanelFocus int

PanelFocus tracks which panel currently has focus.

const (
	FocusCommitTable PanelFocus = iota
	FocusTree
	FocusDiff
	FocusCodeModal
	FocusReportModal
)

type RunChangeratorFn

type RunChangeratorFn func(commit *model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error)

RunChangeratorFn is the function signature for running the changerator. This is injected from the cmd package to avoid import cycles.

Jump to

Keyboard shortcuts

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