bump

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 30 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Version string = "0.1.0"
)

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 = "nidhhoggr/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

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

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

type Configuration

type Configuration []langs.Config

type ReleaseGetterInterface

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

type RunArgs

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

type VersionsDetected stringedMap

func NewVersionDetector

func NewVersionDetector() VersionsDetected

func (*VersionsDetected) String

func (vd *VersionsDetected) String() string

Jump to

Keyboard shortcuts

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