This change aims at improving code reuse and ease of implementation.
Major changes included in this pull request:
Refactored class package structure. Specifically, all commands which are a child of RootCommand are now an additional package deeper beneath com.gorlah.kappabot.subcommand.root (so, all commands).
Command class renamed to CommandPayload as that is more representative of what the class is - additional information usable when processing commands.
Command changed to be an interface so that implementation can be reused down the line.
Subcommand class renamed to Command since that it makes more logical sense.
All commands extend the abstract skeletal class SkeletalKappaBotCommand which implements the Command interface.
This change aims at improving code reuse and ease of implementation.
Major changes included in this pull request:
RootCommand
are now an additional package deeper beneathcom.gorlah.kappabot.subcommand.root
(so, all commands).Command
class renamed toCommandPayload
as that is more representative of what the class is - additional information usable when processing commands.Command
changed to be an interface so that implementation can be reused down the line.Subcommand
class renamed toCommand
since that it makes more logical sense.SkeletalKappaBotCommand
which implements theCommand
interface.