Skip to main content

Module store

Module store 

Source
Expand description

The on-disk store: one issues.org per project, parsed and rewritten whole.

Structs§

IssueDoc
One project’s issues.org: a preamble followed by top-level headings.

Constants§

ID_SEED_ENV
Environment variable that pins the id seed.

Functions§

collect_org_ids
Every :ID: value in any org file under the layout prefix.
default_preamble
The header a fresh project file gets.
detect_project_from_ctx
Walk up from start for a .project-ctx.toml and read [project].name.
find_by_id
Locate one issue by id across every project.
find_org_ids
Look for wanted among every :ID: under the layout prefix, including design documents and notes, and stop once every requested id has been seen. Returns the subset that exists.
generate_id
A free project-suffix id, or an error when the space is full.
list_projects
Every project directory under the layout prefix that holds an issues.org.
load_all
Snapshot every heading across every project, tagged with its project.
project_selected
Whether a project belongs to a --project selection.
replace_file_atomically
Replace path with body through a flushed temporary and a rename.
resolve_existing_project_case
Map a project name onto the directory that already exists, ignoring case. An unmatched name is returned unchanged so create can make it.
with_issues_lock
Serialize every read-modify-write cycle on one issues.org.
with_issues_locks
Lock several files in sorted order, which makes a cross-project move deadlock-free.