File tree 2 files changed +4
-5
lines changed
System.CommandLine/Invocation
System.CommandLine.Suggest.Tests
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) .NET Foundation and contributors. All rights reserved.
2
2
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
4
- using System . CommandLine . Invocation ;
4
+ using FluentAssertions ;
5
5
using System . CommandLine . Tests . Utility ;
6
6
using System . IO ;
7
- using FluentAssertions ;
8
7
using System . Linq ;
9
8
using System . Text ;
10
9
using System . Threading . Tasks ;
@@ -158,7 +157,7 @@ await ExecuteAsync(
158
157
. Be ( $ "--apple{ NewLine } --banana{ NewLine } --cherry{ NewLine } --durian{ NewLine } --help{ NewLine } --version{ NewLine } -?{ NewLine } -h{ NewLine } /?{ NewLine } /h{ NewLine } ") ;
159
158
}
160
159
161
- public static async Task < int > ExecuteAsync (
160
+ private static async Task ExecuteAsync (
162
161
string command ,
163
162
string args ,
164
163
Action < string > stdOut = null ,
@@ -216,7 +215,7 @@ public static async Task<int> ExecuteAsync(
216
215
process . BeginOutputReadLine ( ) ;
217
216
process . BeginErrorReadLine ( ) ;
218
217
219
- return await process . CompleteAsync ( ) ;
218
+ await process . WaitForExitAsync ( ) ;
220
219
}
221
220
}
222
221
}
Original file line number Diff line number Diff line change 6
6
7
7
namespace System . CommandLine . Invocation
8
8
{
9
- public static class Process
9
+ internal static class Process
10
10
{
11
11
public static async Task < int > CompleteAsync (
12
12
this Diagnostics . Process process ,
You can’t perform that action at this time.
0 commit comments