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