Skip to main content

Module task

Module task 

Source

Structs§

Task
TaskDetail
Full task projection used by show/get_task responses.
TaskSummary
Compact task projection used by list/ready/create/update responses.

Enums§

Priority
Status
TaskType

Functions§

filename
Build the filename for a task: {id}-{slug}.md
generate_id
Generate a short alphanumeric ID, retrying on collision or YAML-unsafe IDs.
is_active
Whether a task is in an “active” status (not done or cancelled).
matches_tag
Whether a task matches the given tag (if any).
parse_task
Parse a task from markdown content with YAML frontmatter.
render_task
Render a task back to markdown with YAML frontmatter.
slugify
Convert a title to a URL-friendly slug.
sort_by_priority_owned
Canonical sort: priority ascending (P0 first), then creation date ascending.