cmdsite

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandSite

type CommandSite struct {
	RunCmd RunCommand

	Env map[string]string
}

func New

func New() *CommandSite

func (*CommandSite) CaptureBytes

func (r *CommandSite) CaptureBytes(binary string, args []string) ([]byte, []byte, error)

func (*CommandSite) CaptureStrings

func (r *CommandSite) CaptureStrings(binary string, args []string) (string, string, error)

func (*CommandSite) RunCommand

func (s *CommandSite) RunCommand(cmd string, args []string, stdout, stderr io.Writer) error

type RunCommand

type RunCommand func(name string, args []string, stdout, stderr io.Writer, env map[string]string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳