MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / get_default_profile

Function get_default_profile

crates/openshell-providers/src/profiles.rs:1712–1716  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

1710
1711#[must_use]
1712pub fn get_default_profile(id: &str) -> Option<&'static ProviderTypeProfile> {
1713 default_profiles()
1714 .iter()
1715 .find(|profile| profile.id.eq_ignore_ascii_case(id))
1716}
1717
1718#[cfg(test)]
1719mod tests {

Calls 1

default_profilesFunction · 0.85