ConfigParser

io.github.matejcerny.sbtconfig.parser.ConfigParser
object ConfigParser

Parser for HOCON configuration files. Converts Typesafe Config to ProjectConfig model.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def parse(file: File): Either[String, ProjectConfig]

Parse a HOCON config file into ProjectConfig.

Parse a HOCON config file into ProjectConfig.

Value parameters

file

The config file to parse

Attributes

Returns

Either an error message or the parsed ProjectConfig

def parse(content: String): Either[String, ProjectConfig]

Parse a HOCON config string into ProjectConfig.

Parse a HOCON config string into ProjectConfig.

Value parameters

content

The HOCON config string to parse

Attributes

Returns

Either an error message or the parsed ProjectConfig