diff --git a/gitcz.go b/gitcz.go index 3616e38..ebf8be9 100644 --- a/gitcz.go +++ b/gitcz.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "io/ioutil" - "log" "os" "os/exec" "strconv" @@ -98,7 +97,7 @@ func main() { czCommit.Closes = InputCloses() commit := GenerateCommit(czCommit) if err := GitCommit(commit, *amend); err != nil { - log.Println(err) + fmt.Println(err) } } @@ -221,6 +220,7 @@ func InputCloses() *string { NewLine() return &text } + NewLine() return nil } diff --git a/go.mod b/go.mod index bccc8b5..f33c4e8 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/xiaoqidun/gitcz -go 1.17 +go 1.18