hooks

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hooks implements the hook running functionality in tag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(stage HookStage, cmd string, stdout, stderr io.Writer) error

Run runs the hook defined for a given stage, if there is no hook for the given stage, this becomes a no-op.

Types

type HookStage

type HookStage int

HookStage represents a known hook stage in tag.

const (
	StagePreReplace HookStage = iota // Pre Replace
	StagePreCommit                   // Pre Commit
	StagePreTag                      // Pre Tag
	StagePrePush                     // Pre Push
)

func (HookStage) String

func (i HookStage) String() string

Jump to

Keyboard shortcuts

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