Help us shape the future of Go! Take the 2026 Go Developer Survey

commit

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 13 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