cmd

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewHookCmd added in v0.10.0

func NewHookCmd(a App) *cobra.Command

func NewRootCmd

func NewRootCmd(a App) *cobra.Command

func NewVersionCmd added in v0.2.2

func NewVersionCmd() *cobra.Command

Types

type App added in v0.5.0

type App struct {
	Commiter Commiter
	UIer     UIer
	Logger   Logger
	Writer   io.Writer
	Hooker   Hooker
	// contains filtered or unexported fields
}

func NewApp added in v0.5.0

func NewApp() App

type Commiter added in v0.5.0

type Commiter interface {
	Configure(opts commit.Options) (*commit.State, error)
	Apply(req *commit.Request) error
}

type Hooker added in v0.10.0

type Hooker interface {
	Do(opts hook.Options) error
}

type Logger added in v0.5.0

type Logger interface {
	Fatalf(format string, v ...any)
}

type Options added in v0.10.0

type Options struct {
	Hook bool
}

type UIer added in v0.5.0

type UIer interface {
	Configure(cfg *commit.State)
	Start() (*commit.Request, error)
}

Jump to

Keyboard shortcuts

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