# Functions
DumpFileOnErrorScript returns a bash script that may be used to dump the contents of the specified file to stderr when the shell exits with an error.
NewPSEncodedCommand converts the given string to a UTF16-LE, base64 encoded string, suitable for execution using powershell.exe -EncodedCommand.
NewRenderer returns a Renderer for the given shell, OS, or distro name.
ResolveFD converts the file descriptor name to the corresponding int.
WriteScript returns a sequence of shell commands that write the provided shell commands to a file.
# Structs
BashRenderer is the shell renderer for bash.
PowershellRenderer is a shell renderer for Windows Powershell.
WinCmdRenderer is a shell renderer for Windows cmd.exe.
# Interfaces
CommandRenderer provides methods that may be used to generate shell commands for a variety of shell and filesystem operations.
OutputRenderer exposes the Renderer methods that relate to shell output.
A PathRenderer generates paths that are appropriate for a given shell environment.
Renderer provides all the functionality needed to generate shell- compatible paths and commands.
A ScriptRenderer provides the functionality necessary to render a sequence of shell commands into the content of a shell script.
A ScriptWriter provides the functionality necessarily to render and write a sequence of shell commands to a shell script that is ready to be run.