-module(cactus@util). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([parse_gleam_toml/1]). -spec parse_gleam_toml(binary()) -> {ok, gleam@dict:dict(binary(), tom:toml())} | {error, cactus@errors:cactus_err()}. parse_gleam_toml(Path) -> gleam@result:'try'( cactus@errors:as_fs_err(simplifile:read(Path), Path), fun(Body) -> _pipe = tom:parse(Body), cactus@errors:as_err(_pipe, invalid_toml_err) end ).