cmdx

package
v1.3.90 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 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 ExecBinaryCmdx added in v1.3.84

func ExecBinaryCmdx(ctx Context, cmdStr string) error

TODO refactor with OPTION

func ExecShellCmd

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

func ExecShellCmdx added in v1.3.84

func ExecShellCmdx(ctx Context, cmdStr string) 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 Context added in v1.3.84

type Context struct {
	Ctx context.Context
	Out *Output
	Env []string
}

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