Skip to content

Access to ArgSpec and OptionSpec setter/getter fields and methods #2325

@pvlasov

Description

@pvlasov

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions