osp-cli 1.5.1

CLI and REPL for querying and managing OSP infrastructure data
Documentation
1
2
3
4
5
6
7
8
9
pub(crate) fn normalize_identifier(value: &str) -> String {
    value.trim().to_ascii_lowercase()
}

pub(crate) fn normalize_optional_identifier(value: Option<String>) -> Option<String> {
    value
        .map(|value| normalize_identifier(&value))
        .filter(|value| !value.is_empty())
}