object ConfigKey
- Companion:
- class
Value members
Concrete methods
Returns a new ConfigKey for the specified environment variable.
Returns a new ConfigKey for the specified environment variable.
- Example:
scala> val apiKey = ConfigKey.env("API_KEY") apiKey: ConfigKey = ConfigKey(environment variable API_KEY) scala> apiKey.description res0: String = environment variable API_KEY
Returns the description for the specified ConfigKey.
Returns the description for the specified ConfigKey.
This function enables pattern matching on ConfigKeys.
- Example:
scala> val apiKey = ConfigKey.env("API_KEY") apiKey: ConfigKey = ConfigKey(environment variable API_KEY) scala> apiKey match { case ConfigKey(description) => description } res0: String = environment variable API_KEY