17 instantiations of HelpContext
Microsoft.TemplateEngine.Cli (1)
Help\DotnetHelpAction.cs (1)
33var helpContext = new HelpContext(
Microsoft.TemplateEngine.Cli.UnitTests (16)
ParserTests\HelpTests.cs (16)
73HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 86HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 109HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 132HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 155HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 178HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 202HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 229HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 253HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 282HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 306HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 330HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 376HelpContext helpContext = new(new HelpBuilder(maxWidth: 100), myCommand, sw); 400HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw); 443HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw); 467HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw);
67 references to HelpContext
dotnet (7)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (3)
17public IEnumerable<Action<HelpContext>> CustomHelpLayout() 39private static void WriteHelpOptions(HelpContext context) 49private static void WriteUsageSection(HelpContext context)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (2)
1001public void WritePlatformAndExtensionOptions(HelpContext context, 1025private void WriteOtherOptionsSection(HelpContext context, string title, IEnumerable<CommandLineOptionMessage> options)
Parser.cs (2)
318public static void additionalOption(HelpContext context) 340public override void Write(HelpContext context)
Microsoft.TemplateEngine.Cli (44)
ChoiceTemplateParameter.cs (1)
48internal override Func<HelpContext, string?>? GetCustomFirstColumnText(TemplateOption o)
CliTemplateParameter.cs (2)
189internal virtual Func<HelpContext, string?>? GetCustomFirstColumnText(TemplateOption o) 198internal Func<HelpContext, string?>? GetCustomSecondColumnText()
Commands\create\InstantiateCommand.Help.cs (9)
19public static void WriteHelp(HelpContext context, InstantiateCommandArgs instantiateCommandArgs, IEngineEnvironmentSettings environmentSettings) 89public IEnumerable<Action<HelpContext>> CustomHelpLayout() 263HelpContext context) 286HelpContext context) 368internal static void ShowUsage(Command? command, IReadOnlyList<string> shortNames, HelpContext context) 400private static IEnumerable<TemplateOption> CollectOptionsToShow(IEnumerable<TemplateCommand> templates, HelpContext context) 441private static void WriteCustomInstantiateHelp(HelpContext context, Command command) 461private static void CustomUsageSection(HelpContext context, Command command) 473HelpContext context,
Commands\ICustomHelp.cs (1)
18IEnumerable<Action<HelpContext>> CustomHelpLayout();
Commands\NewCommand.Help.cs (1)
11public IEnumerable<Action<HelpContext>> CustomHelpLayout()
Help\DotnetHelpAction.cs (1)
33var helpContext = new HelpContext(
Help\HelpBuilder.cs (22)
16private Func<HelpContext, IEnumerable<Func<HelpContext, bool>>>? _getLayout; 39public virtual void Write(HelpContext context) 64Func<HelpContext, string?>? firstColumnText = null, 65Func<HelpContext, string?>? secondColumnText = null, 66Func<HelpContext, string?>? defaultValue = null) 85public void CustomizeLayout(Func<HelpContext, IEnumerable<Func<HelpContext, bool>>> getLayout) 111public void WriteColumns(IReadOnlyList<TwoColumnHelpRow> items, HelpContext context) 177HelpContext context) 413private IEnumerable<TwoColumnHelpRow> GetCommandArgumentRows(Command command, HelpContext context) => 421private bool WriteSubcommands(HelpContext context) 433private bool WriteAdditionalArguments(HelpContext context) 464private IEnumerable<Func<HelpContext, bool>> GetLayout(HelpContext context) 477HelpContext context) 512Func<HelpContext, string?>? getFirstColumn, 513Func<HelpContext, string?>? getSecondColumn, 514Func<HelpContext, string?>? getDefaultValue) 521public Func<HelpContext, string?>? GetFirstColumn { get; } 523public Func<HelpContext, string?>? GetSecondColumn { get; } 525public Func<HelpContext, string?>? GetDefaultValue { get; }
Help\HelpBuilder.Default.cs (7)
101public static IEnumerable<Func<HelpContext, bool>> GetLayout() 114public static Func<HelpContext, bool> SynopsisSection() => 124public static Func<HelpContext, bool> CommandUsageSection() => 134public static Func<HelpContext, bool> CommandArgumentsSection() => 152public static Func<HelpContext, bool> SubcommandsSection() => 158public static Func<HelpContext, bool> OptionsSection() => 217public static Func<HelpContext, bool> AdditionalArgumentsSection() =>
Microsoft.TemplateEngine.Cli.UnitTests (16)
ParserTests\HelpTests.cs (16)
73HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 86HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 109HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 132HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 155HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 178HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 202HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 229HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 253HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 282HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 306HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 330HelpContext helpContext = new(new HelpBuilder(), myCommand, sw); 376HelpContext helpContext = new(new HelpBuilder(maxWidth: 100), myCommand, sw); 400HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw); 443HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw); 467HelpContext helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw);