execx

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRun = errors.New("Run")

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(tmpDir string, arg ...string) *Cmd

func (*Cmd) IntoExecCmd added in v0.0.7

func (c *Cmd) IntoExecCmd(ctx context.Context) (*exec.Cmd, error)

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context) (string, error)

Run executes the command and returns the filepath where the results were written.

type Pipeline added in v0.0.6

type Pipeline struct {
	// contains filtered or unexported fields
}

func NewPipedCmd added in v0.0.6

func NewPipedCmd(ctx context.Context, dir string, stdin io.Reader, cmd ...*Cmd) *Pipeline

func (Pipeline) Path added in v0.0.6

func (p Pipeline) Path() string

func (*Pipeline) Run added in v0.0.6

func (p *Pipeline) Run(ctx context.Context) error

type TmpFile added in v0.0.6

type TmpFile struct {
	// contains filtered or unexported fields
}

func NewTmpFile added in v0.0.6

func NewTmpFile(dir string) *TmpFile

func (*TmpFile) Open added in v0.0.6

func (f *TmpFile) Open() (*os.File, error)

func (TmpFile) Path added in v0.0.6

func (f TmpFile) Path() string

Jump to

Keyboard shortcuts

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