Sheller 4.0.0
This release changes:
- The
Sheller
static class toBuilder
. - The
Use
method of the aforementioned static class toUseShell
.
This release adds:
Succeeded
toICommandResult
.UseShell
toIExecutable
.UseInputRequestHandler
toIShell
andIExecutable
.
UseInputRequestHandler
allows the developer to recognize when the executable is waiting for input, and allow the developer to respond to that required user input with text. It looks kind of like this.
await Builder
.UseShell<Bash>()
.UseExecutable($"read var1; echo $var1")
.UseInputRequestHandler((stdout, stderr) =>
{
return Task.FromResult("hello_var1");
})
.ExecuteAsync();