2 instantiations of CommandLineApplication
NuGet.CommandLine.XPlat (2)
Program.cs (1)
316var app = new CommandLineApplication();
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandLineApplication.cs (1)
68var command = new CommandLineApplication(throwOnUnexpectedArg) { Name = name, Parent = this };
45 references to CommandLineApplication
NuGet.CommandLine.XPlat (45)
Commands\CommandParsers.cs (1)
14public static void Register(CommandLineApplication app, Func<ILogger> getLogger)
Commands\ConfigCommands\ConfigCommand.cs (1)
81internal static void Register(CommandLineApplication app)
Commands\DeleteCommand.cs (1)
18public static void Register(CommandLineApplication app, Func<ILogger> getLogger)
Commands\LocalsCommand.cs (1)
16public static void Register(CommandLineApplication app, Func<ILogger> getLogger)
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (1)
17public static void Register(CommandLineApplication app, Func<ILogger> getLogger,
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
24CommandLineApplication app,
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (1)
16public static void Register(CommandLineApplication app, Func<ILogger> getLogger,
Commands\PushCommand.cs (1)
19public static void Register(CommandLineApplication app, Func<ILogger> getLogger)
Commands\Signing\SignCommand.cs (1)
22internal static void Register(CommandLineApplication app,
Commands\Signing\TrustedSignersCommand.cs (2)
20internal static void Register(CommandLineApplication app, 325private static CommandOption VerbosityOption(this CommandLineApplication command)
Commands\Signing\VerifyCommand.cs (1)
20internal static void Register(CommandLineApplication app,
Commands\Verbs.cs (6)
15internal static void Register(CommandLineApplication app, 154internal static void Register(CommandLineApplication app, 194internal static void Register(CommandLineApplication app, 234internal static void Register(CommandLineApplication app, 295internal static void Register(CommandLineApplication app, 359internal static void Register(CommandLineApplication app,
Commands\Why\WhyCommand.cs (1)
21internal static void Register(CommandLineApplication app)
Program.cs (7)
156var app = InitializeApp(args, log, virtualProjectBuilder); 304private static CommandLineApplication InitializeApp(string[] args, CommandOutputLogger log, IVirtualProjectBuilder virtualProjectBuilder) 316var app = new CommandLineApplication(); 350private static void ShowBestHelp(CommandLineApplication app, string[] args) 352CommandLineApplication lastCommand = null; 353List<CommandLineApplication> commands = app.Commands; 357foreach (CommandLineApplication command in commands)
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandLineApplication.cs (17)
26Commands = new List<CommandLineApplication>(); 31public CommandLineApplication Parent { get; set; } 47public readonly List<CommandLineApplication> Commands; 55var rootNode = this; 65public CommandLineApplication Command(string name, Action<CommandLineApplication> configuration, 68var command = new CommandLineApplication(throwOnUnexpectedArg) { Name = name, Parent = this }; 127CommandLineApplication command = this; 254var currentCommand = command; 255foreach (var subcommand in command.Commands) 349for (var cmd = this; cmd != null; cmd = cmd.Parent) 360for (var cmd = this; cmd != null; cmd = cmd.Parent) 365CommandLineApplication target; 432foreach (var cmd in commands.OrderBy(c => c.Name)) 467for (var cmd = this; cmd != null; cmd = cmd.Parent) 483var rootCmd = this; 493private void HandleUnexpectedArg(CommandLineApplication command, string[] args, int index, string argTypeName)
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandParsingException.cs (2)
10public CommandParsingException(CommandLineApplication command, string message) 16public CommandLineApplication Command { get; }