cmdx

package
v1.3.81 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyCmdStr = errors.New("EmptyCmdStr")
)

Functions

func ExecBinaryCmd

func ExecBinaryCmd(pCtx context.Context, cmdStr string, result *Output) error

func ExecShellCmd

func ExecShellCmd(pCtx context.Context, cmdStr string, result *Output) error

func ExecWithResponse added in v1.3.67

func ExecWithResponse(pCtx context.Context, cmdStr string, resp any) error

func ShExecWithResponse added in v1.3.68

func ShExecWithResponse(pCtx context.Context, cmdStr string, resp any) error

Types

type Output added in v1.3.67

type Output struct {
	Stdout io.Writer
	Stderr io.Writer
}

Jump to

Keyboard shortcuts

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