mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Nu env vars from config have higher priority. (#1294)
This commit is contained in:
committed by
GitHub
parent
9ec6d0c90e
commit
9b4ba09c95
@ -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
|
||||
|
Reference in New Issue
Block a user