program

package
v0.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 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 Program

type Program struct {
	Name     string
	Filename string
	Path     string
}

Program holds information about a program

func Find

func Find(filename string, name string) *Program

Find will try and find the given filename on the path

func (*Program) Run

func (p *Program) Run(vars ...string) (stdout, stderr string, exitCode int, err error)

Default Run impl

func (*Program) RunRedirected

func (p *Program) RunRedirected(stdout *os.File, vars ...string) (stderr string, exitCode int, err error)

Default RunRedirected impl

Jump to

Keyboard shortcuts

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