[][src]Function rash_core::modules::get_param_bool

pub fn get_param_bool(yaml: &Yaml, key: &str) -> Result<bool>

Get param from Yaml with rash Error wrappers.

Example

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