Yaml aliases

Cake.Yaml addin

YAML related cake aliases.

In order to use aliases from this addin, you will need to also reference YamlDotNet as an addin. Here is what including Cake.Yaml in your script should look like:

#addin package:?Cake.Yaml
#addin package:?YamlDotNet&version=4.2.1

General

DeserializeYaml<T>(ICakeContext, string)
Alias from Cake.Yaml addin
Deserializes the YAML from a string.
DeserializeYamlFromFile<T>(ICakeContext, FilePath)
Alias from Cake.Yaml addin
Deserializes the YAML from a file.
SerializeYaml<T>(ICakeContext, T)
Alias from Cake.Yaml addin
Serializes an object to a YAML string.
SerializeYamlToFile<T>(ICakeContext, FilePath, T)
Alias from Cake.Yaml addin
Serializes an object to a YAML file.