From b769f3aa52787406147885757a65cf25ff2a342c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 06:49:50 -0500 Subject: output not option during shell autocomplete --- human.go | 5 +++-- 1 file 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 } -- cgit v1.2.3