actions

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 18 Imported by: 1 module, 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.

README

actions are... cli actions without cobra cli pressence for easy testability

Documentation

Index

Constants

View Source
const (
	InitAdvice string = "activate commit msg hook with `autogit hook activate [--global]`"
)

Variables

This section is empty.

Functions

func About

func About() string

func Changelog

func Changelog(params ChangelogParams, gitw *git.Repository) string

func CommmitMsg

func CommmitMsg(args []string)

func Initialize

func Initialize(init_globally bool)

func Version

func Version(params ActionVersionParams, gitw *git.Repository) types.TagName

gitw - git.NewRepoInWorkDir() for cmd we can overrise with git in memory

Types

type ActionVersionParams

type ActionVersionParams struct {
	VersionParams
	GitActions
}

func (*ActionVersionParams) Bind

func (v *ActionVersionParams) Bind(cmd *cobra.Command)

type ChangelogParams

type ChangelogParams struct {
	VersionParams
	Tag      string
	Validate bool
	Format   string
}

func (*ChangelogParams) Bind

func (v *ChangelogParams) Bind(cmd *cobra.Command)

type GitActions

type GitActions struct {
	Tag  bool
	Push bool
}

type VersionParams

type VersionParams struct {
	semvertype.OptionsSemVer
}

func (*VersionParams) Bind

func (v *VersionParams) Bind(cmd *cobra.Command)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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