cmdx

package
v1.3.87 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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