Skip to content

Commit

Permalink
public != internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo authored and jonsequitur committed Apr 16, 2021
1 parent 4e00994 commit 3705094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Invocation;
using FluentAssertions;
using System.CommandLine.Tests.Utility;
using System.IO;
using FluentAssertions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Expand Down Expand Up @@ -158,7 +157,7 @@ await ExecuteAsync(
.Be($"--apple{NewLine}--banana{NewLine}--cherry{NewLine}--durian{NewLine}--help{NewLine}--version{NewLine}-?{NewLine}-h{NewLine}/?{NewLine}/h{NewLine}");
}

public static async Task<int> ExecuteAsync(
private static async Task ExecuteAsync(
string command,
string args,
Action<string> stdOut = null,
Expand Down Expand Up @@ -216,7 +215,7 @@ public static async Task<int> ExecuteAsync(
process.BeginOutputReadLine();
process.BeginErrorReadLine();

return await process.CompleteAsync();
await process.WaitForExitAsync();
}
}
}
2 changes: 1 addition & 1 deletion src/System.CommandLine/Invocation/Process.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace System.CommandLine.Invocation
{
public static class Process
internal static class Process
{
public static async Task<int> CompleteAsync(
this Diagnostics.Process process,
Expand Down

0 comments on commit 3705094

Please sign in to comment.