summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 06:49:50 -0500
committerJeff Carr <[email protected]>2025-10-03 06:49:50 -0500
commitb769f3aa52787406147885757a65cf25ff2a342c (patch)
tree0ae009e3fc0d1715e5f4f4d2ab1c0d16f0411b53
parenta13a97106841abdd7fba767220fb8bfdd2b0e26d (diff)
output not option during shell autocompletev0.0.25
-rw-r--r--human.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/human.go b/human.go
index d202673..5a459b4 100644
--- a/human.go
+++ b/human.go
@@ -58,12 +58,13 @@ func checkCmdSimple(cmd string) bool {
return true
}
+// never output anythhing to stdout or stderr here
func CheckCmd(cmd string) (string, error) {
path, err := exec.LookPath(cmd)
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)
} else {
- fmt.Printf("%s is available at %s\n", cmd, path)
+ // fmt.Printf("%s is available at %s\n", cmd, path)
}
return path, err
}