action

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithReleaseParams

func ContextWithReleaseParams(ctx context.Context, segment semver.Segment, comment string) context.Context

ContextWithReleaseParams returns a new context that has input parameters for Release action.

func ContextWithSpec

func ContextWithSpec(ctx context.Context, s spec.Spec) context.Context

ContextWithSpec returns a new context that has a copy of spec.

func ReleaseParamsFromContext

func ReleaseParamsFromContext(ctx context.Context) (segment semver.Segment, comment string)

ReleaseParamsFromContext retrieves input parameters for Release action from a context. If a parameter is not found, a default value will be returned.

func SpecFromContext

func SpecFromContext(ctx context.Context) spec.Spec

SpecFromContext returns a copy of spec from context. If no spec found, a default (zero) spec will be returned.

Types

type Action

type Action interface {
	Dry(context.Context) error
	Run(context.Context) error
	Revert(context.Context) error
}

Action is an ordered list of steps that can be reverted.

func NewBuild

func NewBuild(ui cui.CUI, workDir string, s spec.Spec) Action

NewBuild creates an instance of Build action.

func NewRelease

func NewRelease(ui cui.CUI, workDir, githubToken string, s spec.Spec) Action

NewRelease creates an instance of Release action.

func NewUpdate

func NewUpdate(ui cui.CUI, githubToken string) Action

NewUpdate creates an instance of Update action.

Jump to

Keyboard shortcuts

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