Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoConfigFile = errors.New("config file not found") ErrNoNewVersion = errors.New("no new version specified") )
View Source
var EXIT_CODE_NO_NEW_VERSION = 8
Functions ¶
func NewRootCmd ¶
Types ¶
type Tagger ¶
type Tagger struct {
ConfigFile string `koanf:"config"`
// DryRun will cause tag to print, but not execute, any actions.
DryRun bool `koanf:"dry-run"`
// GitEmail is the email provided for the git tags
GitEmail string `koanf:"git-email" validate:"required"`
// GitName is the name provided for the git tags
GitName string `koanf:"git-name" validate:"required"`
// TagMajor, if set to True, will create a major-version tag (e.g. v0, v1)
// that points to the same commit as the full tag.
TagMajor bool `koanf:"tag-major"`
// Version is the tag that is to be created.
Version string `koanf:"version" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.