Documentation
¶
Index ¶
- func Run(cmdStr string) (stdout, stderr bytes.Buffer, err error)
- func RunScriptWithContext(ctx context.Context, path string) (stdout, stderr bytes.Buffer, err error)
- func RunWithContext(ctx context.Context, cmdStr string, opts ...CmdOption) (stdout, stderr bytes.Buffer, err error)
- func RunWithOptions(cmdStr string, opts ...CmdOption) (stdout, stderr bytes.Buffer, err error)
- type CmdOption
- type RunFunc
- type RunScriptWithContextFunc
- type RunWithContextFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunScriptWithContext ¶
func RunScriptWithContext(ctx context.Context, path string) (stdout, stderr bytes.Buffer, err error)
RunScriptWithContext executes path directly (honors the file's shebang or binary format), supporting both shell scripts and compiled executables.
func RunWithContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.