MCPcopy
hub / github.com/smallstep/cli / LookPath

Function LookPath

exec/exec.go:23–25  ·  view source on GitHub ↗

LookPath is an alias for exec.LookPath. It searches for an executable named file in the directories named by the PATH environment variable. If file contains a slash, it is tried directly and the PATH is not consulted. The result may be an absolute path or a path relative to the current directory.

(file string)

Source from the content-addressed store, hash-verified

21// contains a slash, it is tried directly and the PATH is not consulted. The
22// result may be an absolute path or a path relative to the current directory.
23func LookPath(file string) (string, error) {
24 return exec.LookPath(file)
25}
26
27// IsWSL returns true if Windows Subsystem for Linux is detected.
28//

Callers 1

proxyBastionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…