MCPcopy Create free account
hub / github.com/compozy/agh / firstNonEmpty

Function firstNonEmpty

internal/cli/format.go:414–421  ·  view source on GitHub ↗
(values ...string)

Source from the content-addressed store, hash-verified

412}
413
414func firstNonEmpty(values ...string) string {
415 for _, value := range values {
416 if trimmed := strings.TrimSpace(value); trimmed != "" {
417 return trimmed
418 }
419 }
420 return ""
421}

Callers 12

TestFormatHelpersFunction · 0.70
agentEventsBundleFunction · 0.70
displaySessionWorkspaceFunction · 0.70
diagnosticsTableFunction · 0.70
formatTaskOwnershipFunction · 0.70
formatTaskActorFunction · 0.70
formatTaskOriginFunction · 0.70
resolveSkillCommandScopeFunction · 0.70
criticalWarningsFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestFormatHelpersFunction · 0.56