2 instantiations of HelpContext
System.CommandLine (2)
Help\HelpAction.cs (1)
60var helpContext = new HelpContext(Builder,
Help\HelpBuilder.cs (1)
115Write(new HelpContext(this, command, writer));
30 references to HelpContext
System.CommandLine (30)
Help\HelpAction.cs (1)
60var helpContext = new HelpContext(Builder,
Help\HelpBuilder.cs (22)
19private Func<HelpContext, IEnumerable<Func<HelpContext, bool>>>? _getLayout; 39public virtual void Write(HelpContext context) 68Func<HelpContext, string?>? firstColumnText = null, 69Func<HelpContext, string?>? secondColumnText = null, 70Func<HelpContext, string?>? defaultValue = null) 89public void CustomizeLayout(Func<HelpContext, IEnumerable<Func<HelpContext, bool>>> getLayout) 167private IEnumerable<TwoColumnHelpRow> GetCommandArgumentRows(Command command, HelpContext context) => 175private bool WriteSubcommands(HelpContext context) 187private bool WriteAdditionalArguments(HelpContext context) 221public void WriteColumns(IReadOnlyList<TwoColumnHelpRow> items, HelpContext context) 334private IEnumerable<Func<HelpContext, bool>> GetLayout(HelpContext context) 399HelpContext context) 492HelpContext context) 526Func<HelpContext, string?>? getFirstColumn, 527Func<HelpContext, string?>? getSecondColumn, 528Func<HelpContext, string?>? getDefaultValue) 535public Func<HelpContext, string?>? GetFirstColumn { get; } 536public Func<HelpContext, string?>? GetSecondColumn { get; } 537public Func<HelpContext, string?>? GetDefaultValue { get; }
Help\HelpBuilder.Default.cs (7)
172public static IEnumerable<Func<HelpContext, bool>> GetLayout() 185public static Func<HelpContext, bool> SynopsisSection() => 195public static Func<HelpContext, bool> CommandUsageSection() => 205public static Func<HelpContext, bool> CommandArgumentsSection() => 223public static Func<HelpContext, bool> SubcommandsSection() => 229public static Func<HelpContext, bool> OptionsSection() => 289public static Func<HelpContext, bool> AdditionalArgumentsSection() =>