Svelixir.Config (svelixir v0.1.0)

Copy Markdown

Loads, parses, and validates the Svelixir TOML configuration file.

Example

{:ok, config} = Svelixir.Config.load("config.toml")

Summary

Functions

Loads and validates configuration from the given TOML file path.

Types

t()

@type t() :: %Svelixir.Config{
  force: boolean(),
  options: Svelixir.Config.Options.t(),
  project: Svelixir.Config.Project.t()
}

Functions

load(path)

@spec load(String.t()) :: {:ok, t()} | {:error, String.t()}

Loads and validates configuration from the given TOML file path.