cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version FullVersion) error

Types

type FullVersion

type FullVersion struct {
	Version string
	Commit  string
	Date    string
	BuiltBy string
}

func (FullVersion) ToString

func (v FullVersion) ToString() string

type ParserOptions added in v0.4.0

type ParserOptions struct {
	Dir                   string `long:"dir" default:"." description:"The git worktree directory"`
	Fallback              string `long:"fallback" description:"The first version to fallback to should there be no tag"`
	DropPrefix            bool   `long:"drop-prefix" description:"Drop prefix from output"`
	PrereleaseSuffix      string `long:"prerelease-suffix" description:"Suffix to add to prereleases"`
	PrereleasePrefix      string `long:"prerelease-prefix" default:"dev" description:"Prefix to use as start of prerelease"`
	PrereleaseTimestamped bool   `long:"prerelease-timestamped" description:"Use timestamp instead of commit count for prerelease"`
	NextRelease           string `long:"next-release" description:"Bump current version to next release" choice:"major" choice:"minor" choice:"patch"`
	Format                string `long:"format" description:"Format of output (use <version> as placeholder)"`
}

Jump to

Keyboard shortcuts

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