Table of Contents

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

Name string

The group name.

Aliases IReadOnlyList<string>

Alternative group names.

Description string

One-line description for help.

Properties

Aliases

Alternative group names.

public IReadOnlyList<string> Aliases { get; init; }

Property Value

IReadOnlyList<string>

Description

One-line description for help.

public string? Description { get; init; }

Property Value

string

Name

The group name.

public string Name { get; init; }

Property Value

string

Methods

From(CommandGroupAttribute)

Creates the group info from an attribute.

public static CommandGroupInfo From(CommandGroupAttribute attribute)

Parameters

attribute CommandGroupAttribute

The attribute.

Returns

CommandGroupInfo

The group info.