quarkusio/quarkus

Picocli extension - consider generating command metadata during build

Open

#16 355 ouverte le 8 avr. 2021

Voir sur GitHub
 (22 commentaires) (0 réactions) (0 assignés)Java (2 464 forks)batch import
area/cligood first issuekind/enhancement

Métriques du dépôt

Stars
 (12 967 stars)
Métriques de merge PR
 (Merge moyen 6j 4h) (325 PRs mergées en 30 j)

Description

ATM picocli builds the CommandSpec metadata using reflection every time the application is started. This is OK in most situations but may represent considerable overhead for applications that finish instantly, e.g. some Quarkus CLI commands. It might make sense to analyze the commands during build and either generate some "builder" classes or record the metadata (e.g. using AnnotationProxyBuildItem) and build the metadata in a recorder method.

Guide contributeur