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

Function validation_issue_summary

crates/openshell-tui/src/ui/sandbox_draft.rs:516–533  ·  view source on GitHub ↗
(validation: &str)

Source from the content-addressed store, hash-verified

514}
515
516fn validation_issue_summary(validation: &str) -> String {
517 let mut issues = Vec::new();
518 for line in validation.lines().skip(1) {
519 let Some((category, _)) = line.trim().split_once(':') else {
520 continue;
521 };
522 let label = category.trim().replace('_', " ");
523 if !label.is_empty() && !issues.contains(&label) {
524 issues.push(label);
525 }
526 }
527
528 if issues.is_empty() {
529 validation.lines().next().unwrap_or(validation).to_string()
530 } else {
531 issues.join(", ")
532 }
533}
534
535fn format_endpoint_summary(endpoint: &NetworkEndpoint) -> String {
536 let host_port = if endpoint.port > 0 {

Callers 1

approval_annotationFunction · 0.85

Calls 3

pushMethod · 0.80
is_emptyMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected