@@ -162,37 +162,3 @@ func Commit(cm *Message) {
162162
163163 fmt .Println ("\n ✔ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." )
164164}
165-
166- //func TRun() {
167- //
168- // commitTypes := []TypeMessage{
169- // {Type: consts.FEAT, ZHDescription: "新功能", ENDescription: "Introducing new features"},
170- // {Type: consts.FIX, ZHDescription: "修复 Bug", ENDescription: "Bug fix"},
171- // {Type: consts.DOCS, ZHDescription: "添加文档", ENDescription: "Writing docs"},
172- // {Type: consts.STYLE, ZHDescription: "调整格式", ENDescription: "Improving structure/format of the code"},
173- // {Type: consts.REFACTOR, ZHDescription: "重构代码", ENDescription: "Refactoring code"},
174- // {Type: consts.TEST, ZHDescription: "增加测试", ENDescription: "When adding missing tests"},
175- // {Type: consts.CHORE, ZHDescription: "CI/CD 变动", ENDescription: "Changing CI/CD"},
176- // {Type: consts.PERF, ZHDescription: "性能优化", ENDescription: "Improving performance"},
177- // {Type: consts.EXIT, ZHDescription: "退出", ENDescription: "Exit commit"},
178- // }
179- //
180- // cfg := &gitprompt.SelectConfig{
181- // ActiveTpl: "» {{ .Type | cyan }} ({{ .ENDescription | cyan }})",
182- // InactiveTpl: " {{ .Type | white }} ({{ .ENDescription | white }})",
183- // SelectPrompt: "Commit Type",
184- // SelectedTpl: "{{ \"» Type:\" | green }} {{ .Type }}",
185- // DisPlaySize: 9,
186- // DetailsTpl: `
187- //--------- Commit Type ----------
188- //{{ "Type:" | faint }} {{ .Type }}
189- //{{ "Description:" | faint }} {{ .ZHDescription }}({{ .ENDescription }})`,
190- // }
191- //
192- // s := &gitprompt.Select{
193- // Items: commitTypes,
194- // Config: cfg,
195- // }
196- //
197- // fmt.Println(commitTypes[s.Run()])
198- //}
0 commit comments