package
1.2.0
Repository: https://github.com/marcopaganini/netbackup.git
Documentation: pkg.go.dev

# Functions

ExitCode fetches the numeric return code from the return of RunCommand.
New returns a new Execute object.
Run executes the given command using the prefix.
RunCommand executes the given command using the supplied Execute object.
WithShell receives a string command and returns an slice ready to be passed to Run or RunCommand with the current shell prepended to it.

# Structs

Execute defines a struct to easily run external programs and capture their stdout and stderr.

# Interfaces

Executor defines the interface used to run commands.

# Type aliases

CallbackFunc represents callback functions functions for stdout/stderr output.