@@ -10,7 +10,8 @@ import (
1010 "github.com/manifoldco/promptui"
1111)
1212
13- // AskForCommit wesh
13+ // AskForCommit ask if the user wants to commit
14+ // and return true if so
1415func AskForCommit () bool {
1516 prompt := promptui.Select {
1617 Label : "Do you want to commit ? [Yes/No]" ,
@@ -31,7 +32,7 @@ func getDescriptions(config jsonMapping.CommitConfig) []string {
3132 return res
3233}
3334
34- // AskForCommit wesh
35+ // AskCommitType ask which kind of commit the user wants
3536func AskCommitType (config jsonMapping.CommitConfig ) string {
3637 descriptions := getDescriptions (config )
3738 prompt := promptui.Select {
@@ -46,7 +47,8 @@ func AskCommitType(config jsonMapping.CommitConfig) string {
4647 return config .Rules [index ].Prefix
4748}
4849
49- // AskForCommit wesh
50+ // AskForCommit ask if the user wants to create a sample file
51+ // and return true if so
5052func AskForCreate () bool {
5153 prompt := promptui.Select {
5254 Label : "No .commit.json found. Do you want to create a simple one ? [Yes/No]" ,
@@ -59,7 +61,7 @@ func AskForCreate() bool {
5961 return result == "Yes"
6062}
6163
62- // AskMessage is blabla
64+ // AskMessage ask the user which message he wants to commits and return it
6365func AskMessage () string {
6466
6567 validate := func (input string ) error {
0 commit comments