commit

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommitMessage

func CheckCommitMessage(args []string)

func Commit

func Commit(cm *Message)

提交

func GenSOB

func GenSOB() string

生成 SOB 签名

func InputBody

func InputBody() string

输入完整提交信息

func InputFooter

func InputFooter() string

输入提交关联信息

func InputScope

func InputScope() string

输入影响范围

func InputSubject

func InputSubject() string

输入提交主题

func SelectCommitType

func SelectCommitType() consts.CommitType

选择提交类型

Types

type Message

type Message struct {
	Type    consts.CommitType
	Scope   string
	Subject string
	Body    string
	Footer  string
	Sob     string
}

type TypeMessage

type TypeMessage struct {
	Type          consts.CommitType
	ZHDescription string
	ENDescription string
}

Jump to

Keyboard shortcuts

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