context

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 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
	NoVersionChanged bool
	CommitDetails    git.CommitDetails
	FetchTags        bool
	NextTagOnly      bool
	NoPush           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