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
+7-12Lines changed: 7 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
System.CommandLine
2
2
public abstract class Argument : Symbol, System.CommandLine.Binding.IValueDescriptor
3
3
public ArgumentArity Arity { get; set; }
4
-
public System.Collections.Generic.ICollection<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> Completions { get; }
4
+
public System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> CompletionSources { get; }
5
5
public System.Boolean HasDefaultValue { get; }
6
6
public System.String HelpName { get; set; }
7
+
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.ArgumentResult>> Validators { get; }
7
8
public System.Type ValueType { get; }
8
9
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
9
10
public System.Object GetDefaultValue()
@@ -23,10 +24,6 @@ System.CommandLine
23
24
public Argument<T> AcceptLegalFileNamesOnly()
24
25
public Argument<T> AcceptLegalFilePathsOnly()
25
26
public Argument<T> AcceptOnlyFromAmong(System.String[] values)
26
-
public Argument<T> AddCompletions(System.String[] completions)
27
-
public Argument<T> AddCompletions(System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.String>> completionsDelegate)
28
-
public Argument<T> AddCompletions(System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>> completionsDelegate)
29
-
public Argument<T> AddValidator(System.Action<System.CommandLine.Parsing.ArgumentResult> validate)
30
27
public System.Void SetDefaultValue(T value)
31
28
public System.Void SetDefaultValueFactory(Func<T> defaultValueFactory)
32
29
public System.Void SetDefaultValueFactory(Func<System.CommandLine.Parsing.ArgumentResult,T> defaultValueFactory)
@@ -55,14 +52,14 @@ System.CommandLine
55
52
public System.Collections.Generic.IReadOnlyList<Option> Options { get; }
56
53
public System.Collections.Generic.IReadOnlyList<Command> Subcommands { get; }
57
54
public System.Boolean TreatUnmatchedTokensAsErrors { get; set; }
55
+
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.CommandResult>> Validators { get; }
58
56
public System.Void Add(Option option)
59
57
public System.Void Add(Argument argument)
60
58
public System.Void Add(Command command)
61
59
public System.Void AddArgument(Argument argument)
62
60
public System.Void AddCommand(Command command)
63
61
public System.Void AddGlobalOption(Option option)
64
62
public System.Void AddOption(Option option)
65
-
public System.Void AddValidator(System.Action<System.CommandLine.Parsing.CommandResult> validate)
66
63
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
67
64
public System.Collections.Generic.IEnumerator<Symbol> GetEnumerator()
public static System.Void Add(this System.Collections.Generic.ICollection<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.String>> completionsDelegate)
115
-
public static System.Void Add(this System.Collections.Generic.ICollection<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, System.String[] completions)
111
+
public static System.Void Add(this System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.String>> completionsDelegate)
112
+
public static System.Void Add(this System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, System.String[] completions)
116
113
public static class ConsoleExtensions
117
114
public static System.Void Write(this IConsole console, System.String value)
118
115
public static System.Void WriteLine(this IConsole console, System.String value)
@@ -192,7 +189,9 @@ System.CommandLine
192
189
public System.Boolean AllowMultipleArgumentsPerToken { get; set; }
193
190
public System.String ArgumentHelpName { get; set; }
194
191
public ArgumentArity Arity { get; set; }
192
+
public System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> CompletionSources { get; }
195
193
public System.Boolean IsRequired { get; set; }
194
+
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.OptionResult>> Validators { get; }
196
195
public System.Type ValueType { get; }
197
196
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
198
197
public ParseResult Parse(System.String commandLine)
@@ -207,10 +206,6 @@ System.CommandLine
207
206
public Option<T> AcceptLegalFileNamesOnly()
208
207
public Option<T> AcceptLegalFilePathsOnly()
209
208
public Option<T> AcceptOnlyFromAmong(System.String[] values)
210
-
public Option<T> AddCompletions(System.String[] completions)
211
-
public Option<T> AddCompletions(System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.String>> completionsDelegate)
212
-
public Option<T> AddCompletions(System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>> completionsDelegate)
213
-
public Option<T> AddValidator(System.Action<System.CommandLine.Parsing.OptionResult> validate)
214
209
public System.Void SetDefaultValue(T value)
215
210
public System.Void SetDefaultValueFactory(Func<T> defaultValueFactory)
0 commit comments