Sets an action attached to the specified command.
public static TCommand Add<TCommand>(this TCommand command, Func<CommandRunContext, string[], ValueTask<int>> action)
where TCommand : Command
The command to add the action to.
The action to set for this command.