nestrs-cli-rs 0.1.0

Rust port of the Nest CLI for the nestrs organization.
Documentation
//! Upstream source: `../nest-cli/lib/compiler/helpers/get-value-or-default.ts`.

use std::collections::BTreeMap;

pub use super::super::ConfigValue;

pub fn get_value_of_path<'a>(
    object: &'a BTreeMap<String, ConfigValue>,
    property_path: &str,
) -> Option<&'a ConfigValue> {
    super::super::get_value_of_path(object, property_path)
}

pub fn get_value_or_default<'a>(
    object: &'a BTreeMap<String, ConfigValue>,
    property_path: &str,
    default: &'a ConfigValue,
) -> &'a ConfigValue {
    super::super::get_value_or_default(object, property_path, default)
}