MCPcopy Create free account
hub / github.com/Facets-cloud/flow / boolStr

Function boolStr

internal/app/list.go:451–456  ·  view source on GitHub ↗

boolStr renders booleans as "true"/"" so empty TSV cells stay visually quiet and don't clutter the grep'able stream.

(b bool)

Source from the content-addressed store, hash-verified

449// boolStr renders booleans as "true"/"" so empty TSV cells stay visually
450// quiet and don't clutter the grep'able stream.
451func boolStr(b bool) string {
452 if b {
453 return "true"
454 }
455 return ""
456}
457
458// taskListRow is the row shape that feeds table, JSON, and TSV rendering
459// for `flow list tasks`. Field order matters for JSON output stability.

Callers 4

listTasksCmdFunction · 0.85
listProjectsCmdFunction · 0.85
listPlaybooksCmdFunction · 0.85
listRunsCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected