[][src]Function rash_core::modules::get_param

pub fn get_param(yaml: &Yaml, key: &str) -> Result<String>

Get param from Yaml with rash Error wrappers.

Example

This example is not tested
let param = get_param(&yaml, "foo").unwrap();
assert_eq!(param, "boo");