Documentation
¶
Index ¶
- func RootCmd() *cobra.Command
- type Batch
- func (b *Batch) ClearUnreleased(changes []core.Change, otherFiles ...string) error
- func (b *Batch) Run(cmd *cobra.Command, args []string) (err error)
- func (b *Batch) WriteChanges(changes []core.Change) error
- func (b *Batch) WriteTemplate(template string, beforeNewlines int, afterNewlines int, templateData any) error
- func (b *Batch) WriteTemplateFile(relativePath string, beforeNewlines int, afterNewlines int, templateData any) error
- type CoreTypes
- type Diff
- type FieldProps
- type Gen
- type Init
- type Latest
- type Merge
- type New
- type Next
- type TypeProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶ added in v1.13.0
type Batch struct {
*cobra.Command
// CLI args
OldHeaderPath string // deprecated but still supported until 2.0
VersionHeaderPath string
KeepFragments bool
RemovePrereleases bool
Project string
MoveDir string
IncludeDirs []string
DryRun bool
Prerelease []string
Meta []string
Force bool
AllowNoChanges bool
// Dependencies
TimeNow core.TimeNow
TemplateCache *core.TemplateCache
// contains filtered or unexported fields
}
func NewBatch ¶ added in v1.13.0
func NewBatch( timeNow core.TimeNow, templateCache *core.TemplateCache, ) *Batch
func (*Batch) ClearUnreleased ¶ added in v1.13.0
func (*Batch) WriteChanges ¶ added in v1.13.0
func (*Batch) WriteTemplate ¶ added in v1.13.0
type FieldProps ¶ added in v1.8.0
type Latest ¶ added in v1.13.0
type Merge ¶ added in v1.13.0
type Merge struct {
*cobra.Command
// cli args
DryRun bool
UnreleasedHeader string
// dependencies
TemplateCache *core.TemplateCache
}
func NewMerge ¶ added in v1.13.0
func NewMerge(templateCache *core.TemplateCache) *Merge
type New ¶ added in v1.13.0
type New struct {
*cobra.Command
// cli args
DryRun bool
Projects []string
Component string
Kind string
Body string
BodyEditor bool
Custom []string
Interactive bool
// dependencies
TimeNow core.TimeNow
TemplateCache *core.TemplateCache
}
Click to show internal directories.
Click to hide internal directories.