YamlConfigManager

io.github.srs.config.YamlConfigManager
final case class YamlConfigManager[F[_]](path: Path)(using evidence$1: Files[F], evidence$2: Sync[F]) extends ConfigManager[F]

A configuration manager that reads a YAML file from the specified path and provides methods to save a yaml configuration.

Type parameters

F

the effect type

Value parameters

path

the path to the YAML configuration file

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ConfigManager[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Loads the simulation configuration from the YAML file.

Loads the simulation configuration from the YAML file.

Attributes

Returns

a ConfigResult containing the parsed SimulationConfig

Definition Classes
override def save(config: SimulationConfig[Environment]): F[Unit]

Saves the simulation configuration to a YAML file.

Saves the simulation configuration to a YAML file.

Value parameters

config

the configuration to save

Attributes

Returns

an effect that completes when the configuration is saved

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product