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

Function parse_profile_yaml

crates/openshell-providers/src/profiles.rs:976–978  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

974}
975
976pub fn parse_profile_yaml(input: &str) -> Result<ProviderTypeProfile, ProfileError> {
977 Ok(serde_yml::from_str::<ProviderTypeProfile>(input)?)
978}
979
980pub fn parse_profile_json(input: &str) -> Result<ProviderTypeProfile, ProfileError> {
981 Ok(serde_json::from_str::<ProviderTypeProfile>(input)?)

Calls

no outgoing calls