2 instantiations of CommandLineApplication
dotnet-getdocument (2)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
83
var command = new
CommandLineApplication
(throwOnUnexpectedArg) { Name = name, Parent = this };
src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
41
var app = new
CommandLineApplication
(throwOnUnexpectedArg, continueAfterUnexpectedArg: true)
30 references to CommandLineApplication
dotnet-getdocument (30)
Commands\InvokeCommand.cs (1)
27
public override void Configure(
CommandLineApplication
command)
ProjectOptions.cs (1)
22
public void Configure(
CommandLineApplication
command)
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; }
src\Tools\GetDocumentInsider\src\Commands\CommandBase.cs (1)
26
public virtual void Configure(
CommandLineApplication
command)
src\Tools\GetDocumentInsider\src\Commands\HelpCommandBase.cs (1)
15
public override void Configure(
CommandLineApplication
command)
src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
41
var
app = new CommandLineApplication(throwOnUnexpectedArg, continueAfterUnexpectedArg: true)
src\Tools\Shared\CommandLine\CommandLineApplicationExtensions.cs (6)
12
public static CommandOption HelpOption(this
CommandLineApplication
app)
15
public static CommandOption VerboseOption(this
CommandLineApplication
app)
18
public static void OnExecute(this
CommandLineApplication
app, Action action)
25
public static CommandOption Option(this
CommandLineApplication
command, string template, string description)
37
public static void VersionOptionFromAssemblyAttributes(this
CommandLineApplication
app)
40
public static void VersionOptionFromAssemblyAttributes(this
CommandLineApplication
app, Assembly assembly)