quarkusio/quarkus

Picocli extension - consider generating command metadata during build

开放

#16,355 创建于 2021年4月8日

 (22 条评论) (0 个反应) (0 位负责人)Java (2,464 个派生)batch import
area/cligood first issuekind/enhancement

仓库指标

星标
 (12,967 个星标)
PR 合并指标
 (平均合并 6天 4小时) (30 天内合并 325 个 PR)

描述

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.

贡献者指南