hexec

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeCommand

func SafeCommand(name string, arg ...string) (*exec.Cmd, error)

SafeCommand is a wrapper around os/exec Command which uses a LookPath implementation that does not search in current directory before looking in PATH. See https://github.com/cli/safeexec and the linked issues.

func SafeCommandContext

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

SafeCommandContext wraps CommandContext See SafeCommand for more context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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