rvesse / airline

Java annotation-based framework for parsing Git like command line structures with deep extensibility
https://rvesse.github.io/airline/
Apache License 2.0
128 stars 20 forks source link

Add @RequiredUnlessEnvironment restriction #114

Closed rvesse closed 2 years ago

rvesse commented 2 years ago

Provides a new restriction annotation that makes an @Option/@Argument annotated field required only if suitable environment variable(s) are not set

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 602


Changes Missing Coverage Covered Lines Changed/Added Lines %
airline-core/src/main/java/com/github/rvesse/airline/restrictions/factories/RequireFromRestrictionFactory.java 9 10 90.0%
airline-core/src/main/java/com/github/rvesse/airline/restrictions/options/RequiredUnlessEnvironmentRestriction.java 20 23 86.96%
<!-- Total: 42 46 91.3% -->
Totals Coverage Status
Change from base Build 598: 0.2%
Covered Lines: 5681
Relevant Lines: 7882

💛 - Coveralls