first commit
This commit is contained in:
13
Services/Interfaces/IProcessRunner.cs
Normal file
13
Services/Interfaces/IProcessRunner.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace HanaToolbox.Services.Interfaces;
|
||||
|
||||
public sealed record ProcessResult(int ExitCode, string StdOut, string StdErr)
|
||||
{
|
||||
public bool Success => ExitCode == 0;
|
||||
}
|
||||
|
||||
public interface IProcessRunner
|
||||
{
|
||||
Task<ProcessResult> RunAsync(
|
||||
string executable, string[] args,
|
||||
CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user