ScienceVikings / SVL.Process

A process library that lets you get output from terminal processes in a single line using async/await

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVL.Process

This is a library that will let you run a process as an asyncronous task and await its output as a string.

var whoami = await Process.Run("whoami");

It's that easy!

You can also use arguments and environment variables!

var ls = await Process.Run("ls", ".");

var myVar = await Process.Run("printenv", "MY_VAR", new Dictionary<string, string>()
{
    { "MY_VAR", myStr }
});

If you think I can add any cool or useful features to it, please add an issue.

About

A process library that lets you get output from terminal processes in a single line using async/await


Languages

Language:C# 100.0%