iexec

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct {
}

func (Exec) CombinedOutput

func (e Exec) CombinedOutput(dir, cmd string, args ...string) (string, error)

func (Exec) Output

func (e Exec) Output(dir, cmd string, args ...string) (string, error)

func (Exec) Run

func (e Exec) Run(dir string, name string, args ...string) error

type IExec

type IExec interface {
	Run(dir string, name string, args ...string) error
	Output(dir, cmd string, args ...string) (string, error)
	CombinedOutput(dir, cmd string, args ...string) (string, error)
}

This interface is used to abstract the execution of commands It defines a single method `execute` that takes a command and its arguments, and returns the output as a string and an error if any occurred.

Jump to

Keyboard shortcuts

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