|
| 1 | +namespace SimpleExec |
| 2 | +{ |
| 3 | + public static class Command |
| 4 | + { |
| 5 | + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { |
| 6 | + "StandardOutput", |
| 7 | + "StandardError"})] |
| 8 | + public static System.Threading.Tasks.Task<System.ValueTuple<string, string>> ReadAsync(string name, System.Collections.Generic.IEnumerable<string> args, string workingDirectory = "", System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, System.Text.Encoding? encoding = null, System.Func<int, bool>? handleExitCode = null, string? standardInput = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 9 | + [return: System.Runtime.CompilerServices.TupleElementNames(new string[] { |
| 10 | + "StandardOutput", |
| 11 | + "StandardError"})] |
| 12 | + public static System.Threading.Tasks.Task<System.ValueTuple<string, string>> ReadAsync(string name, string args = "", string workingDirectory = "", System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, System.Text.Encoding? encoding = null, System.Func<int, bool>? handleExitCode = null, string? standardInput = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 13 | + public static void Run(string name, System.Collections.Generic.IEnumerable<string> args, string workingDirectory = "", System.Collections.Generic.IEnumerable<string>? secrets = null, bool noEcho = false, string? echoPrefix = null, System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, bool createNoWindow = false, System.Func<int, bool>? handleExitCode = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 14 | + public static void Run(string name, string args = "", string workingDirectory = "", System.Collections.Generic.IEnumerable<string>? secrets = null, bool noEcho = false, string? echoPrefix = null, System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, bool createNoWindow = false, System.Func<int, bool>? handleExitCode = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 15 | + public static System.Threading.Tasks.Task RunAsync(string name, System.Collections.Generic.IEnumerable<string> args, string workingDirectory = "", System.Collections.Generic.IEnumerable<string>? secrets = null, bool noEcho = false, string? echoPrefix = null, System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, bool createNoWindow = false, System.Func<int, bool>? handleExitCode = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 16 | + public static System.Threading.Tasks.Task RunAsync(string name, string args = "", string workingDirectory = "", System.Collections.Generic.IEnumerable<string>? secrets = null, bool noEcho = false, string? echoPrefix = null, System.Action<System.Collections.Generic.IDictionary<string, string?>>? configureEnvironment = null, bool createNoWindow = false, System.Func<int, bool>? handleExitCode = null, bool cancellationIgnoresProcessTree = false, System.Threading.CancellationToken cancellationToken = default) { } |
| 17 | + } |
| 18 | + public class ExitCodeException : System.Exception |
| 19 | + { |
| 20 | + public ExitCodeException(int exitCode) { } |
| 21 | + public int ExitCode { get; } |
| 22 | + public override string Message { get; } |
| 23 | + } |
| 24 | + public class ExitCodeReadException : SimpleExec.ExitCodeException |
| 25 | + { |
| 26 | + public ExitCodeReadException(int exitCode, string standardOutput, string standardError) { } |
| 27 | + public override string Message { get; } |
| 28 | + public string StandardError { get; } |
| 29 | + public string StandardOutput { get; } |
| 30 | + } |
| 31 | +} |
0 commit comments