execabs

package standard library
go1.18beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

View Source
var ErrNotFound = exec.ErrNotFound

Functions

func Command

func Command(name string, arg ...string) *exec.Cmd

func CommandContext

func CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd

func LookPath

func LookPath(file string) (string, error)

Types

type Cmd

type Cmd = exec.Cmd

type Error

type Error = exec.Error

type ExitError

type ExitError = exec.ExitError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL