Clipwrap windows3/28/2023 This section covers all available configuration methods and their usage.Ĭommand is an immutable object - all configuration methods listed here create a new instance instead of modifying the existing one. The fluent interface provided by the command object allows you to configure various aspects of its execution. Programs can write arbitrary data (including binary) to output and error streams, and storing it in-memory may be impractical.įor more advanced scenarios, CliWrap also provides other piping options, which are covered in the piping section. Result contains: // - result.StandardOutput (string) // - result.StandardError (string) // - result.ExitCode (int) // - result.StartTime (DateTimeOffset) // - result.ExitTime (DateTimeOffset) // - result.RunTime (TimeSpan)īe mindful when using ExecuteBufferedAsync(). Once the command is configured, you can run it by calling ExecuteAsync(): To build a command, start by calling Cli.Wrap(.) with the executable path, and then use the provided fluent interface to configure arguments, working directory, or other options. Similarly to a shell, CliWrap's base unit of work is a command - an object that encapsulates instructions for running a process.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |