Modify CommandParser to use generic type simmilar to CommandHandler #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Summary
Modifying the CommandParser to allow for any type extending the Request type.
Required workarround
Returning an type extending
Request, with the downside that any context in the JavaDoc is lost.Description
Currently its only possible to implement a CommandParser as follows:
After the change, its possible to do it like this:
It gives the code more context without needing to read it.
Additionally IDEs are able to auto generate stubs (like the parse method) using this specified type.
Checklist
assigned to @lars.winzer
created branch
feat/33-commandparser-generic-typeto address this issueadded 5m of time spent at 2026-03-31 12:00:00 +0200
mentioned in merge request !63
mentioned in commit
56667bfb12