|
49 | 49 | public System.Void Add(Option option) |
50 | 50 | public System.Void Add(Command command) |
51 | 51 | public System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem> GetCompletions(System.CommandLine.Completions.CompletionContext context) |
52 | | - public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, CommandLineConfiguration configuration = null) |
53 | | - public ParseResult Parse(System.String commandLine, CommandLineConfiguration configuration = null) |
| 52 | + public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args, ParserConfiguration configuration = null) |
| 53 | + public ParseResult Parse(System.String commandLine, ParserConfiguration configuration = null) |
54 | 54 | public System.Void SetAction(System.Action<ParseResult> action) |
55 | 55 | public System.Void SetAction(System.Func<ParseResult,System.Int32> action) |
56 | 56 | public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task> action) |
57 | 57 | public System.Void SetAction(System.Func<ParseResult,System.Threading.Tasks.Task> action) |
58 | 58 | public System.Void SetAction(System.Func<ParseResult,System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Int32>> action) |
59 | | - public class CommandLineConfiguration |
60 | | - .ctor(Command rootCommand) |
61 | | - public System.Boolean EnableDefaultExceptionHandler { get; set; } |
62 | | - public System.Boolean EnablePosixBundling { get; set; } |
63 | | - public System.IO.TextWriter Error { get; set; } |
64 | | - public System.IO.TextWriter Output { get; set; } |
65 | | - public System.Nullable<System.TimeSpan> ProcessTerminationTimeout { get; set; } |
66 | | - public System.CommandLine.Parsing.TryReplaceToken ResponseFileTokenReplacer { get; set; } |
67 | | - public Command RootCommand { get; } |
68 | | - public System.Int32 Invoke(System.String commandLine) |
69 | | - public System.Int32 Invoke(System.String[] args) |
70 | | - public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, System.Threading.CancellationToken cancellationToken = null) |
71 | | - public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, System.Threading.CancellationToken cancellationToken = null) |
72 | | - public ParseResult Parse(System.Collections.Generic.IReadOnlyList<System.String> args) |
73 | | - public ParseResult Parse(System.String commandLine) |
74 | | - public System.Void ThrowIfInvalid() |
75 | | - public class CommandLineConfigurationException : System.Exception, System.Runtime.Serialization.ISerializable |
76 | | - .ctor(System.String message) |
77 | 59 | public static class CompletionSourceExtensions |
78 | 60 | 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) |
79 | 61 | 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) |
|
88 | 70 | public class EnvironmentVariablesDirective : Directive |
89 | 71 | .ctor() |
90 | 72 | public System.CommandLine.Invocation.CommandLineAction Action { get; set; } |
| 73 | + public class InvocationConfiguration |
| 74 | + .ctor() |
| 75 | + public System.Boolean EnableDefaultExceptionHandler { get; set; } |
| 76 | + public System.IO.TextWriter Error { get; set; } |
| 77 | + public System.IO.TextWriter Output { get; set; } |
| 78 | + public System.Nullable<System.TimeSpan> ProcessTerminationTimeout { get; set; } |
91 | 79 | public abstract class Option : Symbol |
92 | 80 | public System.CommandLine.Invocation.CommandLineAction Action { get; set; } |
93 | 81 | public System.Collections.Generic.ICollection<System.String> Aliases { get; } |
|
115 | 103 | public static Option<System.IO.DirectoryInfo> AcceptExistingOnly(this Option<System.IO.DirectoryInfo> option) |
116 | 104 | public static Option<System.IO.FileSystemInfo> AcceptExistingOnly(this Option<System.IO.FileSystemInfo> option) |
117 | 105 | public static Option<T> AcceptExistingOnly<T>(this Option<T> option) |
| 106 | + public class ParserConfiguration |
| 107 | + .ctor() |
| 108 | + public System.Boolean EnablePosixBundling { get; set; } |
| 109 | + public System.CommandLine.Parsing.TryReplaceToken ResponseFileTokenReplacer { get; set; } |
118 | 110 | public class ParseResult |
119 | 111 | public System.CommandLine.Invocation.CommandLineAction Action { get; } |
120 | 112 | public System.CommandLine.Parsing.CommandResult CommandResult { get; } |
121 | | - public CommandLineConfiguration Configuration { get; } |
| 113 | + public ParserConfiguration Configuration { get; } |
122 | 114 | public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.ParseError> Errors { get; } |
| 115 | + public InvocationConfiguration InvocationConfiguration { get; } |
123 | 116 | public System.CommandLine.Parsing.CommandResult RootCommandResult { get; } |
124 | 117 | public System.Collections.Generic.IReadOnlyList<System.CommandLine.Parsing.Token> Tokens { get; } |
125 | 118 | public System.Collections.Generic.IReadOnlyList<System.String> UnmatchedTokens { get; } |
|
137 | 130 | public T GetValue<T>(Argument<T> argument) |
138 | 131 | public T GetValue<T>(Option<T> option) |
139 | 132 | public T GetValue<T>(System.String name) |
140 | | - public System.Int32 Invoke() |
141 | | - public System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.Threading.CancellationToken cancellationToken = null) |
| 133 | + public System.Int32 Invoke(InvocationConfiguration configuration = null) |
| 134 | + public System.Threading.Tasks.Task<System.Int32> InvokeAsync(InvocationConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = null) |
142 | 135 | public System.String ToString() |
143 | 136 | public class RootCommand : Command, System.Collections.IEnumerable |
144 | 137 | public static System.String ExecutableName { get; } |
@@ -212,8 +205,8 @@ System.CommandLine.Parsing |
212 | 205 | public System.Void OnlyTake(System.Int32 numberOfTokens) |
213 | 206 | public System.String ToString() |
214 | 207 | public static class CommandLineParser |
215 | | - public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.Collections.Generic.IReadOnlyList<System.String> args, System.CommandLine.CommandLineConfiguration configuration = null) |
216 | | - public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.String commandLine, System.CommandLine.CommandLineConfiguration configuration = null) |
| 208 | + public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.Collections.Generic.IReadOnlyList<System.String> args, System.CommandLine.ParserConfiguration configuration = null) |
| 209 | + public static System.CommandLine.ParseResult Parse(System.CommandLine.Command command, System.String commandLine, System.CommandLine.ParserConfiguration configuration = null) |
217 | 210 | public static System.Collections.Generic.IEnumerable<System.String> SplitCommandLine(System.String commandLine) |
218 | 211 | public class CommandResult : SymbolResult |
219 | 212 | public System.Collections.Generic.IEnumerable<SymbolResult> Children { get; } |
|
0 commit comments