vow

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2016 License: MIT Imports: 11 Imported by: 2

Documentation

Overview

Package vow provides a promise like api for executing a batch of external commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vow

type Vow struct {
	Verbose bool
	// contains filtered or unexported fields
}

Vow represents a batch of commands being prepared to run

func To

func To(name string, args ...string) *Vow

To returns a new Vow that is configured to execute command given.

func (*Vow) Exec

func (vow *Vow) Exec(w io.Writer) bool

Exec runs all of the commands a Vow has with all output redirected to the given writer and returns a Result

func (*Vow) Stop

func (vow *Vow) Stop()

Stop terminates the active command and stops the execution of any future commands

func (*Vow) Then

func (vow *Vow) Then(name string, args ...string) *Vow

Then adds the given command to the list of commands the Vow will execute

func (*Vow) ThenAsync added in v1.2.0

func (vow *Vow) ThenAsync(name string, args ...string) *Vow

Jump to

Keyboard shortcuts

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