Documentation ¶
Overview ¶
Package lookpath provides wrapping functionality around os.exec.LookPath
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasExecutable ¶
HasExecutable returns true if the given executable is in PATH.
func NeedCommands ¶ added in v0.24.0
NeedCommands checks to see if the given executable, and sub command, are in PATH, erroring and returning the missing whole commands if not. For example, a command could be "docker compose", which should check for the "docker" executable, and then make sure "docker compose" exits with status 0.
func NeedExecutables ¶
NeedExecutables checks to see if the given executables are in PATH, erroring and returning the missing executables if not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.