Release 1.2.0
This commit is contained in:
@@ -1,8 +1,18 @@
|
||||
namespace Cogwheel;
|
||||
|
||||
/// <summary>
|
||||
/// Attribute for marking methods as commands
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
public class CommandAttribute : Attribute
|
||||
{
|
||||
public string Name = "";
|
||||
/// <summary>
|
||||
/// Optional name of the command, if not provided the method name will be used
|
||||
/// </summary>
|
||||
public string? Name = "";
|
||||
|
||||
/// <summary>
|
||||
/// Optional description of the command
|
||||
/// </summary>
|
||||
public string Description = "";
|
||||
}
|
||||
Reference in New Issue
Block a user