File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
System.CommandLine.Suggest.Tests
System.CommandLine/Invocation Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) .NET Foundation and contributors. All rights reserved.
22// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33
4- using System . CommandLine . Invocation ;
4+ using FluentAssertions ;
55using System . CommandLine . Tests . Utility ;
66using System . IO ;
7- using FluentAssertions ;
87using System . Linq ;
98using System . Text ;
109using System . Threading . Tasks ;
@@ -158,7 +157,7 @@ await ExecuteAsync(
158157 . Be ( $ "--apple{ NewLine } --banana{ NewLine } --cherry{ NewLine } --durian{ NewLine } --help{ NewLine } --version{ NewLine } -?{ NewLine } -h{ NewLine } /?{ NewLine } /h{ NewLine } ") ;
159158 }
160159
161- public static async Task < int > ExecuteAsync (
160+ private static async Task ExecuteAsync (
162161 string command ,
163162 string args ,
164163 Action < string > stdOut = null ,
@@ -216,7 +215,7 @@ public static async Task<int> ExecuteAsync(
216215 process . BeginOutputReadLine ( ) ;
217216 process . BeginErrorReadLine ( ) ;
218217
219- return await process . CompleteAsync ( ) ;
218+ await process . WaitForExitAsync ( ) ;
220219 }
221220 }
222221}
Original file line number Diff line number Diff line change 66
77namespace System . CommandLine . Invocation
88{
9- public static class Process
9+ internal static class Process
1010 {
1111 public static async Task < int > CompleteAsync (
1212 this Diagnostics . Process process ,
You can’t perform that action at this time.
0 commit comments