Release 1.2.0

This commit is contained in:
2025-01-02 13:54:01 -06:00
parent 60979355d4
commit 99ba6e1710
11 changed files with 527 additions and 144 deletions

View File

@@ -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 = "";
}