run

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomExeIndent string

Functions

func BackgroundWith

func BackgroundWith(options *Options) (pid int, err error)

func CheckCmd

func CheckCmd(name string, argv ...string) (stdout string, stderr string, err error)

func CheckExe

func CheckExe(name string, argv ...string) (err error)

func Cmd

func Cmd(name string, argv ...string) (stdout, stderr string, status int, err error)

func CmdWith

func CmdWith(options *Options) (stdout, stderr string, status int, err error)

func Exe

func Exe(name string, argv ...string) (status int, err error)

func ExePipe

func ExePipe(inputs ...PipeCmd) (status int, err error)

func ExeWith

func ExeWith(options *Options) (err error)

func Interactive

func Interactive(environ []string, dir, name string, argv ...string) (err error)

Types

type Options

type Options struct {
	Path    string
	Name    string
	Argv    []string
	Stdout  string
	Stderr  string
	PidFile string
	Environ []string
}

type PipeCmd

type PipeCmd struct {
	Name string
	Args []string
}

func NewPipe

func NewPipe(name string, args ...string) PipeCmd

Jump to

Keyboard shortcuts

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