Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdChange = &cobra.Command{
Use: "changelog",
Short: "Get a kratos change log",
Long: "Get a kratos release or commits info. Example: kratos changelog dev or kratos changelog {version}",
Run: run,
}
CmdChange is kratos change log tool
Functions ¶
func ParseCommitsInfo ¶
func ParseCommitsInfo(info []CommitInfo) string
func ParseGithubURL ¶
func ParseReleaseInfo ¶
func ParseReleaseInfo(info ReleaseInfo) string
Types ¶
type CommitInfo ¶
type CommitInfo struct { Commit struct { Message string `json:"message"` } `json:"commit"` }
type GithubAPI ¶
func (*GithubAPI) GetCommitsInfo ¶
func (g *GithubAPI) GetCommitsInfo() []CommitInfo
GetCommitsInfo for getting kratos commits info.
func (*GithubAPI) GetReleaseInfo ¶
func (g *GithubAPI) GetReleaseInfo(version string) ReleaseInfo
GetReleaseInfo for getting kratos release info.
Click to show internal directories.
Click to hide internal directories.