package execabs
import "internal/execabs"
Package execabs is a drop-in replacement for os/exec that requires PATH lookups to find absolute paths. That is, execabs.Command("cmd") runs the same PATH lookup as exec.Command("cmd"), but if the result is a path which is relative, the Run and Start methods will report an error instead of running the executable.
Index ¶
- Variables
- func Command(name string, arg ...string) *exec.Cmd
- func CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd
- func LookPath(file string) (string, error)
- type Cmd
- type Error
- type ExitError
Variables ¶
var ErrNotFound = exec.ErrNotFound
Functions ¶
func Command ¶
func CommandContext ¶
func LookPath ¶
Types ¶
type Cmd ¶
type Error ¶
type ExitError ¶
Source Files ¶
- Version
- v1.14.14
- Published
- Jan 19, 2021
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 24 seconds ago –
Tools for package owners.