wrapper

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindActualProgram

func FindActualProgram(prog string) (string, error)

FindActualProgram discovers the actual program that is wrapped on the PATH

Types

type Wrapper

type Wrapper struct {
	Program string

	Builder builder.Builder
	// contains filtered or unexported fields
}

Wrapper represents a wrapper to call a program

func NewWrapper

func NewWrapper(commandline []string, workdir string, logger *log.Logger, debug bool) (*Wrapper, error)

NewWrapper returns an instance of a Wrapper for the given command line

func (*Wrapper) Exit

func (w *Wrapper) Exit()

func (*Wrapper) Wrap

func (w *Wrapper) Wrap()

Wrap calls the actual program to be wrapped and preserves output and return value

Jump to

Keyboard shortcuts

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