pub fn yamlencode(args: FuncArgs) -> Result<Value, String>Expand description
Deserializes HCL from a object to YAML
Accepts: Any
Returns: String
Example:
let eval = ensan::parse(r#"hi = yamlencode({ key = "value" })"#).unwrap();
let expected = ensan::parse(r#"hi = "key: value""#).unwrap();
assert_eq!(eval, expected);