You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_Hosting_api_is_not_changed.approved.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ System.CommandLine.Hosting
7
7
public static System.CommandLine.ParseResult GetParseResult(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder)
8
8
public static System.CommandLine.ParseResult GetParseResult(this Microsoft.Extensions.Hosting.HostBuilderContext context)
9
9
public static System.CommandLine.CliCommand UseCommandHandler<THandler>(this System.CommandLine.CliCommand command)
10
-
public static System.CommandLine.CommandLineConfiguration UseHost(this System.CommandLine.CommandLineConfiguration builder, System.Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = null)
Copy file name to clipboardExpand all lines: src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,31 @@ System.CommandLine
51
51
public System.Void Add(CliSymbol symbol)
52
52
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
53
53
public System.Collections.Generic.IEnumerator<CliSymbol> GetEnumerator()
54
-
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, CommandLineConfiguration configuration = null)
55
-
public ParseResult Parse(System.String commandLine, CommandLineConfiguration configuration = null)
54
+
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, CliConfiguration configuration = null)
55
+
public ParseResult Parse(System.String commandLine, CliConfiguration configuration = null)
56
56
public System.Void SetAction(System.Action<ParseResult> action)
57
57
public System.Void SetAction(System.Func<ParseResult,System.Int32> action)
58
58
public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task> action)
59
59
public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Int32>> action)
60
+
public class CliConfiguration
61
+
.ctor(CliCommand rootCommand)
62
+
public System.Collections.Generic.List<CliDirective> Directives { get; }
63
+
public System.Boolean EnableDefaultExceptionHandler { get; set; }
64
+
public System.Boolean EnableParseErrorReporting { get; set; }
65
+
public System.Boolean EnablePosixBundling { get; set; }
66
+
public System.Boolean EnableTypoCorrections { get; set; }
67
+
public System.IO.TextWriter Error { get; set; }
68
+
public System.IO.TextWriter Output { get; set; }
69
+
public System.Nullable<System.TimeSpan> ProcessTerminationTimeout { get; set; }
70
+
public System.CommandLine.Parsing.TryReplaceToken ResponseFileTokenReplacer { get; set; }
71
+
public CliCommand RootCommand { get; }
72
+
public System.Int32 Invoke(System.String commandLine)
73
+
public System.Int32 Invoke(System.String[] args)
74
+
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, System.Threading.CancellationToken cancellationToken = null)
75
+
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, System.Threading.CancellationToken cancellationToken = null)
76
+
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args)
77
+
public ParseResult Parse(System.String commandLine)
78
+
public System.Void ThrowIfInvalid()
60
79
public class CliDirective : CliSymbol
61
80
.ctor(System.String name)
62
81
public CliAction Action { get; set; }
@@ -92,25 +111,6 @@ System.CommandLine
92
111
public System.Collections.Generic.IEnumerable<CliSymbol> Parents { get; }
93
112
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
94
113
public System.String ToString()
95
-
public class CommandLineConfiguration
96
-
.ctor(CliCommand rootCommand)
97
-
public System.Collections.Generic.List<CliDirective> Directives { get; }
98
-
public System.Boolean EnableDefaultExceptionHandler { get; set; }
99
-
public System.Boolean EnableParseErrorReporting { get; set; }
100
-
public System.Boolean EnablePosixBundling { get; set; }
101
-
public System.Boolean EnableTypoCorrections { get; set; }
102
-
public System.IO.TextWriter Error { get; set; }
103
-
public System.IO.TextWriter Output { get; set; }
104
-
public System.Nullable<System.TimeSpan> ProcessTerminationTimeout { get; set; }
105
-
public System.CommandLine.Parsing.TryReplaceToken ResponseFileTokenReplacer { get; set; }
106
-
public CliCommand RootCommand { get; }
107
-
public System.Int32 Invoke(System.String commandLine)
108
-
public System.Int32 Invoke(System.String[] args)
109
-
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, System.Threading.CancellationToken cancellationToken = null)
110
-
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, System.Threading.CancellationToken cancellationToken = null)
111
-
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args)
112
-
public ParseResult Parse(System.String commandLine)
113
-
public System.Void ThrowIfInvalid()
114
114
public class CommandLineConfigurationException : System.Exception, System.Runtime.Serialization.ISerializable
115
115
.ctor(System.String message)
116
116
public static class CompletionSourceExtensions
@@ -131,7 +131,7 @@ System.CommandLine
131
131
public class ParseResult
132
132
public CliAction Action { get; }
133
133
public System.CommandLine.Parsing.CommandResult CommandResult { get; }
134
-
public CommandLineConfiguration Configuration { get; }
134
+
public CliConfiguration Configuration { get; }
135
135
public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.ParseError> Errors { get; }
136
136
public System.CommandLine.Parsing.CommandResult RootCommandResult { get; }
137
137
public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.Token> Tokens { get; }
@@ -234,6 +234,10 @@ System.CommandLine.Parsing
234
234
public T GetValueOrDefault<T>()
235
235
public System.Void OnlyTake(System.Int32 numberOfTokens)
0 commit comments