Nu env vars from config have higher priority. (#1294)

This commit is contained in:
Andrés N. Robalino
2020-01-28 02:10:15 -05:00
committed by GitHub
parent 9ec6d0c90e
commit 9b4ba09c95
3 changed files with 115 additions and 5 deletions

View File

@ -130,6 +130,11 @@ impl Dictionary {
self.entries.keys()
}
/// Checks if given key exists
pub fn contains_key(&self, key: &str) -> bool {
self.entries.contains_key(key)
}
/// Find the matching Value for a key, if possible
pub fn get_data_by_key(&self, name: Spanned<&str>) -> Option<Value> {
let result = self