vezel-dev / cathode

A terminal-centric replacement for the .NET console APIs.
https://docs.vezel.dev/cathode
BSD Zero Clause License
91 stars 7 forks source link

Provide a more extensive process API #51

Closed alexrp closed 2 years ago

alexrp commented 2 years ago

Since we're banning System.Diagnostics.Process and providing an API-incompatible replacement, it means people will not be able to use libraries like MedallionShell.

We should provide a similarly rich API to make up for that fact.

Here are some of the main things I think I'd like to change:

alexrp commented 2 years ago

Also address this comment:

https://github.com/alexrp/system-terminal/blob/9a688a9b3f088a06ab1f8be2de07eb19c3a2932c/src/core/Diagnostics/TerminalProcess.cs#L5

alexrp commented 2 years ago
  • There should be a way to redirect process output to the moral equivalent of /dev/null.
  • Provide convenient piping syntax with overloaded |, >, and < operators.

I'll spin these off into a separate issue.