-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
CommandExtensions.xml
209 lines (209 loc) · 14.9 KB
/
CommandExtensions.xml
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
<Type Name="CommandExtensions" FullName="System.CommandLine.CommandExtensions">
<TypeSignature Language="C#" Value="public static class CommandExtensions" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit CommandExtensions extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.CommandLine.CommandExtensions" />
<TypeSignature Language="VB.NET" Value="Public Module CommandExtensions" />
<TypeSignature Language="F#" Value="type CommandExtensions = class" />
<TypeSignature Language="C++ CLI" Value="public ref class CommandExtensions abstract sealed" />
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
Provides extension methods for <see cref="T:System.CommandLine.Command" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public static int Invoke (this System.CommandLine.Command command, string commandLine, System.CommandLine.IConsole? console = default);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Invoke(class System.CommandLine.Command command, string commandLine, class System.CommandLine.IConsole console) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.Invoke(System.CommandLine.Command,System.String,System.CommandLine.IConsole)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function Invoke (command As Command, commandLine As String, Optional console As IConsole = Nothing) As Integer" />
<MemberSignature Language="F#" Value="static member Invoke : System.CommandLine.Command * string * System.CommandLine.IConsole -> int" Usage="System.CommandLine.CommandExtensions.Invoke (command, commandLine, console)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="commandLine" Type="System.String" />
<Parameter Name="console" Type="System.CommandLine.IConsole" />
</Parameters>
<Docs>
<param name="command">The command to invoke.</param>
<param name="commandLine">The command line to parse.</param>
<param name="console">The console to which output is written during invocation.</param>
<summary>
Parses and invokes a command.
</summary>
<returns>The exit code for the invocation.</returns>
<remarks>The command line string input will be split into tokens as if it had been passed on the command line.</remarks>
</Docs>
</Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public static int Invoke (this System.CommandLine.Command command, string[] args, System.CommandLine.IConsole? console = default);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Invoke(class System.CommandLine.Command command, string[] args, class System.CommandLine.IConsole console) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.Invoke(System.CommandLine.Command,System.String[],System.CommandLine.IConsole)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function Invoke (command As Command, args As String(), Optional console As IConsole = Nothing) As Integer" />
<MemberSignature Language="F#" Value="static member Invoke : System.CommandLine.Command * string[] * System.CommandLine.IConsole -> int" Usage="System.CommandLine.CommandExtensions.Invoke (command, args, console)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="args" Type="System.String[]" />
<Parameter Name="console" Type="System.CommandLine.IConsole" />
</Parameters>
<Docs>
<param name="command">The command to invoke.</param>
<param name="args">The arguments to parse.</param>
<param name="console">The console to which output is written during invocation.</param>
<summary>
Parses and invokes a command.
</summary>
<returns>The exit code for the invocation.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<int> InvokeAsync (this System.CommandLine.Command command, string commandLine, System.CommandLine.IConsole? console = default);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<int32> InvokeAsync(class System.CommandLine.Command command, string commandLine, class System.CommandLine.IConsole console) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.InvokeAsync(System.CommandLine.Command,System.String,System.CommandLine.IConsole)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function InvokeAsync (command As Command, commandLine As String, Optional console As IConsole = Nothing) As Task(Of Integer)" />
<MemberSignature Language="F#" Value="static member InvokeAsync : System.CommandLine.Command * string * System.CommandLine.IConsole -> System.Threading.Tasks.Task<int>" Usage="System.CommandLine.CommandExtensions.InvokeAsync (command, commandLine, console)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Int32></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="commandLine" Type="System.String" />
<Parameter Name="console" Type="System.CommandLine.IConsole" />
</Parameters>
<Docs>
<param name="command">The command to invoke.</param>
<param name="commandLine">The command line to parse.</param>
<param name="console">The console to which output is written during invocation.</param>
<summary>
Parses and invokes a command.
</summary>
<returns>The exit code for the invocation.</returns>
<remarks>The command line string input will be split into tokens as if it had been passed on the command line.<para>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <see cref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <see cref="M:System.CommandLine.CommandExtensions.Invoke(System.CommandLine.Command,System.String,System.CommandLine.IConsole)" />.</para></remarks>
</Docs>
</Member>
<Member MemberName="InvokeAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<int> InvokeAsync (this System.CommandLine.Command command, string[] args, System.CommandLine.IConsole? console = default);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<int32> InvokeAsync(class System.CommandLine.Command command, string[] args, class System.CommandLine.IConsole console) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.InvokeAsync(System.CommandLine.Command,System.String[],System.CommandLine.IConsole)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function InvokeAsync (command As Command, args As String(), Optional console As IConsole = Nothing) As Task(Of Integer)" />
<MemberSignature Language="F#" Value="static member InvokeAsync : System.CommandLine.Command * string[] * System.CommandLine.IConsole -> System.Threading.Tasks.Task<int>" Usage="System.CommandLine.CommandExtensions.InvokeAsync (command, args, console)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Int32></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="args" Type="System.String[]" />
<Parameter Name="console" Type="System.CommandLine.IConsole" />
</Parameters>
<Docs>
<param name="command">The command to invoke.</param>
<param name="args">The arguments to parse.</param>
<param name="console">The console to which output is written during invocation.</param>
<summary>
Parses and invokes a command.
</summary>
<returns>The exit code for the invocation.</returns>
<remarks>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <see cref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <see cref="M:System.CommandLine.CommandExtensions.Invoke(System.CommandLine.Command,System.String[],System.CommandLine.IConsole)" />.</remarks>
</Docs>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="C#" Value="public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Command command, string commandLine);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.CommandLine.Parsing.ParseResult Parse(class System.CommandLine.Command command, string commandLine) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.Parse(System.CommandLine.Command,System.String)" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function Parse (command As Command, commandLine As String) As ParseResult" />
<MemberSignature Language="F#" Value="static member Parse : System.CommandLine.Command * string -> System.CommandLine.Parsing.ParseResult" Usage="System.CommandLine.CommandExtensions.Parse (command, commandLine)" />
<MemberSignature Language="C++ CLI" Value="public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, System::String ^ commandLine);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CommandLine.Parsing.ParseResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="commandLine" Type="System.String" />
</Parameters>
<Docs>
<param name="command">The command to use to parse the command line input.</param>
<param name="commandLine">A command line string to parse, which can include spaces and quotes equivalent to what can be entered into a terminal.</param>
<summary>
Parses a command line string value using the specified command.
</summary>
<returns>A parse result describing the outcome of the parse operation.</returns>
<remarks>The command line string input will be split into tokens as if it had been passed on the command line.</remarks>
</Docs>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="C#" Value="public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Command command, params string[] args);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.CommandLine.Parsing.ParseResult Parse(class System.CommandLine.Command command, string[] args) cil managed" />
<MemberSignature Language="DocId" Value="M:System.CommandLine.CommandExtensions.Parse(System.CommandLine.Command,System.String[])" />
<MemberSignature Language="VB.NET" Value="<Extension()>
Public Function Parse (command As Command, ParamArray args As String()) As ParseResult" />
<MemberSignature Language="F#" Value="static member Parse : System.CommandLine.Command * string[] -> System.CommandLine.Parsing.ParseResult" Usage="System.CommandLine.CommandExtensions.Parse (command, args)" />
<MemberSignature Language="C++ CLI" Value="public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, ... cli::array <System::String ^> ^ args);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.CommandLine</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CommandLine.Parsing.ParseResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="command" Type="System.CommandLine.Command" RefType="this" />
<Parameter Name="args" Type="System.String[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="command">The command to use to parse the command line input.</param>
<param name="args">The string arguments to parse.</param>
<summary>
Parses an array strings using the specified command.
</summary>
<returns>A parse result describing the outcome of the parse operation.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>