1 instantiation of HelpContext
dotnet-aot (1)
parent\dotnet\ParserOptionActions.cs (1)
106
var helpContext = new
HelpContext
(Builder, command, output, parseResult);
53 references to HelpContext
dotnet-aot (8)
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (5)
18
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
40
private static void WriteHelpOptions(
HelpContext
context)
50
private static void WriteUsageSection(
HelpContext
context)
206
HelpContext
context,
226
private static void WriteOtherOptionsSection(
HelpContext
context, string title, IEnumerable<CommandLineOptionMessage> options)
parent\dotnet\Parser.cs (2)
425
public static void additionalOption(
HelpContext
context)
447
public override void Write(
HelpContext
context)
parent\dotnet\ParserOptionActions.cs (1)
106
var
helpContext = new HelpContext(Builder, command, output, parseResult);
Microsoft.DotNet.Cli.Definitions (31)
Commands\Test\TestCommandDefinition.MicrosoftTestingPlatform.cs (1)
299
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
Help\HelpBuilder.cs (22)
16
private Func<
HelpContext
, IEnumerable<Func<
HelpContext
, bool>>>? _getLayout;
39
public virtual void Write(
HelpContext
context)
64
Func<
HelpContext
, string?>? firstColumnText = null,
65
Func<
HelpContext
, string?>? secondColumnText = null,
66
Func<
HelpContext
, string?>? defaultValue = null)
85
public void CustomizeLayout(Func<
HelpContext
, IEnumerable<Func<
HelpContext
, bool>>> getLayout)
111
public void WriteColumns(IReadOnlyList<TwoColumnHelpRow> items,
HelpContext
context)
177
HelpContext
context)
435
private IEnumerable<TwoColumnHelpRow> GetCommandArgumentRows(Command command,
HelpContext
context) =>
452
private bool WriteSubcommands(
HelpContext
context)
464
private bool WriteAdditionalArguments(
HelpContext
context)
495
private IEnumerable<Func<
HelpContext
, bool>> GetLayout(
HelpContext
context)
508
HelpContext
context)
543
Func<
HelpContext
, string?>? getFirstColumn,
544
Func<
HelpContext
, string?>? getSecondColumn,
545
Func<
HelpContext
, string?>? getDefaultValue)
552
public Func<
HelpContext
, string?>? GetFirstColumn { get; }
554
public Func<
HelpContext
, string?>? GetSecondColumn { get; }
556
public Func<
HelpContext
, string?>? GetDefaultValue { get; }
Help\HelpBuilder.Default.cs (7)
101
public static IEnumerable<Func<
HelpContext
, bool>> GetLayout()
114
public static Func<
HelpContext
, bool> SynopsisSection() =>
124
public static Func<
HelpContext
, bool> CommandUsageSection() =>
134
public static Func<
HelpContext
, bool> CommandArgumentsSection() =>
152
public static Func<
HelpContext
, bool> SubcommandsSection() =>
158
public static Func<
HelpContext
, bool> OptionsSection() =>
217
public static Func<
HelpContext
, bool> AdditionalArgumentsSection() =>
Help\ICustomHelp.cs (1)
17
IEnumerable<Action<
HelpContext
>> CustomHelpLayout();
Microsoft.TemplateEngine.Cli (14)
ChoiceTemplateParameter.cs (1)
48
internal override Func<
HelpContext
, string?>? GetCustomFirstColumnText(TemplateOption o)
CliTemplateParameter.cs (2)
189
internal virtual Func<
HelpContext
, string?>? GetCustomFirstColumnText(TemplateOption o)
198
internal Func<
HelpContext
, string?>? GetCustomSecondColumnText()
Commands\create\InstantiateCommand.Help.cs (10)
20
public static void WriteHelp(
HelpContext
context, InstantiateCommandArgs instantiateCommandArgs, IEngineEnvironmentSettings environmentSettings)
84
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
99
internal static bool TryWriteCommandHelp(
HelpContext
context, InstantiateCommandArgs instantiateCommandArgs)
274
HelpContext
context)
297
HelpContext
context)
379
internal static void ShowUsage(Command? command, IReadOnlyList<string> shortNames,
HelpContext
context)
411
private static IEnumerable<TemplateOption> CollectOptionsToShow(IEnumerable<TemplateCommand> templates,
HelpContext
context)
452
private static void WriteCustomInstantiateHelp(
HelpContext
context, Command command)
472
private static void CustomUsageSection(
HelpContext
context, Command command)
484
HelpContext
context,
Commands\NewCommand.Help.cs (1)
11
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()