expose func
This commit is contained in:
parent
06564368bc
commit
ef24c64f5b
2
human.go
2
human.go
|
@ -58,7 +58,7 @@ func checkCmdSimple(cmd string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkCmd(cmd string) (string, error) {
|
func CheckCmd(cmd string) (string, error) {
|
||||||
path, err := exec.LookPath(cmd)
|
path, err := exec.LookPath(cmd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("\n%s is not in the PATH\n", cmd)
|
fmt.Printf("\n%s is not in the PATH\n", cmd)
|
||||||
|
|
Loading…
Reference in New Issue