Documentation ¶
Index ¶
- Constants
- func GlobalAction(c *cli.Context) error
- func GlobalAfterAction(c *cli.Context) error
- func GlobalBeforeAction(c *cli.Context) error
- func GlobalFlag() []cli.Flag
- func HideGlobalFlag() []cli.Flag
- func MainFlag() []cli.Flag
- type ChangeLogGenerator
- func (c *ChangeLogGenerator) ChangeLogInit(cfg GenerateConfig, spec *convention.ConventionalChangeLogSpec) error
- func (c *ChangeLogGenerator) ChangeVersion() error
- func (c *ChangeLogGenerator) CheckRepository() error
- func (c *ChangeLogGenerator) CheckWorktreeDirty() error
- func (c *ChangeLogGenerator) DoChangeRepoFileByCommitLog() error
- func (c *ChangeLogGenerator) DoGitOperator() error
- func (c *ChangeLogGenerator) DryRun()
- func (c *ChangeLogGenerator) DryRunChangeVersion()
- func (c *ChangeLogGenerator) GenerateCommitAsMdNodes() error
- func (c *ChangeLogGenerator) GetGitRemoteInfo() git_info.GitRemoteInfo
- func (c *ChangeLogGenerator) GetHeadBranchName() string
- func (c *ChangeLogGenerator) GetHistoryFirstTagName() string
- func (c *ChangeLogGenerator) GetLatestCommits() []git.Commit
- func (c *ChangeLogGenerator) LoadRepository(gitCloneUrl, remote string) error
- type ChangeLogGeneratorFunc
- type GenerateConfig
- type GlobalCommand
- type GlobalConfig
Constants ¶
View Source
const ( KitName = "convention-change-log" KitUrl = "https://github.com/convention-change/convention-change-log" LogLineSpe = "---" )
Variables ¶
This section is empty.
Functions ¶
func GlobalAfterAction ¶
func GlobalAfterAction(c *cli.Context) error
GlobalAfterAction
do command Action after flag global.
func GlobalBeforeAction ¶
func GlobalBeforeAction(c *cli.Context) error
GlobalBeforeAction do command Action before flag global.
func HideGlobalFlag ¶
func HideGlobalFlag() []cli.Flag
Types ¶
type ChangeLogGenerator ¶ added in v1.8.0
type ChangeLogGenerator struct { ChangeLogGeneratorFunc `json:"-"` // contains filtered or unexported fields }
func NewChangeLogGenerator ¶ added in v1.8.0
func NewChangeLogGenerator(rootPath string) *ChangeLogGenerator
func (*ChangeLogGenerator) ChangeLogInit ¶ added in v1.8.0
func (c *ChangeLogGenerator) ChangeLogInit(cfg GenerateConfig, spec *convention.ConventionalChangeLogSpec) error
func (*ChangeLogGenerator) ChangeVersion ¶ added in v1.10.0
func (c *ChangeLogGenerator) ChangeVersion() error
func (*ChangeLogGenerator) CheckRepository ¶ added in v1.8.0
func (c *ChangeLogGenerator) CheckRepository() error
func (*ChangeLogGenerator) CheckWorktreeDirty ¶ added in v1.8.1
func (c *ChangeLogGenerator) CheckWorktreeDirty() error
func (*ChangeLogGenerator) DoChangeRepoFileByCommitLog ¶ added in v1.8.0
func (c *ChangeLogGenerator) DoChangeRepoFileByCommitLog() error
func (*ChangeLogGenerator) DoGitOperator ¶ added in v1.8.0
func (c *ChangeLogGenerator) DoGitOperator() error
func (*ChangeLogGenerator) DryRun ¶ added in v1.8.0
func (c *ChangeLogGenerator) DryRun()
func (*ChangeLogGenerator) DryRunChangeVersion ¶ added in v1.10.0
func (c *ChangeLogGenerator) DryRunChangeVersion()
func (*ChangeLogGenerator) GenerateCommitAsMdNodes ¶ added in v1.8.0
func (c *ChangeLogGenerator) GenerateCommitAsMdNodes() error
func (*ChangeLogGenerator) GetGitRemoteInfo ¶ added in v1.8.0
func (c *ChangeLogGenerator) GetGitRemoteInfo() git_info.GitRemoteInfo
func (*ChangeLogGenerator) GetHeadBranchName ¶ added in v1.8.0
func (c *ChangeLogGenerator) GetHeadBranchName() string
func (*ChangeLogGenerator) GetHistoryFirstTagName ¶ added in v1.8.0
func (c *ChangeLogGenerator) GetHistoryFirstTagName() string
func (*ChangeLogGenerator) GetLatestCommits ¶ added in v1.8.0
func (c *ChangeLogGenerator) GetLatestCommits() []git.Commit
func (*ChangeLogGenerator) LoadRepository ¶ added in v1.8.0
func (c *ChangeLogGenerator) LoadRepository(gitCloneUrl, remote string) error
LoadRepository load git repository info
type ChangeLogGeneratorFunc ¶ added in v1.8.0
type ChangeLogGeneratorFunc interface { LoadRepository(gitCloneUrl, remote string) error CheckRepository() error CheckWorktreeDirty() error GetHeadBranchName() string GetGitRemoteInfo() git_info.GitRemoteInfo ChangeLogInit(cfg GenerateConfig, spec *convention.ConventionalChangeLogSpec) error GetHistoryFirstTagName() string GetLatestCommits() []git.Commit GenerateCommitAsMdNodes() error DryRun() DoChangeRepoFileByCommitLog() error DoGitOperator() error DryRunChangeVersion() ChangeVersion() error }
type GenerateConfig ¶
type GlobalCommand ¶
type GlobalCommand struct { Name string Version string Verbose bool DryRun bool GitRootPath string GitRemote string ChangeLogSpec *convention.ConventionalChangeLogSpec RootCfg GlobalConfig GenerateConfig GenerateConfig }
GlobalCommand
command root
func CmdGlobalEntry ¶
func CmdGlobalEntry() *GlobalCommand
CmdGlobalEntry
return global command entry
type GlobalConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.