execabs

package standard library
go1.17beta1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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