Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evolution-gaming/config-tools
Typesafe config helpers
https://github.com/evolution-gaming/config-tools
config scala
Last synced: about 2 months ago
JSON representation
Typesafe config helpers
- Host: GitHub
- URL: https://github.com/evolution-gaming/config-tools
- Owner: evolution-gaming
- License: mit
- Created: 2018-02-11T13:08:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T10:35:01.000Z (6 months ago)
- Last Synced: 2024-07-18T13:12:24.340Z (6 months ago)
- Topics: config, scala
- Language: Scala
- Size: 22.5 KB
- Stars: 2
- Watchers: 12
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Config tools [![Build Status](https://github.com/evolution-gaming/config-tools/workflows/CI/badge.svg)](https://github.com/evolution-gaming/config-tools/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/evolution-gaming/config-tools/badge.svg)](https://coveralls.io/r/evolution-gaming/config-tools) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/f795ec1f2b2f4fe99c94e154b147db8e)](https://app.codacy.com/gh/evolution-gaming/config-tools/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Version](https://img.shields.io/badge/version-click-blue)](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming&a=config-tools_2.13&repos=public) [![License: MIT](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://opensource.org/licenses/MIT)
## ConfigHelper.scala example
```scala
import com.evolutiongaming.config.ConfigHelper._val config = ConfigFactory.load()
config.get[FiniteDuration]("path") // FiniteDurationconfig.getOpt[FiniteDuration]("path") // Option[FiniteDuration]
config.get[String]("path") // String
ConfigFactory.parseString("key:[1,2]").get[List[Int]]("key") // List(1,2)
ConfigFactory.parseString("""key:"1,2" """).get[List[Int]]("key") // List(1,2)
ConfigFactory.parseString("""key:"1;2" """).get[List[Int]]("key") // List(1,2)
```## Setup
```scala
resolvers += Resolver.bintrayRepo("evolutiongaming", "maven")libraryDependencies += "com.evolutiongaming" %% "config-tools" % "1.0.0"
```