app

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 17 Imported by: 0 modules, 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

This section is empty.

Variables

This section is empty.

Functions

func BuildChangelogPipeline added in v0.6.0

func BuildChangelogPipeline(runner port.Runner, cfg *config.Config, resolver versioning.Resolver, opts PipelineOpts) (*pipeline.ChangelogPipeline, error)

BuildChangelogPipeline constructs a ChangelogPipeline from config.

func BuildPipeline

func BuildPipeline(runner port.Runner, cfg *config.Config, resolver versioning.Resolver, opts PipelineOpts) (*pipeline.Pipeline, error)

BuildPipeline constructs a release Pipeline from config. All generator and platform instances are created here — none are created in internal/cmd/.

func CheckCliff added in v0.6.0

func CheckCliff(runner port.Runner, driver *config.ContentDriver, mode string) error

CheckCliff runs git-cliff --context --no-exec against the effective merged config for the given content driver. mode must be "changelog" or "release-notes". Returns nil if git-cliff accepts the config.

func CurrentTag added in v0.4.0

func CurrentTag(runner port.Runner, cfg *config.Config, env string) (string, error)

CurrentTag returns the latest existing git tag for the given strategy and environment. For single-env strategies, env is ignored. For per-env strategies, env is required.

func EffectiveCliffConfig added in v0.6.0

func EffectiveCliffConfig(driver *config.ContentDriver, mode string) (string, error)

EffectiveCliffConfig returns the effective merged git-cliff TOML for the given content driver and mode ("changelog" or "release-notes").

If driver is nil or has no generator set, the embedded default TOML is returned. Returns an error if driver.Generator is set to something other than "git-cliff".

func NewResolver

func NewResolver(cfg *config.Config, env string, force bool, versionOverride string, runner port.Runner) (versioning.Resolver, error)

NewResolver builds the appropriate versioning.Resolver from config. env is the active environment name (empty for non-per-env strategies). force is the --force flag value. versionOverride is set when --version X.Y.Z is passed.

func PreflightCheck added in v0.6.0

func PreflightCheck(runner port.Runner) error

PreflightCheck verifies git binary availability and git user name/email. Called automatically before heraut release and heraut changelog.

Types

type PipelineOpts

type PipelineOpts struct {
	DryRun          bool
	Force           bool
	VersionOverride string
	Env             string
	Out             io.Writer
	// Commit and Tag are used by the changelog pipeline only.
	Commit bool
	Tag    bool
}

PipelineOpts carries runtime options for building a pipeline.

type RuntimeCheckItem added in v0.6.0

type RuntimeCheckItem struct {
	Name string
	Err  error
}

RuntimeCheckItem records the outcome of one runtime check.

func RuntimeCheck added in v0.6.0

func RuntimeCheck(runner port.Runner, cfg *config.Config) []RuntimeCheckItem

RuntimeCheck verifies all runtime dependencies: git binary, configured generator and platform CLIs (including token env vars), and git user name/email.

Jump to

Keyboard shortcuts

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