spawn

package
v1.9.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 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(command string, arguments ...string) (string, error)

Command runs a command with its arguments and returns the stdout or stderr or the error.

func CommandWithContext added in v1.9.0

func CommandWithContext(ctx context.Context, command string, arguments ...string) (chan string, error)

CommandWithContext runs a command with its arguments in background. The provided context is used to kill the command (by calling os.Process.Kill) if the context becomes done before the command completes on its own. The return channel can be used to read the stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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