INNER CODE UNIT · Go
NewBatch
miniscruff/changie · cmd/batch.go:49
func NewBatch(
timeNow core.TimeNow,
templateCache *core.TemplateCache,
) *Batch {
b := &Batch{
TimeNow: timeNow,
TemplateCache: templateCache,
}
cmd := &cobra.Command{
Use: "batch version|major|minor|patch|auto",
Short: "Batch unreleased changes into a single changelog",
Long: `Merges all unreleased changes into one version changelog.
Batch takes one argument for the next version to use, below are possible options.
* A specific semantic version value, with optional prefix
* Major, minor or patch to bump one level by one