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_api_is_not_changed.approved.txt
+4-26Lines changed: 4 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ System.CommandLine
9
9
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
10
10
public System.Object GetDefaultValue()
11
11
public System.String ToString()
12
-
public class Argument<T> : Argument, IValueDescriptor<T>, System.CommandLine.Binding.IValueDescriptor
12
+
public class Argument<T> : Argument, System.CommandLine.Binding.IValueDescriptor
13
13
.ctor(System.String name)
14
14
public Func<System.CommandLine.Parsing.ArgumentResult,T> CustomParser { get; set; }
15
15
public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; }
@@ -50,6 +50,8 @@ System.CommandLine
50
50
public System.Collections.Generic.IEnumerator<Symbol> GetEnumerator()
51
51
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, CommandLineConfiguration configuration = null)
52
52
public ParseResult Parse(System.String commandLine, CommandLineConfiguration configuration = null)
53
+
public System.Void SetHandler(System.Action<System.CommandLine.Invocation.InvocationContext> handle)
54
+
public System.Void SetHandler(System.Func<System.CommandLine.Invocation.InvocationContext,System.Threading.CancellationToken,System.Threading.Tasks.Task> handle)
public System.Int32 Invoke(System.CommandLine.Invocation.InvocationContext context)
134
115
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.CommandLine.Invocation.InvocationContext context, System.Threading.CancellationToken cancellationToken = null)
@@ -144,7 +125,7 @@ System.CommandLine
144
125
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.OptionResult>> Validators { get; }
145
126
public System.Type ValueType { get; }
146
127
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
147
-
public class Option<T> : Option, IValueDescriptor<T>, System.CommandLine.Binding.IValueDescriptor
128
+
public class Option<T> : Option, System.CommandLine.Binding.IValueDescriptor
public Func<System.CommandLine.Parsing.ArgumentResult,T> CustomParser { get; set; }
150
131
public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; }
@@ -191,8 +172,6 @@ System.CommandLine
191
172
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
192
173
public System.String ToString()
193
174
System.CommandLine.Binding
194
-
public abstract class BinderBase<T>, IValueDescriptor<T>, IValueDescriptor, IValueSource
195
-
protected T GetBoundValue(BindingContext bindingContext)
196
175
public class BindingContext, System.IServiceProvider
197
176
public System.CommandLine.IConsole Console { get; }
198
177
public System.CommandLine.ParseResult ParseResult { get; }
@@ -209,7 +188,6 @@ System.CommandLine.Binding
209
188
public System.String ValueName { get; }
210
189
public System.Type ValueType { get; }
211
190
public System.Object GetDefaultValue()
212
-
public interface IValueDescriptor<out T> : IValueDescriptor
213
191
public interface IValueSource
214
192
public System.Boolean TryGetValue(IValueDescriptor valueDescriptor, BindingContext bindingContext, ref System.Object& boundValue)
0 commit comments