bump

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version string = "2.1.2"
)

Variables

View Source
var (
	ErrStrNoSuchFileOrDirectory      = "no such file or directory"
	ErrStrFileDoesNotExist           = "file does not exist"
	ErrStrReadingConfigFile          = "reading project config file"
	ErrStrParsingConfigFile          = "parsing project config file"
	ErrStrZeroFilesUpdated           = "0 files updated"
	ErrStrRetrievingGpgConfiguration = "retrieving gpg configuration"
	ErrStrValidatingGpgSigningKey    = "validating gpg signing key"
	ErrStrListingDirectoryFiles      = "listing directory files"
	ErrStrDuringConfirmationPrompt   = "during confirmation prompt"

	ErrStrFormattedIncrementingInLangProject        = "incrementing version in %s project"
	ErrStrFormattedReadingAFile                     = "reading a file %v"
	ErrStrFormattedWritingToFile                    = "writing to file %v"
	ErrStrFormattedParsingVersionFromFileAndVersion = "parsing semantic version at file %v from version (%s)"
	ErrStrFormattedBumpingVersion                   = "bumping version %v"
	ErrStrFormattedSettingVersionInFile             = "setting new version on content of a file %v"
	ErrStrFormattedInconsistentVersioning           = "inconsistent versioning: %s"
)
View Source
var (
	GitConfigParser   git.ConfigParserInterface
	GpgEntityAccessor gpg.EntityAccessorInterface
	ReleaseGetter     ReleaseGetterInterface
)

#do better

View Source
var (
	ErrStrResponseHasEmptyTag = "tag name from response was empty"

	ErrStrFormattedUnsuccessfulStatusCode = "status code was not success: %d"
)
View Source
var GhRepoName = "joe-at-startupmedia/version-bump"

Functions

This section is empty.

Types

type Bump

type Bump struct {
	FS  afero.Fs
	Git *git.Instance

	WaitGroup     *sync.WaitGroup
	Configuration Configuration
	// contains filtered or unexported fields
}

func From added in v2.1.2

func From(fs afero.Fs, meta, data billy.Filesystem, dir string) (*Bump, error)

func New

func New(dir string) (*Bump, error)

func (*Bump) Bump

func (b *Bump) Bump(ra *RunArgs) error

func (*Bump) Run added in v2.0.3

func (b *Bump) Run(ra *RunArgs) error

type Configuration

type Configuration []langs.Config

type ReleaseGetterInterface added in v2.1.2

type ReleaseGetterInterface interface {
	Get(string) (*http.Response, error)
}

type RunArgs added in v2.1.0

type RunArgs struct {
	ConfirmationPrompt func(string, string, string) (bool, error)
	PassphrasePrompt   func() (string, error)
	PrereleaseMetadata string
	VersionType        version.Type
	PrereleaseType     version.PrereleaseType
	IsDryRun           bool
}

type VersionsDetected added in v2.1.2

type VersionsDetected stringedMap

func NewVersionDetector added in v2.1.2

func NewVersionDetector() VersionsDetected

func (*VersionsDetected) String added in v2.1.2

func (vd *VersionsDetected) String() string

Jump to

Keyboard shortcuts

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