CliWrap
Library for interacting with command-line interfaces
...It abstracts the complexity of the native process APIs by offering a composable model for configuring commands, arguments, working directories, and stream redirection. The library emphasizes reliability and developer ergonomics, including built-in support for piping, cancellation handling, and deadlock avoidance. CliWrap is fully asynchronous and designed with immutability principles, making it well suited for modern concurrent applications. It also includes flexible mechanisms for capturing standard output and error streams, enabling advanced automation scenarios. ...