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

Function push_section

crates/openshell-tui/src/ui/create_provider.rs:646–660  ·  view source on GitHub ↗
(
    lines: &mut Vec<Line<'_>>,
    title: &'static str,
    values: &[String],
    t: &crate::theme::Theme,
)

Source from the content-addressed store, hash-verified

644}
645
646fn push_section(
647 lines: &mut Vec<Line<'_>>,
648 title: &'static str,
649 values: &[String],
650 t: &crate::theme::Theme,
651) {
652 lines.push(Line::from(""));
653 lines.push(Line::from(Span::styled(title, t.heading)));
654 for value in values {
655 lines.push(Line::from(vec![
656 Span::styled(" - ", t.muted),
657 Span::styled(value.clone(), t.text),
658 ]));
659 }
660}
661
662// ---------------------------------------------------------------------------
663// Update provider modal

Callers 1

draw_detailFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected