osx

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDirectory added in v2.1.0

func HomeDirectory() (string, error)

HomeDirectory return home directory for current user

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