HelpTopicFluent
ConsoleMonster.Help
The fluent methods of HelpTopic, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- HelpTopicFluent
Methods
public static HelpTopic CommandLine(HelpTopic helpTopic, CommandLineHelp? value) #Sets HelpTopic.CommandLine: Optional compact command-line layout; null retains the PowerShell help layout.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value ConsoleMonster.Help.CommandLineHelp?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.CommandLine = value; helpTopic.CommandLine(value);public static HelpTopic CommandLine(HelpTopic helpTopic, Action<CommandLineHelp> configure) #Configures HelpTopic.CommandLine in place (creating it when not set): Optional compact command-line layout; null retains the PowerShell help layout.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- configure System.Action<ConsoleMonster.Help.CommandLineHelp>
- Configures the value.
public static HelpTopic CommonParameters(HelpTopic helpTopic, bool value = true) #Sets HelpTopic.CommonParameters: Whether the command takes the common parameters (-Verbose, -ErrorAction and the others).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpTopic.CommonParameters = value; helpTopic.CommonParameters(value);public static HelpTopic Description(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Description: The description paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Description(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Description: The description paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Example(HelpTopic helpTopic, HelpExample item) #Adds an item to HelpTopic.Examples: The examples.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpExample
- The item.
public static HelpTopic Examples(HelpTopic helpTopic, IEnumerable<HelpExample> items) #Adds items to HelpTopic.Examples: The examples.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpExample>
- The items, in order.
public static HelpTopic Input(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Inputs: The input types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Inputs(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Inputs: The input types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Link(HelpTopic helpTopic, HelpLink item) #Adds an item to HelpTopic.Links: The related links.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpLink
- The item.
public static HelpTopic Links(HelpTopic helpTopic, IEnumerable<HelpLink> items) #Adds items to HelpTopic.Links: The related links.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpLink>
- The items, in order.
public static HelpTopic Module(HelpTopic helpTopic, string? value) #Sets HelpTopic.Module: The module the command comes from, or null; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Module = value; helpTopic.Module(value);public static HelpTopic Note(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Notes: The notes paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Notes(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Notes: The notes paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Notice(HelpTopic helpTopic, string? value) #Sets HelpTopic.Notice: A note shown muted under the name (for example that only partial help is installed), or null.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Notice = value; helpTopic.Notice(value);public static HelpTopic Output(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Outputs: The output types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Outputs(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Outputs: The output types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Parameter(HelpTopic helpTopic, HelpParameter item) #Adds an item to HelpTopic.Parameters: The parameters, in help order.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpParameter
- The item.
public static HelpTopic Parameters(HelpTopic helpTopic, IEnumerable<HelpParameter> items) #Adds items to HelpTopic.Parameters: The parameters, in help order.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpParameter>
- The items, in order.
public static HelpTopic SupportsWhatIf(HelpTopic helpTopic, bool value = true) #Sets HelpTopic.SupportsWhatIf: Whether the command takes -WhatIf and -Confirm; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpTopic.SupportsWhatIf = value; helpTopic.SupportsWhatIf(value);public static HelpTopic Synopsis(HelpTopic helpTopic, string? value) #Sets HelpTopic.Synopsis: The one-line summary, or null.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Synopsis = value; helpTopic.Synopsis(value);public static HelpTopic Syntax(HelpTopic helpTopic, HelpSyntax item) #Adds an item to HelpTopic.Syntax: One syntax per parameter set.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpSyntax
- The item.
public static HelpTopic Syntax(HelpTopic helpTopic, IEnumerable<HelpSyntax> items) #Adds items to HelpTopic.Syntax: One syntax per parameter set.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpSyntax>
- The items, in order.
public static HelpTopic Version(HelpTopic helpTopic, string? value) #Sets HelpTopic.Version: The command's version, or null; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Version = value; helpTopic.Version(value);