cmdx

package
v1.3.67 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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

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