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
+18-31Lines changed: 18 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,14 @@ System.CommandLine
10
10
public System.Object GetDefaultValue()
11
11
public System.String ToString()
12
12
public class Argument<T> : Argument, IValueDescriptor<T>, System.CommandLine.Binding.IValueDescriptor
public System.Int32 Invoke(System.CommandLine.Invocation.InvocationContext context)
138
132
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.CommandLine.Invocation.InvocationContext context, System.Threading.CancellationToken cancellationToken = null)
139
133
public interface IConsole : System.CommandLine.IO.IStandardError, System.CommandLine.IO.IStandardIn, System.CommandLine.IO.IStandardOut
140
-
public abstract class IdentifierSymbol : Symbol
141
-
public System.Collections.Generic.IReadOnlyCollection<System.String> Aliases { get; }
142
-
public System.Void AddAlias(System.String alias)
143
-
public System.Boolean HasAlias(System.String alias)
144
-
public abstract class Option : IdentifierSymbol, System.CommandLine.Binding.IValueDescriptor
134
+
public abstract class Option : Symbol, System.CommandLine.Binding.IValueDescriptor
135
+
public System.Collections.Generic.ICollection<System.String> Aliases { get; }
145
136
public System.Boolean AllowMultipleArgumentsPerToken { get; set; }
146
137
public System.Boolean AppliesToSelfAndChildren { get; set; }
147
-
public System.String ArgumentHelpName { get; set; }
148
138
public ArgumentArity Arity { get; set; }
149
139
public System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> CompletionSources { get; }
140
+
public System.String HelpName { get; set; }
150
141
public System.Boolean IsRequired { get; set; }
151
142
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.OptionResult>> Validators { get; }
152
143
public System.Type ValueType { get; }
153
144
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
154
145
public class Option<T> : Option, IValueDescriptor<T>, System.CommandLine.Binding.IValueDescriptor
public Func<System.CommandLine.Parsing.ArgumentResult,T> CustomParser { get; set; }
148
+
public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; }
161
149
public System.Void AcceptLegalFileNamesOnly()
162
150
public System.Void AcceptLegalFilePathsOnly()
163
151
public System.Void AcceptOnlyFromAmong(System.String[] values)
164
-
public System.Void SetDefaultValue(T value)
165
-
public System.Void SetDefaultValueFactory(Func<T> defaultValueFactory)
166
152
public static class OptionValidation
167
153
public static Option<System.IO.FileInfo> AcceptExistingOnly(this Option<System.IO.FileInfo> option)
168
154
public static Option<System.IO.DirectoryInfo> AcceptExistingOnly(this Option<System.IO.DirectoryInfo> option)
@@ -194,7 +180,7 @@ System.CommandLine
194
180
public abstract class Symbol
195
181
public System.String Description { get; set; }
196
182
public System.Boolean IsHidden { get; set; }
197
-
public System.String Name { get; set; }
183
+
public System.String Name { get; }
198
184
public System.Collections.Generic.IEnumerable<Symbol> Parents { get; }
199
185
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
200
186
public System.String ToString()
@@ -258,9 +244,9 @@ System.CommandLine.Help
258
244
public static System.String GetArgumentDefaultValue(System.CommandLine.Argument argument)
259
245
public static System.String GetArgumentDescription(System.CommandLine.Argument argument)
260
246
public static System.String GetArgumentUsageLabel(System.CommandLine.Argument argument)
261
-
public static System.String GetIdentifierSymbolDescription(System.CommandLine.IdentifierSymbol symbol)
262
-
public static System.String GetIdentifierSymbolUsageLabel(System.CommandLine.IdentifierSymbol symbol, HelpContext context)
247
+
public static System.String GetCommandUsageLabel(System.CommandLine.Command symbol)
263
248
public static System.Collections.Generic.IEnumerable<System.Action<HelpContext>> GetLayout()
249
+
public static System.String GetOptionUsageLabel(System.CommandLine.Option symbol)
264
250
public static System.Action<HelpContext> OptionsSection()
265
251
public static System.Action<HelpContext> SubcommandsSection()
266
252
public static System.Action<HelpContext> SynopsisSection()
@@ -350,12 +336,14 @@ System.CommandLine.Parsing
350
336
public System.Collections.Generic.IEnumerable<SymbolResult> Children { get; }
351
337
public System.CommandLine.Command Command { get; }
352
338
public Token Token { get; }
339
+
public System.String ToString()
353
340
public class OptionResult : SymbolResult
354
341
public System.Boolean IsImplicit { get; }
355
342
public System.CommandLine.Option Option { get; }
356
343
public Token Token { get; }
357
344
public System.Object GetValueOrDefault()
358
345
public T GetValueOrDefault<T>()
346
+
public System.String ToString()
359
347
public class ParseError
360
348
public System.String Message { get; }
361
349
public SymbolResult SymbolResult { get; }
@@ -374,7 +362,6 @@ System.CommandLine.Parsing
374
362
public OptionResult FindResultFor(System.CommandLine.Option option)
375
363
public T GetValue<T>(Argument<T> argument)
376
364
public T GetValue<T>(Option<T> option)
377
-
public System.String ToString()
378
365
public class Token, System.IEquatable<Token>
379
366
public static System.Boolean op_Equality(Token left, Token right)
380
367
public static System.Boolean op_Inequality(Token left, Token right)
0 commit comments