Skip to main content

Module project

Module project 

Source
Expand description

The project: opys.toml at the project root (found by searching upward), plus the inventory base it points at (default opys/, holding the document files and _retired.txt).

Structs§

Project

Statics§

KEBAB_RE

Functions§

find_root
Walk up from start (inclusive) to the filesystem root, returning the first directory that contains an opys.toml — the project root.
id_format_re
^PREFIX-\d{pad,}$ — the verify-time id format (pad-or-more digits).
parse_field
Parse a key=value custom-field assignment, coercing the value through YAML (so n=3 is an int, t=[a, b] a list, s=foo a string).
start_dir
The directory to start the opys.toml search from: root made absolute (default . → the current working directory).