@@ -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
357357System.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; }
0 commit comments