-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt
More file actions
284 lines (284 loc) · 18.5 KB
/
ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt
File metadata and controls
284 lines (284 loc) · 18.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
System.CommandLine
public abstract class Argument : Symbol
public ArgumentArity Arity { get; set; }
public System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> CompletionSources { get; }
public System.Boolean HasDefaultValue { get; }
public System.String HelpName { get; set; }
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.ArgumentResult>> Validators { get; }
public System.Type ValueType { get; }
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
public System.Object GetDefaultValue()
public System.String ToString()
public class Argument<T> : Argument
.ctor(System.String name)
public Func<System.CommandLine.Parsing.ArgumentResult,T> CustomParser { get; set; }
public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; }
public System.Boolean HasDefaultValue { get; }
public System.Type ValueType { get; }
public struct ArgumentArity : System.ValueType, System.IEquatable<ArgumentArity>
public static ArgumentArity ExactlyOne { get; }
public static ArgumentArity OneOrMore { get; }
public static ArgumentArity Zero { get; }
public static ArgumentArity ZeroOrMore { get; }
public static ArgumentArity ZeroOrOne { get; }
.ctor(System.Int32 minimumNumberOfValues, System.Int32 maximumNumberOfValues)
public System.Int32 MaximumNumberOfValues { get; }
public System.Int32 MinimumNumberOfValues { get; }
public System.Boolean Equals(ArgumentArity other)
public System.Boolean Equals(System.Object obj)
public System.Int32 GetHashCode()
public static class ArgumentValidation
public static Argument<System.IO.FileInfo> AcceptExistingOnly(this Argument<System.IO.FileInfo> argument)
public static Argument<System.IO.DirectoryInfo> AcceptExistingOnly(this Argument<System.IO.DirectoryInfo> argument)
public static Argument<System.IO.FileSystemInfo> AcceptExistingOnly(this Argument<System.IO.FileSystemInfo> argument)
public static Argument<T> AcceptExistingOnly<T>(this Argument<T> argument)
public static Argument<T> AcceptLegalFileNamesOnly<T>(this Argument<T> argument)
public static Argument<T> AcceptLegalFilePathsOnly<T>(this Argument<T> argument)
public static Argument<T> AcceptOnlyFromAmong<T>(this Argument<T> argument, System.String[] values)
public class Command : Symbol, System.Collections.IEnumerable
.ctor(System.String name, System.String description = null)
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Collections.Generic.ICollection<System.String> Aliases { get; }
public System.Collections.Generic.IList<Argument> Arguments { get; }
public System.Collections.Generic.IEnumerable<Symbol> Children { get; }
public System.Collections.Generic.IList<Option> Options { get; }
public System.Collections.Generic.IList<Command> Subcommands { get; }
public System.Boolean TreatUnmatchedTokensAsErrors { get; set; }
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.CommandResult>> Validators { get; }
public System.Void Add(Argument argument)
public System.Void Add(Option option)
public System.Void Add(Command command)
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, ParserConfiguration configuration = null)
public ParseResult Parse(System.String commandLine, ParserConfiguration configuration = null)
public System.Void SetAction(System.Action<ParseResult> action)
public System.Void SetAction(System.Func<ParseResult,System.Int32> action)
public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task> action)
public System.Void SetAction(System.Func<ParseResult,System.Threading.Tasks.Task> action)
public System.Void SetAction(System.Func<ParseResult,System.Threading.Tasks.Task<System.Int32>> action)
public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Int32>> action)
public static class CompletionSourceExtensions
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)
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)
public class DiagramDirective : Directive
.ctor()
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Int32 ParseErrorReturnValue { get; set; }
public class Directive : Symbol
.ctor(System.String name)
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
public class EnvironmentVariablesDirective : Directive
.ctor()
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public class InvocationConfiguration
.ctor()
public System.Boolean EnableDefaultExceptionHandler { get; set; }
public System.IO.TextWriter Error { get; set; }
public System.IO.TextWriter Output { get; set; }
public System.Nullable<System.TimeSpan> ProcessTerminationTimeout { get; set; }
public abstract class Option : Symbol
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Collections.Generic.ICollection<System.String> Aliases { get; }
public System.Boolean AllowMultipleArgumentsPerToken { get; set; }
public ArgumentArity Arity { get; set; }
public System.Collections.Generic.List<System.Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> CompletionSources { get; }
public System.Boolean HasDefaultValue { get; }
public System.String HelpName { get; set; }
public System.Boolean Recursive { get; set; }
public System.Boolean Required { get; set; }
public System.Collections.Generic.List<System.Action<System.CommandLine.Parsing.OptionResult>> Validators { get; }
public System.Type ValueType { get; }
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
public System.Object GetDefaultValue()
public class Option<T> : Option
.ctor(System.String name, System.String[] aliases)
public Func<System.CommandLine.Parsing.ArgumentResult,T> CustomParser { get; set; }
public Func<System.CommandLine.Parsing.ArgumentResult,T> DefaultValueFactory { get; set; }
public System.Type ValueType { get; }
public Option<T> AcceptLegalFileNamesOnly()
public Option<T> AcceptLegalFilePathsOnly()
public Option<T> AcceptOnlyFromAmong(System.String[] values)
public static class OptionValidation
public static Option<System.IO.FileInfo> AcceptExistingOnly(this Option<System.IO.FileInfo> option)
public static Option<System.IO.DirectoryInfo> AcceptExistingOnly(this Option<System.IO.DirectoryInfo> option)
public static Option<System.IO.FileSystemInfo> AcceptExistingOnly(this Option<System.IO.FileSystemInfo> option)
public static Option<T> AcceptExistingOnly<T>(this Option<T> option)
public class ParsableArgument<T> : Argument<T>
.ctor(System.String name)
public class ParsableListArgument<T> : Argument<List<T>>
.ctor(System.String name)
public class ParsableListOption<T> : Option<List<T>>
.ctor(System.String name, System.String[] aliases)
public class ParsableOption<T> : Option<T>
.ctor(System.String name, System.String[] aliases)
public class ParserConfiguration
.ctor()
public System.Boolean EnablePosixBundling { get; set; }
public System.CommandLine.Parsing.TryReplaceToken ResponseFileTokenReplacer { get; set; }
public class ParseResult
public System.CommandLine.Invocation.CommandLineAction Action { get; }
public System.CommandLine.Parsing.CommandResult CommandResult { get; }
public ParserConfiguration Configuration { get; }
public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.ParseError> Errors { get; }
public InvocationConfiguration InvocationConfiguration { get; }
public System.CommandLine.Parsing.CommandResult RootCommandResult { get; }
public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.Token> Tokens { get; }
public System.Collections.Generic.IReadOnlyList<System.String> UnmatchedTokens { get; }
public System.CommandLine.Completions.CompletionContext GetCompletionContext()
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.Nullable<System.Int32> position = null)
public T GetRequiredValue<T>(Argument<T> argument)
public T GetRequiredValue<T>(Option<T> option)
public T GetRequiredValue<T>(System.String name)
public System.CommandLine.Parsing.ArgumentResult GetResult(Argument argument)
public System.CommandLine.Parsing.CommandResult GetResult(Command command)
public System.CommandLine.Parsing.OptionResult GetResult(Option option)
public System.CommandLine.Parsing.DirectiveResult GetResult(Directive directive)
public System.CommandLine.Parsing.SymbolResult GetResult(Symbol symbol)
public System.CommandLine.Parsing.SymbolResult GetResult(System.String name)
public T GetValue<T>(Argument<T> argument)
public T GetValue<T>(Option<T> option)
public T GetValue<T>(System.String name)
public System.Int32 Invoke(InvocationConfiguration configuration = null)
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(InvocationConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = null)
public System.String ToString()
public class RootCommand : Command, System.Collections.IEnumerable
public static System.String ExecutableName { get; }
public static System.String ExecutablePath { get; }
.ctor(System.String description = )
public System.Collections.Generic.IList<Directive> Directives { get; }
public System.Void Add(Directive directive)
public class SpanParsableArgument<T> : Argument<T>
.ctor(System.String name)
public class SpanParsableOption<T> : Option<T>
.ctor(System.String name, System.String[] aliases)
public abstract class Symbol
public System.String Description { get; set; }
public System.Boolean Hidden { get; set; }
public System.String Name { get; }
public System.Collections.Generic.IEnumerable<Symbol> Parents { get; }
public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context)
public System.String ToString()
public class VersionOption : Option
.ctor()
.ctor(System.String name, System.String[] aliases)
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Type ValueType { get; }
System.CommandLine.Completions
public class CompletionContext
public static CompletionContext Empty { get; }
public System.CommandLine.ParseResult ParseResult { get; }
public System.String WordToComplete { get; }
public class CompletionItem, System.IEquatable<CompletionItem>
.ctor(System.String label, System.String kind = Value, System.String sortText = null, System.String insertText = null, System.String documentation = null, System.String detail = null)
public System.String Detail { get; }
public System.String Documentation { get; set; }
public System.String InsertText { get; }
public System.String Kind { get; }
public System.String Label { get; }
public System.String SortText { get; }
public System.Boolean Equals(CompletionItem other)
public System.Boolean Equals(System.Object obj)
public System.Int32 GetHashCode()
public System.String ToString()
public class SuggestDirective : System.CommandLine.Directive
.ctor()
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public class TextCompletionContext : CompletionContext
public System.String CommandLineText { get; }
public System.Int32 CursorPosition { get; }
public TextCompletionContext AtCursorPosition(System.Int32 position)
System.CommandLine.Help
public class HelpAction : System.CommandLine.Invocation.SynchronousCommandLineAction
.ctor()
public System.Boolean ClearsParseErrors { get; }
public System.Int32 MaxWidth { get; set; }
public System.Int32 Invoke(System.CommandLine.ParseResult parseResult)
public class HelpOption : System.CommandLine.Option
.ctor()
.ctor(System.String name, System.String[] aliases)
public System.CommandLine.Invocation.CommandLineAction Action { get; set; }
public System.Type ValueType { get; }
System.CommandLine.Invocation
public abstract class AsynchronousCommandLineAction : CommandLineAction
public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.CommandLine.ParseResult parseResult, System.Threading.CancellationToken cancellationToken = null)
public abstract class CommandLineAction
public System.Boolean ClearsParseErrors { get; }
public System.Boolean Terminating { get; }
protected System.Void set_Terminating(System.Boolean value)
public class ParseErrorAction : SynchronousCommandLineAction
.ctor()
public System.Boolean ShowHelp { get; set; }
public System.Boolean ShowTypoCorrections { get; set; }
public System.Int32 Invoke(System.CommandLine.ParseResult parseResult)
public abstract class SynchronousCommandLineAction : CommandLineAction
public System.Int32 Invoke(System.CommandLine.ParseResult parseResult)
System.CommandLine.Parsing
public class ArgumentResult : SymbolResult
public System.CommandLine.Argument Argument { get; }
public System.Boolean Implicit { get; }
public System.Void AddError(System.String errorMessage)
public T GetValueOrDefault<T>()
public System.Void OnlyTake(System.Int32 numberOfTokens)
public System.String ToString()
public static class CommandLineParser
public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.Collections.Generic.IReadOnlyList<System.String> args, System.CommandLine.ParserConfiguration configuration = null)
public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.String commandLine, System.CommandLine.ParserConfiguration configuration = null)
public static System.Collections.Generic.IEnumerable<System.String> SplitCommandLine(System.String commandLine)
public class CommandResult : SymbolResult
public System.Collections.Generic.IEnumerable<SymbolResult> Children { get; }
public System.CommandLine.Command Command { get; }
public Token IdentifierToken { get; }
public System.String ToString()
public class DirectiveResult : SymbolResult
public System.CommandLine.Directive Directive { get; }
public Token Token { get; }
public System.Collections.Generic.IReadOnlyList<System.String> Values { get; }
public class OptionResult : SymbolResult
public Token IdentifierToken { get; }
public System.Int32 IdentifierTokenCount { get; }
public System.Boolean Implicit { get; }
public System.CommandLine.Option Option { get; }
public T GetValueOrDefault<T>()
public System.String ToString()
public class ParseError
public System.String Message { get; }
public SymbolResult SymbolResult { get; }
public System.String ToString()
public abstract class SymbolResult
public System.Collections.Generic.IEnumerable<ParseError> Errors { get; }
public SymbolResult Parent { get; }
public System.Collections.Generic.IReadOnlyList<Token> Tokens { get; }
public System.Void AddError(System.String errorMessage)
public T GetRequiredValue<T>(Argument<T> argument)
public T GetRequiredValue<T>(Option<T> option)
public T GetRequiredValue<T>(System.String name)
public ArgumentResult GetResult(System.CommandLine.Argument argument)
public CommandResult GetResult(System.CommandLine.Command command)
public OptionResult GetResult(System.CommandLine.Option option)
public DirectiveResult GetResult(System.CommandLine.Directive directive)
public SymbolResult GetResult(System.String name)
public T GetValue<T>(Argument<T> argument)
public T GetValue<T>(Option<T> option)
public T GetValue<T>(System.String name)
public class Token, System.IEquatable<Token>
public static System.Boolean op_Equality(Token left, Token right)
public static System.Boolean op_Inequality(Token left, Token right)
.ctor(System.String value, TokenType type, System.CommandLine.Symbol symbol)
public TokenType Type { get; }
public System.String Value { get; }
public System.Boolean Equals(System.Object obj)
public System.Boolean Equals(Token other)
public System.Int32 GetHashCode()
public System.String ToString()
public enum TokenType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable
Argument=0
Command=1
Option=2
DoubleDash=3
Directive=4
public delegate TryReplaceToken : System.MulticastDelegate, System.ICloneable, System.Runtime.Serialization.ISerializable
.ctor(System.Object object, System.IntPtr method)
public System.IAsyncResult BeginInvoke(System.String tokenToReplace, ref System.Collections.Generic.IReadOnlyList<System.String> replacementTokens, ref System.String& errorMessage, System.AsyncCallback callback, System.Object object)
public System.Boolean EndInvoke(ref System.Collections.Generic.IReadOnlyList<System.String> replacementTokens, ref System.String& errorMessage, System.IAsyncResult result)
public System.Boolean Invoke(System.String tokenToReplace, ref System.Collections.Generic.IReadOnlyList<System.String> replacementTokens, ref System.String& errorMessage)