Simplify call an external process with the async streams in C# 8.0.
Full Changelog: https://github.com/Cysharp/ProcessX/compare/1.5.4...1.5.5
runl
, processl
that returns string[]
FirstAsync
wait process completeZx.Env.run
Zx.Env.escape
Zx.Env.workingDirectory
Zx.Env.envVars
which bash
using Zx;
using static Zx.Env;
// Env.log, same as Console.WriteLine but you can use with ConsoleColor.
log("standard log.");
log("red log.", ConsoleColor.Red);
// Env.color, ConsoleColor scope.
using (color(ConsoleColor.Blue))
{
log("blue log");
Console.WriteLine("Blue Blue");
await "echo blue blue blue";
}
// Env.question, Console.WriteLine + Console.ReadLine.
var bear = await question("What kind of bear is best?");
log($"You answered: {bear}");