Skip to content

Conversation

@piotrooo
Copy link
Contributor

@piotrooo piotrooo commented Jan 6, 2026

Resolves #1277

Bonus:

  • Cleanup pom.xml (tabs)
  • Add missing package-info.java
  • Align tests to JUnit 6

Signed-off-by: Piotr Olaszewski <piotr.olaszewski@thulium.pl>
Signed-off-by: Piotr Olaszewski <piotr.olaszewski@thulium.pl>
public void setErrorIndex(int errorIndex) {
}
})
.highlighter(new CommandHighlighter(commandRegistry))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would autowire the CommandHighlighter here instead of using new (similar to how the CommandCompleter is autowired as well). I will take care of that on merge.

* @author Piotr Olaszewski
* @since 4.0.1
*/
public class CommandHighlighter implements Highlighter {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great that you have extracted the highlighter in a separate class 👍 That's how I would have done it as well.

fmbenhassine added a commit that referenced this pull request Jan 28, 2026
- Use dependency injection for CommandHighlighter
- Add Javadoc
- Add missing license headers
- Rename test class
- Remove wildcard imports
@fmbenhassine
Copy link
Contributor

Rebased and merged as 03c1f47. Refined in 5272ecb (minor changes mentioned above).

I did not merge bonus points as I want to keep commits minimal and focused on single issues, but those are good to take in another change set.

Thank you for your contribution!

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.

Alias commands are not coloured correctly after update to version 4.0.0

2 participants