exec

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command added in v0.11.0

func Command(name string, args ...string) ([]byte, error)

Command executes the given command with it's arguments and returns the standard output.

func Exec

func Exec(name string, arg ...string)

Exec is wrapper over syscall.Exec, invokes the execve(2) system call. On windows it executes Run with the same arguments.

func OpenInBrowser

func OpenInBrowser(url string) error

OpenInBrowser opens the given url on a web browser

func Run

func Run(name string, arg ...string)

Run is a wrapper over os/exec Cmd.Run that configures Stderr/Stdin/Stdout to the current ones and wait until the process finishes, exiting with the same code. Run will also forward all the signals sent to step to the command.

func RunWithPid

func RunWithPid(pidFile, name string, arg ...string)

RunWithPid calls Run and writes the process ID in pidFile.

func Step added in v0.9.0

func Step(args ...string) ([]byte, error)

Step executes step with the given commands and returns the standard output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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