skip

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package skip can skip an entire Action.

Mostly taken from goreleaser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maybe

func Maybe(skipper interface{}, next middleware.Action) middleware.Action

Maybe returns an action that skips immediately if the given p is a Skipper and its Skip method returns true.

Types

type ErrSkipper

type ErrSkipper interface {
	// Skip returns true if the step should be skipped.
	Skip(ctx *config.Context) (bool, error)
	fmt.Stringer
}

Skipper defines a method to skip an entire step.

type Skipper

type Skipper interface {
	// Skip returns true if the step should be skipped.
	Skip(ctx *config.Context) bool
	fmt.Stringer
}

Skipper defines a method to skip an entire step.

Jump to

Keyboard shortcuts

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