diff --git a/README.md b/README.md index 62059da..dcb0348 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,6 @@ string? windowsArgs = null, string? echoPrefix = null, Action>? configureEnvironment = null, bool createNoWindow = false, -ProcessWindowStyle windowStyle = ProcessWindowStyle.Normal, Func? handleExitCode = null, CancellationToken cancellationToken = default, ``` diff --git a/SimpleExec/Command.cs b/SimpleExec/Command.cs index bcea851..30d88f7 100644 --- a/SimpleExec/Command.cs +++ b/SimpleExec/Command.cs @@ -30,7 +30,6 @@ public static class Command /// The prefix to use when echoing the command line and working directory (if specified) to standard error (stderr). /// An action which configures environment variables for the command. /// Whether to run the command in a new window. - /// The window style to use when the command is run. /// /// A delegate which accepts an representing exit code of the command and /// returns when it has handled the exit code and default exit code handling should be suppressed, and @@ -52,7 +51,6 @@ public static void Run( string? echoPrefix = null, Action>? configureEnvironment = null, bool createNoWindow = false, - ProcessWindowStyle windowStyle = ProcessWindowStyle.Normal, Func? handleExitCode = null, CancellationToken cancellationToken = default) { @@ -66,8 +64,7 @@ public static void Run( workingDirectory, false, configureEnvironment ?? defaultAction, - createNoWindow, - windowStyle); + createNoWindow); process.Run(noEcho, echoPrefix ?? defaultEchoPrefix, cancellationToken); @@ -90,7 +87,6 @@ public static void Run( /// The prefix to use when echoing the command line and working directory (if specified) to standard error (stderr). /// An action which configures environment variables for the command. /// Whether to run the command in a new window. - /// The window style to use when the command is run. /// /// A delegate which accepts an representing exit code of the command and /// returns when it has handled the exit code and default exit code handling should be suppressed, and @@ -113,7 +109,6 @@ public static async Task RunAsync( string? echoPrefix = null, Action>? configureEnvironment = null, bool createNoWindow = false, - ProcessWindowStyle windowStyle = ProcessWindowStyle.Normal, Func? handleExitCode = null, CancellationToken cancellationToken = default) { @@ -127,8 +122,7 @@ public static async Task RunAsync( workingDirectory, false, configureEnvironment ?? defaultAction, - createNoWindow, - windowStyle); + createNoWindow); await process.RunAsync(noEcho, echoPrefix ?? defaultEchoPrefix, cancellationToken).ConfigureAwait(false); @@ -185,7 +179,6 @@ public static async Task RunAsync( true, configureEnvironment ?? defaultAction, true, - ProcessWindowStyle.Normal, encoding); var runProcess = process.RunAsync(true, defaultEchoPrefix, cancellationToken); diff --git a/SimpleExec/ProcessStartInfo.cs b/SimpleExec/ProcessStartInfo.cs index 1d32f94..0d11300 100644 --- a/SimpleExec/ProcessStartInfo.cs +++ b/SimpleExec/ProcessStartInfo.cs @@ -13,7 +13,6 @@ public static System.Diagnostics.ProcessStartInfo Create( bool redirectStandardStreams, Action> configureEnvironment, bool createNoWindow, - System.Diagnostics.ProcessWindowStyle windowStyle, Encoding? encoding = null) { var startInfo = new System.Diagnostics.ProcessStartInfo @@ -28,7 +27,6 @@ public static System.Diagnostics.ProcessStartInfo Create( CreateNoWindow = createNoWindow, StandardErrorEncoding = encoding, StandardOutputEncoding = encoding, - WindowStyle = windowStyle, }; configureEnvironment(startInfo.Environment); diff --git a/SimpleExec/PublicAPI.Shipped.txt b/SimpleExec/PublicAPI.Shipped.txt index 6822d17..d693a87 100644 --- a/SimpleExec/PublicAPI.Shipped.txt +++ b/SimpleExec/PublicAPI.Shipped.txt @@ -10,5 +10,5 @@ SimpleExec.ExitCodeReadException.ExitCodeReadException(int exitCode, string! sta SimpleExec.ExitCodeReadException.StandardError.get -> string! SimpleExec.ExitCodeReadException.StandardOutput.get -> string! static SimpleExec.Command.ReadAsync(string! name, string! args = "", string! workingDirectory = "", string? windowsName = null, string? windowsArgs = null, System.Action!>? configureEnvironment = null, System.Text.Encoding? encoding = null, System.Func? handleExitCode = null, string? standardInput = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<(string! StandardOutput, string! StandardError)>! -static SimpleExec.Command.Run(string! name, string! args = "", string! workingDirectory = "", bool noEcho = false, string? windowsName = null, string? windowsArgs = null, string? echoPrefix = null, System.Action!>? configureEnvironment = null, bool createNoWindow = false, System.Diagnostics.ProcessWindowStyle windowStyle = System.Diagnostics.ProcessWindowStyle.Normal, System.Func? handleExitCode = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> void -static SimpleExec.Command.RunAsync(string! name, string! args = "", string! workingDirectory = "", bool noEcho = false, string? windowsName = null, string? windowsArgs = null, string? echoPrefix = null, System.Action!>? configureEnvironment = null, bool createNoWindow = false, System.Diagnostics.ProcessWindowStyle windowStyle = System.Diagnostics.ProcessWindowStyle.Normal, System.Func? handleExitCode = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task! +static SimpleExec.Command.Run(string! name, string! args = "", string! workingDirectory = "", bool noEcho = false, string? windowsName = null, string? windowsArgs = null, string? echoPrefix = null, System.Action!>? configureEnvironment = null, bool createNoWindow = false, System.Func? handleExitCode = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> void +static SimpleExec.Command.RunAsync(string! name, string! args = "", string! workingDirectory = "", bool noEcho = false, string? windowsName = null, string? windowsArgs = null, string? echoPrefix = null, System.Action!>? configureEnvironment = null, bool createNoWindow = false, System.Func? handleExitCode = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task!