17 instantiations of HelpContext
Microsoft.TemplateEngine.Cli (1)
Help\DotnetHelpAction.cs (1)
33
var helpContext = new
HelpContext
(
Microsoft.TemplateEngine.Cli.UnitTests (16)
ParserTests\HelpTests.cs (16)
73
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
86
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
109
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
132
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
155
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
178
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
202
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
229
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
253
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
282
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
306
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
330
HelpContext helpContext =
new
(new HelpBuilder(), myCommand, sw);
376
HelpContext helpContext =
new
(new HelpBuilder(maxWidth: 100), myCommand, sw);
400
HelpContext helpContext =
new
(new HelpBuilder(maxWidth: 50), myCommand, sw);
443
HelpContext helpContext =
new
(new HelpBuilder(maxWidth: 50), myCommand, sw);
467
HelpContext helpContext =
new
(new HelpBuilder(maxWidth: 50), myCommand, sw);
67 references to HelpContext
dotnet (7)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (3)
17
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
39
private static void WriteHelpOptions(
HelpContext
context)
49
private static void WriteUsageSection(
HelpContext
context)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (2)
1001
public void WritePlatformAndExtensionOptions(
HelpContext
context,
1025
private void WriteOtherOptionsSection(
HelpContext
context, string title, IEnumerable<CommandLineOptionMessage> options)
Parser.cs (2)
318
public static void additionalOption(
HelpContext
context)
340
public override void Write(
HelpContext
context)
Microsoft.TemplateEngine.Cli (44)
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 (9)
19
public static void WriteHelp(
HelpContext
context, InstantiateCommandArgs instantiateCommandArgs, IEngineEnvironmentSettings environmentSettings)
89
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
263
HelpContext
context)
286
HelpContext
context)
368
internal static void ShowUsage(Command? command, IReadOnlyList<string> shortNames,
HelpContext
context)
400
private static IEnumerable<TemplateOption> CollectOptionsToShow(IEnumerable<TemplateCommand> templates,
HelpContext
context)
441
private static void WriteCustomInstantiateHelp(
HelpContext
context, Command command)
461
private static void CustomUsageSection(
HelpContext
context, Command command)
473
HelpContext
context,
Commands\ICustomHelp.cs (1)
18
IEnumerable<Action<
HelpContext
>> CustomHelpLayout();
Commands\NewCommand.Help.cs (1)
11
public IEnumerable<Action<
HelpContext
>> CustomHelpLayout()
Help\DotnetHelpAction.cs (1)
33
var
helpContext = new HelpContext(
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)
413
private IEnumerable<TwoColumnHelpRow> GetCommandArgumentRows(Command command,
HelpContext
context) =>
421
private bool WriteSubcommands(
HelpContext
context)
433
private bool WriteAdditionalArguments(
HelpContext
context)
464
private IEnumerable<Func<
HelpContext
, bool>> GetLayout(
HelpContext
context)
477
HelpContext
context)
512
Func<
HelpContext
, string?>? getFirstColumn,
513
Func<
HelpContext
, string?>? getSecondColumn,
514
Func<
HelpContext
, string?>? getDefaultValue)
521
public Func<
HelpContext
, string?>? GetFirstColumn { get; }
523
public Func<
HelpContext
, string?>? GetSecondColumn { get; }
525
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() =>
Microsoft.TemplateEngine.Cli.UnitTests (16)
ParserTests\HelpTests.cs (16)
73
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
86
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
109
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
132
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
155
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
178
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
202
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
229
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
253
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
282
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
306
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
330
HelpContext
helpContext = new(new HelpBuilder(), myCommand, sw);
376
HelpContext
helpContext = new(new HelpBuilder(maxWidth: 100), myCommand, sw);
400
HelpContext
helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw);
443
HelpContext
helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw);
467
HelpContext
helpContext = new(new HelpBuilder(maxWidth: 50), myCommand, sw);