context

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	ctx.Context
	Out               io.Writer
	Config            config.Uplift
	DryRun            bool
	Debug             bool
	CurrentVersion    semver.Version
	NextVersion       semver.Version
	Prerelease        string
	Metadata          string
	NoVersionChanged  bool
	CommitDetails     git.CommitDetails
	FetchTags         bool
	NextTagOnly       bool
	NoPush            bool
	ChangelogDiff     bool
	ChangelogAll      bool
	ChangelogExcludes []string
	ChangelogSort     string
	ChangelogPreTag   bool
}

Context provides a way to share common state across tasks

func New

func New(cfg config.Uplift, out io.Writer) *Context

New constructs a context that captures both runtime configuration and user defined runtime options

Jump to

Keyboard shortcuts

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