commit

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCommit

func NewCmdCommit(ioStreams genericclioptions.IOStreams, cfg *options.Config) *cobra.Command

NewCmdCommit returns a cobra command for commit msg.

Types

type Option added in v0.12.0

type Option func(*Options)

Option defines a function type for configuring Options

func WithCommitLang added in v0.12.0

func WithCommitLang(lang string) Option

WithCommitLang sets the commit language

func WithCommitPrefix added in v0.12.0

func WithCommitPrefix(prefix string) Option

WithCommitPrefix sets the commit prefix

func WithConfig added in v0.12.0

func WithConfig(cfg *options.Config) Option

WithConfig sets the configuration

func WithFilesToAdd added in v0.12.0

func WithFilesToAdd(files []string) Option

WithFilesToAdd sets the files to add

func WithIOStreams added in v0.12.0

func WithIOStreams(ioStreams genericclioptions.IOStreams) Option

WithIOStreams sets the IO streams

func WithNoConfirm added in v0.12.0

func WithNoConfirm(noConfirm bool) Option

WithNoConfirm sets the noConfirm flag

type Options

type Options struct {
	genericclioptions.IOStreams

	FilesToAdd []string
	// contains filtered or unexported fields
}

func New added in v0.12.0

func New(opts ...Option) *Options

New creates a new Options instance with optional configurations

func (*Options) AutoCommit added in v0.1.9

func (o *Options) AutoCommit(_ *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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