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

13 lines
228 B
Markdown
Raw Permalink Normal View History

2024-02-08 05:58:06 +03:00
# `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",
}
```