osx

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommandContext

func RunCommandContext(ctx context.Context, cmd *exec.Cmd) error

RunCommandContext run the command, with a context, which may cancel before command finished.. If so the process would be destroyed, an error will be return.

func RunCommandTimeout

func RunCommandTimeout(cmd *exec.Cmd, timeout time.Duration) error

RunCommandTimeout run the command, with a timeout value. If command does not finish before timeout, the process would be destroyed, a timeout error will be return.

Types

This section is empty.

Jump to

Keyboard shortcuts

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