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

Function task_headline

atomic-cli/src/commands/triage/project.rs:831–836  ·  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

829/// First non-empty line of a task's directive body, trimmed — the walkthrough
830/// narrates with headlines, not whole bodies.
831fn task_headline(text: &str) -> &str {
832 text.lines()
833 .map(str::trim)
834 .find(|l| !l.is_empty())
835 .unwrap_or("")
836}
837
838/// Group the candidate modifications into ordered semantic layers.
839///

Callers 1

build_walkthroughFunction · 0.85

Calls 2

linesMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected