mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2024-11-23 07:56:46 +08:00
feat(替换函数): 使用新函数替换废弃函数
This commit is contained in:
parent
85015449ca
commit
8aad2018ff
3
gitcz.go
3
gitcz.go
@ -5,7 +5,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -116,7 +115,7 @@ func NewLine() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GitCommit(commit string, amend bool, sign bool) (err error) {
|
func GitCommit(commit string, amend bool, sign bool) (err error) {
|
||||||
tempFile, err := ioutil.TempFile("", "git_commit_")
|
tempFile, err := os.CreateTemp("", "git_commit_")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/xiaoqidun/gitcz
|
module github.com/xiaoqidun/gitcz
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
Loading…
x
Reference in New Issue
Block a user