Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec executes a command with arguments and captures its combined stdout and stderr.
Parameters:
- name: the command to execute
- args: the arguments to pass to the command
Returns:
- output: the combined stdout and stderr of the command
- error: any error that occurred during execution
func ExecLine ¶
ExecLine executes a full system command line string and returns its combined output and any error that occurs.
Parameters:
- cmd: the command line string to execute
Returns:
- output: the combined stdout and stderr of the command
- error: any error that occurred during execution
func ExecLineSeparated ¶
ExecLineSeparated executes a full system command line string and returns its stdout, stderr, and any error that occurs.
Parameters:
- cmd: the command line string to execute
Returns:
- stdout: the standard output of the command
- stderr: the standard error of the command
- error: any error that occurred during execution
func ExecSeparated ¶
ExecSeparated executes a command with arguments and captures its stdout and stderr separately.
Parameters:
- name: the command to execute
- args: the arguments to pass to the command
Returns:
- stdout: the standard output of the command
- stderr: the standard error of the command
- error: any error that occurred during execution
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.