ProcessX Versions Save

Simplify call an external process with the async streams in C# 8.0.

1.5.5

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/Cysharp/ProcessX/compare/1.5.4...1.5.5

1.5.4

2 years ago
  • Fix Zx, does not work on Linux/MacOS

1.5.3

2 years ago
  • Add Zx, runl, processl that returns string[]

1.5.2

2 years ago
  • Zx, always escape if using in string

1.5.1

2 years ago
  • Fix, zx returns right string result(without newline)
  • Fix, ProcessAsyncEnumerable.FirstAsync returns right first result

1.5.0

2 years ago
  • Improve: Zx print stdError on default(verbose = true)
  • Add: Zx.Env.ignore
  • Add: Zx.Env.process2, run2, withCancellation2, withTimeout2
  • Change: Zx.Env.withTimeout, withCancellation receives only FormattableString
  • Change: FirstAsync wait process complete

1.4.5

2 years ago
  • Add ProcessAsyncEnumerable.WaitAsync

1.4.4

2 years ago
  • Add ProcessAsyncEnumerable.FirstAsync, FirstOrDefaultAsync

1.4.3

2 years ago
  • Add Zx.Env.run
  • Add Zx.Env.escape
  • Add Zx.Env.workingDirectory
  • Add Zx.Env.envVars
  • Imprvoment searching bash path run on Linux, use which bash

1.4.2

2 years ago
  • Add Zx.Env.log
  • Add Zx.Env.color
  • Add Zx.Env.question
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}");