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