Class CommandGroupInfo
- Namespace
- Signal.Application.Commands
- Assembly
- Signal.Application.dll
The group a command belongs to (CommandGroupAttribute).
public sealed record CommandGroupInfo : IEquatable<CommandGroupInfo>
- Inheritance
-
CommandGroupInfo
- Implements
- Inherited Members
Constructors
CommandGroupInfo(string, IReadOnlyList<string>, string?)
The group a command belongs to (CommandGroupAttribute).
public CommandGroupInfo(string Name, IReadOnlyList<string> Aliases, string? Description)
Parameters
NamestringThe group name.
AliasesIReadOnlyList<string>Alternative group names.
DescriptionstringOne-line description for help.
Properties
Aliases
Alternative group names.
public IReadOnlyList<string> Aliases { get; init; }
Property Value
Description
One-line description for help.
public string? Description { get; init; }
Property Value
Name
The group name.
public string Name { get; init; }
Property Value
Methods
From(CommandGroupAttribute)
Creates the group info from an attribute.
public static CommandGroupInfo From(CommandGroupAttribute attribute)
Parameters
attributeCommandGroupAttributeThe attribute.
Returns
- CommandGroupInfo
The group info.