MCPcopy Create free account
hub / github.com/diillson/chatcli / firstNonEmpty

Function firstNonEmpty

cli/plugins/builtin_graphview.go:305–312  ·  view source on GitHub ↗
(vals ...string)

Source from the content-addressed store, hash-verified

303}
304
305func firstNonEmpty(vals ...string) string {
306 for _, v := range vals {
307 if s := strings.TrimSpace(v); s != "" {
308 return s
309 }
310 }
311 return ""
312}
313
314// parseGraphViewArgs supports flat JSON, the {"cmd","args"} envelope and a
315// minimal --flag argv form.

Callers 3

parseGraphViewArgsFunction · 0.70
normalizeNodeInputsFunction · 0.70
normalizeEdgeInputsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected