commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() *cli.Command

Build returns the build command that builds binaries for multiple platforms.

func Bump

func Bump() *cli.Command

Bump returns the bump command that creates and optionally pushes a git tag. This is the primary version management command.

func Changelog

func Changelog() *cli.Command

Changelog returns the changelog command

func CheckForExistingTags

func CheckForExistingTags(ctx context.Context, repoDir, tagPrefix string) (bool, error)

CheckForExistingTags checks if any version tags exist

func CheckGitClean

func CheckGitClean(ctx context.Context, repoDir string, allowDirty bool) error

CheckGitClean checks if the git working directory has uncommitted changes

func Docker

func Docker() *cli.Command

Docker returns the docker command that builds and optionally pushes Docker images.

func Init

func Init() *cli.Command

Init returns the init command that initializes a new forge.yaml configuration file.

func NoTagsError

func NoTagsError(tagPrefix, initialVersion string) error

NoTagsError returns an error for when no version tags are found

func Validate

func Validate() *cli.Command

Validate returns the validate command that checks forge.yaml and git state

func ValidateRequirements

func ValidateRequirements(ctx context.Context, repoDir string) error

ValidateRequirements checks for forge.yaml and git repository. This should be called for commands that require these dependencies.

func Version

func Version() *cli.Command

Version returns the version command that prints the current version based on the last valid git tag.

Types

type ForgeError

type ForgeError struct {
	Title       string
	Description string
	Suggestions []string
}

ForgeError represents a user friendly error with actionable suggestions

func (*ForgeError) Error

func (e *ForgeError) Error() string

Jump to

Keyboard shortcuts

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