Skip to content

[#2363] add CommandListener to customize executed commands #2364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

bartoszpop
Copy link

@bartoszpop bartoszpop commented Jan 29, 2025

This pull request introduces a CommandListener configurable with the -Dpicocli.commandListeners system property to customize the command object. (#2363)

@bartoszpop
Copy link
Author

@remkop any chance to have this pr merged?

@remkop remkop added type: API 🔌 theme: parser An issue or change related to the parser labels May 23, 2025
@remkop
Copy link
Owner

remkop commented May 23, 2025

@bartoszpop Sorry but no.
This PR feels too narrow in scope: it solves your particular use case but does not add value beyond that (or for other users).

It also uses language features not supported in Java 5, adds a class in a separate file, and does not provide documentation. It does have tests, which I appreciate.

But these are just issues with the proposed solution, which could be addressed.
My main concern is that I am still not convinced that this is a problem that the picocli library needs to provide a solution to.
I will also add a comment to the #2363 issue.

@remkop remkop closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: parser An issue or change related to the parser type: API 🔌
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants