Skip to main content

CommandAttribute

A class in Root.Township, Alta.Console.

Marks a static method as a console command. CommandCollection finds these methods inside classes with ModuleAttribute.

Constructors​

MemberWhat it is
CommandAttribute(string command, string description)Creates a CommandAttribute from command.
CommandAttribute(string command)Creates a CommandAttribute from command.

Properties​

MemberWhat it is
string Command { get; private set; }The word typed to run the command.
string Description { get; private set; }Help text for the command. Empty if not given.
bool IsLoggingValuesAsTable { get; set; }If set, the command's result is logged as a table. Used by list style commands.

Used in​

Members of other types that take, return or hold a CommandAttribute: