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

Function format_gateway_select_header

crates/openshell-cli/src/run.rs:634–643  ·  view source on GitHub ↗
(gateways: &[GatewayMetadata])

Source from the content-addressed store, hash-verified

632}
633
634fn format_gateway_select_header(gateways: &[GatewayMetadata]) -> String {
635 let (name_width, endpoint_width, type_width) = gateway_select_column_widths(gateways);
636 format!(
637 " {:<name_width$} {:<endpoint_width$} {:<type_width$} {}",
638 "NAME".bold(),
639 "ENDPOINT".bold(),
640 "TYPE".bold(),
641 "AUTH".bold(),
642 )
643}
644
645fn format_gateway_select_items(gateways: &[GatewayMetadata]) -> Vec<String> {
646 let (name_width, endpoint_width, type_width) = gateway_select_column_widths(gateways);

Calls 1