executil

package
v0.0.0-...-cc86db0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

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

func CommandWithContext

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

func LookPath

func LookPath(file string) (res string, err error)

The new version of golang's os/exec library has added the restriction "cannot run executable found relative to current directory". In order to maintain compatibility, we encapsulated exec.LookPath and exec.Command to ignored ErrDot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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