Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
414
func
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
TestExtensionUpdateAndRemoveIntegration
Function · 0.70
daemonExtensionUpdateItem
Function · 0.70
TestFormatHelpers
Function · 0.70
agentEventsBundle
Function · 0.70
displaySessionWorkspace
Function · 0.70
TestWorkspaceAddBuildsRequest
Function · 0.70
diagnosticsTable
Function · 0.70
formatTaskOwnership
Function · 0.70
formatTaskActor
Function · 0.70
formatTaskOrigin
Function · 0.70
resolveSkillCommandScope
Function · 0.70
criticalWarnings
Function · 0.70
Calls
no outgoing calls
Tested by
3
TestExtensionUpdateAndRemoveIntegration
Function · 0.56
TestFormatHelpers
Function · 0.56
TestWorkspaceAddBuildsRequest
Function · 0.56