commit

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

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

func New

func New(appConfig *config.AppConfig) Commit

func (Commit) GetRootCmd

func (c Commit) GetRootCmd() *cobra.Command

type Committer added in v0.11.3

type Committer interface {
	Authors(ctx context.Context) ([]string, error)
	Commit(ctx context.Context, msg []byte, opts git.CommitOptions) error
	CurrentBranch() (string, error)
}

Committer is the subset of *git.Client the commit command consumes: load the author list for the form, detect the current branch for the issue-hint prefill, and write the commit. Declared here (the consuming package) rather than in package git so the command owns its git surface and tests can substitute a fake — mirrors the pruner / BranchClient pattern elsewhere in cmd/.

Jump to

Keyboard shortcuts

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