csharp
public sealed class ConsoleCommandAttributeMarks a static method as a console command.
No guide page documents this yet — the page shows what the code says about itself.
As a annotation
- Valid on
- Method
Remarks
The declaration [13](../../../../docs/plan/13-diagnostics.md) § Diagnostic overlays asks for. What finds them is RegisterFrom, which uses reflection and says so — see its remarks for why that is the honest shape today and what replaces it.
The method must be static and take a single ConsoleContext.
Fields and properties (2)
public string NameWhat is typed to run it.
public string HelpOne line saying what it does, shown by help.
Methods (1)
public ConsoleCommandAttribute(string name)Declares a command.
Used by (1)
- ConsoleCommandsVixen.Engine