exec

package
v0.0.0-...-7935e33 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 5 Imported by: 10

README

Wrapper for executing external commands

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewExecError func(path []string, err string) error

Functions

func Env

func Env(sid string, path []string, action string, cact string) []string

func EnvWithSocket

func EnvWithSocket(sid string, path []string, action string, cact string, socket string) []string

Types

type ExecFunc

type ExecFunc func() ([]*Output, []error, bool)

type Output

type Output struct {
	Path   []string
	Output string
}

func AppendOutput

func AppendOutput(fn ExecFunc, outs []*Output, errs []error) ([]*Output, []error, bool)

func Exec

func Exec(env, path []string, cmd string) (*Output, error)

func ExecNoErr

func ExecNoErr(env, path []string, cmd string) (*Output, error)

func (*Output) String

func (e *Output) String() string

Jump to

Keyboard shortcuts

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