FiniteReality/Finite.Commands

Failure to compile when no parameters are given to a command

JeremyEspresso opened this issue · 0 comments

Creating a command without any parameters will make it fail to compile.

Code snippet used:

[Group("test")]
public class TestModule : Module
{
   [Command("ping")]
   public ValueTask<ICommandResult> PingPongCommand()
   {
      Console.WriteLine("ping received - ponging");
      return new ValueTask<ICommandResult>(new NoContentCommandResult());
    }
}

Generated Output: