Class EnvironmentDefaultProvider
- java.lang.Object
-
- org.projectnessie.gc.tool.cli.options.EnvironmentDefaultProvider
-
- All Implemented Interfaces:
picocli.CommandLine.IDefaultValueProvider
public class EnvironmentDefaultProvider extends java.lang.Object implements picocli.CommandLine.IDefaultValueProviderProvides default values for command options.Considers all "long" options (starting with
--), using the conversion"NESSIE_GC_" + optionName..substring(2).replace('-', '_').toUpperCase().For example, the default value for the command line option
--jdbc-passowrdis derived from the environment variableNESSIE_GC_JDBC_PASSWORD.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentDefaultProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdefaultValue(picocli.CommandLine.Model.ArgSpec argSpec)
-