.Net Bash Wrapper is a small set of C# methods that helps you execute cmd/terminal commands or .sh files using C# code. The Wrapper can be used on any .NET application or Unity application/game.
File | Description |
---|---|
BashWrapper.cs | Core Methods for Bash Wrapper |
BashManager.cs | Managing and Simplifying Bash Wrapper Functionality |
Description:
Executes asynchronous cmd or terminal commands.
Description:
Executes synchronous cmd or terminal commands.
Description:
Makes a bash file executable asynchronously
Description:
Makes a bash file executable synchronously
public static async Task<T> Run<T>(string command, bool debug = false)
Description:
Executes a single cmd or terminal command.
Parameters:
string command
: The command to execute.bool debug
: Whether or not to print logs.
public static async Task<T> BashAsExecutable<T>(string bashFileName)
Description:
Makes a bash (.sh) script executable.
Parameters:
string bashFileName
: The name of file we want to make executable.