runner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(buildString string) (string, error)

Runs a command to build a program. First word in buildCommand must be a executable command, the others are arguments. Writes output and errors to the console. Waits for command to finish before exiting.

func Run

func Run(runCommand string, stopChannel chan bool) bool

Runs a long process that needs to be manually killed. Killing a process is accomplished by sending a true boolean value to stopChannel. Logs all errors and output to the console.

Internally, it sprouts three new goroutines. Two to read from os.Stdout and os.Stderr respectively, and a last one to kill the process when stopChannel recieves true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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