1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00
wezterm/docs/config/lua/wezterm.serde/yaml_decode.md

228 B

wezterm.serde.yaml_decode(string)

{{since('nightly')}}

Parses the supplied string as yaml and returns the equivalent lua values:

> wezterm.serde.yaml_decode('---\n# comment\nfoo: "bar"')
{
    "foo": "bar",
}