command

package
v0.0.0-...-29dce44 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecRunner

func ExecRunner(command string, args []string, inline bool, onDone DoneFunc) (string, error)

ExecRunner provides a Runner which uses the exec lib

Types

type DoneFunc

type DoneFunc func(error)

DoneFunc indicates an action is complete with a possible error

type Runner

type Runner func(command string, args []string, inline bool, onDone DoneFunc) (string, error)

Runner takes a command and args, executes that command and triggers an onDone callback when complete

func NewDummyRunner

func NewDummyRunner(commandChan chan string, argsChan chan []string, output string, err error, doneErr error) Runner

NewDummyRunner returns a Runner which can be used for testing

Jump to

Keyboard shortcuts

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