12 references to Command
dotnet (4)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
31var (builtInOptions, nonBuiltInOptions) = GetAllOptions(context.Command.Options); 52context.Output.WriteLine(Indent + string.Join(" ", GetCustomUsageParts(context.Command)));
Parser.cs (2)
322foreach (Option option in context.Command.Options) 342var command = context.Command;
Microsoft.TemplateEngine.Cli (8)
Help\HelpBuilder.cs (3)
236? $"[{GetArgumentDefaultValue(context.Command, argument, true, context)}]" 423var subcommands = context.Command.Subcommands.Where(x => !x.Hidden).Select(x => GetTwoColumnRow(x, context)).ToArray(); 435if (!context.Command.TreatUnmatchedTokensAsErrors)
Help\HelpBuilder.Default.cs (5)
117ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpDescriptionTitle(), ctx.Command.Description, ctx.Output); 127ctx.HelpBuilder.WriteHeading(LocalizationResources.HelpUsageTitle(), ctx.HelpBuilder.GetUsage(ctx.Command), ctx.Output); 137TwoColumnHelpRow[] commandArguments = ctx.HelpBuilder.GetCommandArgumentRows(ctx.Command, ctx).ToArray(); 163foreach (Option option in ctx.Command.Options) 175Command? current = ctx.Command;