cmd

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 19 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 ExitCode added in v0.8.0

func ExitCode(err error) int

ExitCode maps the error returned from command execution to a process exit code (see Spec 01 — Exit codes). cmd/heraut passes the error from forge/cli.Run here to decide os.Exit's argument.

func NewChangelogCmd added in v0.6.0

func NewChangelogCmd() *cobra.Command

NewChangelogCmd constructs the `heraut changelog` command.

func NewCheckCmd added in v0.6.0

func NewCheckCmd() *cobra.Command

NewCheckCmd constructs the `heraut check` parent command. When called without a subcommand it runs config + runtime + cliff checks.

func NewCliffCmd added in v0.6.0

func NewCliffCmd() *cobra.Command

NewCliffCmd constructs the `heraut cliff` parent command.

func NewCommitCmd added in v0.40.0

func NewCommitCmd() *cobra.Command

NewCommitCmd constructs the `heraut commit` parent command and its subcommands.

func NewInitCmd added in v0.7.0

func NewInitCmd(version string) *cobra.Command

NewInitCmd constructs the `heraut init` command.

func NewReleaseCmd added in v0.3.0

func NewReleaseCmd() *cobra.Command

NewReleaseCmd constructs the `heraut release` command.

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

NewRootCmd constructs the root heraut command.

func NewVersionCmd added in v0.4.0

func NewVersionCmd() *cobra.Command

NewVersionCmd constructs the `heraut version` parent command and its subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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