Skip to content

Commit 149f6b0

Browse files
committed
Rebased and fixed conflicts
1 parent 9b6224a commit 149f6b0

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ System.CommandLine
6666
public static class CommandExtensions
6767
public static System.Int32 Invoke(this Command command, System.String[] args, IConsole console = null)
6868
public static System.Int32 Invoke(this Command command, System.String commandLine, IConsole console = null)
69-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Command command, System.String[] args, IConsole console = null)
70-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Command command, System.String commandLine, IConsole console = null)
69+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Command command, System.String[] args, IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
70+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Command command, System.String commandLine, IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
7171
public static ParseResult Parse(this Command command, System.String[] args)
7272
public static ParseResult Parse(this Command command, System.String commandLine)
7373
public class CommandLineBuilder
@@ -357,8 +357,8 @@ System.CommandLine.Help
357357
System.CommandLine.Invocation
358358
public interface IInvocationResult
359359
public System.Void Apply(InvocationContext context)
360-
public class InvocationContext
361-
.ctor(System.CommandLine.ParseResult parseResult, System.CommandLine.IConsole console = null)
360+
public class InvocationContext, System.IDisposable
361+
.ctor(System.CommandLine.ParseResult parseResult, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
362362
public System.CommandLine.Binding.BindingContext BindingContext { get; }
363363
public System.CommandLine.IConsole Console { get; set; }
364364
public System.Int32 ExitCode { get; set; }
@@ -451,12 +451,12 @@ System.CommandLine.Parsing
451451
public static System.String Diagram(this System.CommandLine.ParseResult parseResult)
452452
public static System.Boolean HasOption(this System.CommandLine.ParseResult parseResult, System.CommandLine.Option option)
453453
public static System.Int32 Invoke(this System.CommandLine.ParseResult parseResult, System.CommandLine.IConsole console = null)
454-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this System.CommandLine.ParseResult parseResult, System.CommandLine.IConsole console = null)
454+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this System.CommandLine.ParseResult parseResult, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
455455
public static class ParserExtensions
456456
public static System.Int32 Invoke(this Parser parser, System.String commandLine, System.CommandLine.IConsole console = null)
457457
public static System.Int32 Invoke(this Parser parser, System.String[] args, System.CommandLine.IConsole console = null)
458-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Parser parser, System.String commandLine, System.CommandLine.IConsole console = null)
459-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Parser parser, System.String[] args, System.CommandLine.IConsole console = null)
458+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Parser parser, System.String commandLine, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
459+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(this Parser parser, System.String[] args, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
460460
public static System.CommandLine.ParseResult Parse(this Parser parser, System.String commandLine)
461461
public abstract class SymbolResult
462462
public System.Collections.Generic.IReadOnlyList<SymbolResult> Children { get; }

src/System.CommandLine.Tests/Invocation/CancelOnProcessTerminationTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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 FluentAssertions;
5+
using System.CommandLine.Invocation;
46
using System.CommandLine.Parsing;
57
using System.CommandLine.Tests.Utility;
68
using System.Diagnostics;

src/System.CommandLine.Tests/Invocation/InvocationContextTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using FluentAssertions;
22
using System.CommandLine;
3-
using System.CommandLine.Builder;
43
using System.CommandLine.Invocation;
54
using System.CommandLine.Parsing;
65
using System.Threading;

0 commit comments

Comments
 (0)