MCPcopy Index your code
hub / github.com/jetify-com/devbox / Exists

Function Exists

internal/cmdutil/cmdutil.go:11–14  ·  view source on GitHub ↗

Exists indicates if the command exists

(command string)

Source from the content-addressed store, hash-verified

9
10// Exists indicates if the command exists
11func Exists(command string) bool {
12 _, err := exec.LookPath(command)
13 return err == nil
14}
15
16// GetPathOrDefault gets the path for the given command.
17// If it's not found, it will return the given value instead.

Callers 3

BinaryInstalledFunction · 0.92
GenerateEnvrcFileMethod · 0.92
selfUpdateLauncherFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected