MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / task_headline

Function task_headline

atomic-cli/src/commands/triage/project.rs:854–859  ·  view source on GitHub ↗

First non-empty line of a task's directive body, trimmed — the walkthrough narrates with headlines, not whole bodies.

(text: &str)

Source from the content-addressed store, hash-verified

852/// First non-empty line of a task's directive body, trimmed — the walkthrough
853/// narrates with headlines, not whole bodies.
854fn task_headline(text: &str) -> &str {
855 text.lines()
856 .map(str::trim)
857 .find(|l| !l.is_empty())
858 .unwrap_or("")
859}
860
861/// Group the candidate modifications into ordered semantic layers.
862///

Callers 1

build_walkthroughFunction · 0.85

Calls 2

linesMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected