debug

package
v0.0.0-...-6dcb528 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFail

func NewFail(appIO io.IO, conf *configuration.Configuration, repo git.Repo) hooks.Action

func NewSuccess

func NewSuccess(appIO io.IO, conf *configuration.Configuration, repo git.Repo) hooks.Action

Types

type Debug

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

func (*Debug) IsApplicableFor

func (a *Debug) IsApplicableFor(hook string) bool

func (*Debug) Run

func (a *Debug) Run(action *configuration.Action) error

type Fail

type Fail struct{}

Fail is a debug action to output the original hook args and fail the hook execution

Example configuration:

{
  "run": "CaptainHook::Debug.Fail"
}

type Success

type Success struct{}

Success is a debug action to output args and opts not failing the hook execution

Example configuration:

{
  "run": "CaptainHook::Debug.Success",
  "option": {
    "foo": "bar"
  }
}

Jump to

Keyboard shortcuts

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