Skip to content

Refactor level-control command registration for clarity - #25

Merged
Adammatthiesen merged 1 commit into
mainfrom
ocd
Aug 17, 2026
Merged

Adammatthiesen merged 1 commit into
mainfrom
ocd

Conversation

@Adammatthiesen

Copy link
Copy Markdown
Member

This pull request refactors the command registration logic in LevelControlCommand to improve clarity and maintainability. The changes separate the construction of each subcommand into individual variables before assembling them under the root command. Additionally, there are minor documentation and formatting updates.

Command registration refactoring:

  • Refactored the register method in LevelControlCommand to build each subcommand (level-up, set-level, status, status-other, configure) separately as variables, then compose them under the root level-control command for clearer structure and easier future modifications. [1] [2]

Documentation and formatting:

  • Fixed a minor typo in Javadoc (unrecognised → unrecognized) in ConfigureCommand.
  • Removed unnecessary blank lines in the configuration documentation table in ConfigureCommand for consistency. [1] [2]

@Adammatthiesen
Adammatthiesen marked this pull request as ready for review August 16, 2026 23:52
@Adammatthiesen
Adammatthiesen merged commit 1b0caf1 into main Aug 17, 2026
1 check passed
@Adammatthiesen
Adammatthiesen deleted the ocd branch August 17, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant