Class CommandMetadataAttribute
Attribute to define command metadata for auto-registration and help generation. Apply to ICommandFactory implementations for automatic discovery.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CommandMetadataAttribute : Attribute
- Inheritance
-
objectAttributeCommandMetadataAttribute
Constructors
CommandMetadataAttribute(string)
public CommandMetadataAttribute(string commandName)
Parameters
commandNamestring
Properties
Aliases
Aliases for the command (e.g., ["gold", "ag"])
public string[] Aliases { get; set; }
Property Value
- string[]
CommandName
Primary command name (e.g., "add_gold")
public string CommandName { get; }
Property Value
- string
Description
Description of what the command does
public string Description { get; set; }
Property Value
- string
Examples
Example invocations (e.g., "add_gold 100", "add_gold -50 5")
public string[] Examples { get; set; }
Property Value
- string[]
Usage
Usage example showing command syntax.
public string Usage { get; set; }
Property Value
- string