picocli icon indicating copy to clipboard operation
picocli copied to clipboard

Access to ArgSpec and OptionSpec setter/getter fields and methods

Open pvlasov opened this issue 6 months ago • 4 comments

Nasdanika CLI operates on top of Picocli. One of its features is generation of HTML documentation site and support of extended documentation. Sample site without extended documentation.

Currently this functionality works with CommandSpec by accessing user object. To extend it to ArgSpec/OptionSpec it is necessary to be able to access underlying fields/methods.

This commit introduces IReflector interface which provides access to AnnotatedElement (Method/Field). This interface is implemented by FieldBinding and Method Binding.

I hope that this modification is in alignment with the Picocli philosophy and will be accepted! Please let me know whether any further action is required from me, e.g. creation of a pull request!

pvlasov avatar Jul 23 '24 23:07 pvlasov