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

Function display_provider_category

crates/openshell-cli/src/run.rs:5569–5579  ·  view source on GitHub ↗
(category: i32)

Source from the content-addressed store, hash-verified

5567}
5568
5569fn display_provider_category(category: i32) -> &'static str {
5570 match ProviderProfileCategory::try_from(category).unwrap_or(ProviderProfileCategory::Other) {
5571 ProviderProfileCategory::Inference => "INFERENCE",
5572 ProviderProfileCategory::Agent => "AGENT",
5573 ProviderProfileCategory::SourceControl => "SOURCE CONTROL",
5574 ProviderProfileCategory::Messaging => "MESSAGING",
5575 ProviderProfileCategory::Data => "DATA",
5576 ProviderProfileCategory::Knowledge => "KNOWLEDGE",
5577 ProviderProfileCategory::Other | ProviderProfileCategory::Unspecified => "OTHER",
5578 }
5579}
5580
5581const PROVIDER_PROFILE_ID_MAX_WIDTH: usize = 32;
5582const PROVIDER_PROFILE_DISPLAY_MAX_WIDTH: usize = 40;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected