68 instantiations of CommandLineApplication
Microsoft.AspNetCore.Shared.Tests (68)
CommandLineApplicationTests.cs (67)
19
var app = new
CommandLineApplication
();
40
var app = new
CommandLineApplication
();
61
var app = new
CommandLineApplication
();
81
var app = new
CommandLineApplication
();
102
var app = new
CommandLineApplication
();
121
var app = new
CommandLineApplication
();
141
var app = new
CommandLineApplication
();
161
var app = new
CommandLineApplication
();
175
var app = new
CommandLineApplication
();
195
var app = new
CommandLineApplication
();
214
var app = new
CommandLineApplication
();
235
var app = new
CommandLineApplication
();
254
var app = new
CommandLineApplication
();
269
var app = new
CommandLineApplication
();
286
var app = new
CommandLineApplication
();
299
var app = new
CommandLineApplication
();
312
var app = new
CommandLineApplication
();
325
var app = new
CommandLineApplication
();
339
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
353
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
368
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
383
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
396
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
411
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
426
var app = new
CommandLineApplication
();
441
var app = new
CommandLineApplication
();
459
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
472
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
487
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
502
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
515
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
530
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
545
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
559
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
574
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
589
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
605
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
622
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
636
var app = new
CommandLineApplication
();
651
var app = new
CommandLineApplication
();
669
var app = new
CommandLineApplication
();
684
var app = new
CommandLineApplication
();
703
var app = new
CommandLineApplication
();
719
var app = new
CommandLineApplication
();
741
var app = new
CommandLineApplication
();
763
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
778
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
793
var app = new
CommandLineApplication
();
822
var app = new
CommandLineApplication
();
835
var app = new
CommandLineApplication
();
859
var app = new
CommandLineApplication
();
912
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false)
942
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
969
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false);
996
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
1015
var app = new
CommandLineApplication
()
1042
var app = new
CommandLineApplication
1055
var app = new
CommandLineApplication
(throwOnUnexpectedArg: false)
1067
var app = new
CommandLineApplication
()
1090
var app = new
CommandLineApplication
{ Out = outWriter };
1114
var app = new
CommandLineApplication
();
1127
var app = new
CommandLineApplication
();
1140
var app = new
CommandLineApplication
();
1152
var app = new
CommandLineApplication
();
1163
var app = new
CommandLineApplication
();
1184
var app = new
CommandLineApplication
(treatUnmatchedOptionsAsArguments: true);
1212
var app = new
CommandLineApplication
(treatUnmatchedOptionsAsArguments: false);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
83
var command = new
CommandLineApplication
(throwOnUnexpectedArg) { Name = name, Parent = this };
99 references to CommandLineApplication
Microsoft.AspNetCore.Shared.Tests (99)
CommandLineApplicationTests.cs (80)
19
var
app = new CommandLineApplication();
40
var
app = new CommandLineApplication();
61
var
app = new CommandLineApplication();
81
var
app = new CommandLineApplication();
83
var
testCommand = app.Command("test", c =>
102
var
app = new CommandLineApplication();
121
var
app = new CommandLineApplication();
141
var
app = new CommandLineApplication();
161
var
app = new CommandLineApplication();
175
var
app = new CommandLineApplication();
195
var
app = new CommandLineApplication();
214
var
app = new CommandLineApplication();
235
var
app = new CommandLineApplication();
254
var
app = new CommandLineApplication();
269
var
app = new CommandLineApplication();
271
var
testCmd = app.Command("test", c =>
286
var
app = new CommandLineApplication();
299
var
app = new CommandLineApplication();
312
var
app = new CommandLineApplication();
325
var
app = new CommandLineApplication();
339
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
353
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
368
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
383
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
396
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
411
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
426
var
app = new CommandLineApplication();
441
var
app = new CommandLineApplication();
443
var
testCmd = app.Command("test", c =>
459
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
472
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
487
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
502
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
515
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
530
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
545
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
559
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
574
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
589
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
605
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
622
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
636
var
app = new CommandLineApplication();
651
var
app = new CommandLineApplication();
653
var
testCmd = app.Command("test", c =>
669
var
app = new CommandLineApplication();
684
var
app = new CommandLineApplication();
686
var
testCmd = app.Command("test", c =>
702
CommandLineApplication
subCmd = null;
703
var
app = new CommandLineApplication();
719
var
app = new CommandLineApplication();
721
CommandLineApplication
subCmd = null;
722
var
testCmd = app.Command("k", c =>
741
var
app = new CommandLineApplication();
743
CommandLineApplication
subCmd = null;
744
var
testCmd = app.Command("k", c =>
763
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
778
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
793
var
app = new CommandLineApplication();
799
var
subcmd = app.Command("subcmd", c =>
822
var
app = new CommandLineApplication();
835
var
app = new CommandLineApplication();
859
var
app = new CommandLineApplication();
860
CommandLineApplication
subcmd2 = null;
862
var
subcmd1 = app.Command("lvl1", s1 =>
912
var
app = new CommandLineApplication(throwOnUnexpectedArg: false)
942
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
969
var
app = new CommandLineApplication(throwOnUnexpectedArg: false);
996
var
app = new CommandLineApplication(throwOnUnexpectedArg: false, continueAfterUnexpectedArg: true);
1015
var
app = new CommandLineApplication()
1042
var
app = new CommandLineApplication
1055
var
app = new CommandLineApplication(throwOnUnexpectedArg: false)
1067
var
app = new CommandLineApplication()
1090
var
app = new CommandLineApplication { Out = outWriter };
1114
var
app = new CommandLineApplication();
1127
var
app = new CommandLineApplication();
1140
var
app = new CommandLineApplication();
1152
var
app = new CommandLineApplication();
1163
var
app = new CommandLineApplication();
1184
var
app = new CommandLineApplication(treatUnmatchedOptionsAsArguments: true);
1212
var
app = new CommandLineApplication(treatUnmatchedOptionsAsArguments: false);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (17)
41
Commands = new List<
CommandLineApplication
>();
46
public
CommandLineApplication
Parent { get; set; }
62
public readonly List<
CommandLineApplication
> Commands;
70
var
rootNode = this;
80
public
CommandLineApplication
Command(string name, Action<
CommandLineApplication
> configuration,
83
var
command = new CommandLineApplication(throwOnUnexpectedArg) { Name = name, Parent = this };
144
CommandLineApplication
command = this;
330
var
currentCommand = command;
331
foreach (
var
subcommand in command.Commands)
431
for (
var
cmd = this; cmd != null; cmd = cmd.Parent)
442
for (
var
cmd = this; cmd != null; cmd = cmd.Parent)
447
CommandLineApplication
target;
514
foreach (
var
cmd in commands.OrderBy(c => c.Name))
549
for (
var
cmd = this; cmd != null; cmd = cmd.Parent)
565
var
rootCmd = this;
576
CommandLineApplication
command,
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (2)
10
public CommandParsingException(
CommandLineApplication
command, string message)
16
public
CommandLineApplication
Command { get; }