actions

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

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