Documentation ¶ Index ¶ Variables func ExecBinaryCmd(pCtx context.Context, cmdStr string, result *Output) error func ExecShellCmd(pCtx context.Context, cmdStr string, result *Output) error func ExecWithResponse(pCtx context.Context, cmdStr string, resp any) error type Output 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 } Source Files ¶ View all Source files cmdx.go error.go Click to show internal directories. Click to hide internal directories.