commands

package
v0.0.0-...-832881f Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayCommandError

func DisplayCommandError(err error)

func SetupHookCommitMsgCommand

func SetupHookCommitMsgCommand() *cobra.Command

func SetupHookPostCheckoutCommand

func SetupHookPostCheckoutCommand() *cobra.Command

func SetupHookPostCommitCommand

func SetupHookPostCommitCommand() *cobra.Command

func SetupHookPostMergeCommand

func SetupHookPostMergeCommand() *cobra.Command

func SetupHookPostRewriteCommand

func SetupHookPostRewriteCommand() *cobra.Command

func SetupHookPreCommitCommand

func SetupHookPreCommitCommand() *cobra.Command

func SetupHookPrePushCommand

func SetupHookPrePushCommand() *cobra.Command

func SetupHookPrepareCommitMsgCommand

func SetupHookPrepareCommitMsgCommand() *cobra.Command

Types

type Response

type Response struct {
	// Err is set when the command failed to execute.
	Err error
	// The command that was executed.
	Cmd *cobra.Command
}

func Execute

func Execute([]string) Response

func (Response) IsUserError

func (r Response) IsUserError() bool

Jump to

Keyboard shortcuts

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