exec

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(cmd string) bool

CommandExists ...

func LookPath

func LookPath(cmd string) string

LookPath ...

Types

type Cmd

type Cmd struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

Cmd ...

func Command

func Command() *Cmd

Command ...

func (*Cmd) Run

func (c *Cmd) Run(cmdName string, args ...string) error

Run ...

func (*Cmd) Start

func (c *Cmd) Start(cmdName string, args ...string) (*exec.Cmd, error)

Start ...

func (*Cmd) WithBufout

func (c *Cmd) WithBufout(stdout io.Writer, stderr io.Writer) *Cmd

WithBufout ...

func (*Cmd) WithCwd

func (c *Cmd) WithCwd(cwd string) *Cmd

WithCwd ...

func (*Cmd) WithEnv

func (c *Cmd) WithEnv(envs ...string) *Cmd

WithEnv ...

func (*Cmd) WithStdio

func (c *Cmd) WithStdio() *Cmd

WithStdio ...

func (*Cmd) WithSudo

func (c *Cmd) WithSudo() *Cmd

WithSudo ...

Jump to

Keyboard shortcuts

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