Skip to main content

Module config

Module config 

Source

Structs§

DeclaredDir
One directory a project declares prunable, and the command that puts it back.
LastPrune
What the most recent prune pass deleted, for devp restore --last-run.
PerRepoConfig
Structured per-repository configuration file stored inside repo roots as .devprune.json.
Prunable
The nested half of a repository’s config: what this project says is rebuildable.
PruneRunSummary
A one-line summary of a completed prune pass, for devp stats.
PrunedDir
One directory a prune pass deleted.
Registry
The top-level registry structure persisted to disk.
RepoConfigLayers
A repository’s configuration as the two files that can contribute to it.
RepoEntry
Metadata for a single registered repository.
RestoreRate
One adapter’s observed restore throughput on this machine.
Settings
Global settings that control prune behavior.

Enums§

Adoption
Outcome of recording a repository’s identity when it was registered.
ConfigSource
Which of a repository’s two config files an effective value came from.

Functions§

canonical_key
Normalise a repository path into the form used as a registry key.
ensure_in_git_exclude
Ensure an entry (e.g. “.devprune.json”) is in the repository’s .git/info/exclude.
expand_tilde
Expand a leading ~ to the user’s home directory.
write_project_starter
Write a starter project.devprune.json: a schema link, and the empty section.