Documentation
¶
Index ¶
- func Build() *cli.Command
- func Bump() *cli.Command
- func Changelog() *cli.Command
- func CheckForExistingTags(ctx context.Context, repoDir, tagPrefix string) (bool, error)
- func CheckGitClean(ctx context.Context, repoDir string, allowDirty bool) error
- func Docker() *cli.Command
- func Init() *cli.Command
- func NoTagsError(tagPrefix, initialVersion string) error
- func Validate() *cli.Command
- func ValidateRequirements(ctx context.Context, repoDir string) error
- func Version() *cli.Command
- type ForgeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bump ¶
Bump returns the bump command that creates and optionally pushes a git tag. This is the primary version management command.
func CheckForExistingTags ¶
CheckForExistingTags checks if any version tags exist
func CheckGitClean ¶
CheckGitClean checks if the git working directory has uncommitted changes
func NoTagsError ¶
NoTagsError returns an error for when no version tags are found
func ValidateRequirements ¶
ValidateRequirements checks for forge.yaml and git repository. This should be called for commands that require these dependencies.
Types ¶
type ForgeError ¶
ForgeError represents a user friendly error with actionable suggestions
func (*ForgeError) Error ¶
func (e *ForgeError) Error() string
Click to show internal directories.
Click to hide internal directories.