Skip to main content

Module registry

Module registry 

Source
Expand description

A machine-wide registry of known wipe projects, plus a filesystem scanner.

Because collaboration is git-only, there’s no server that “knows” your projects. The daemon records every board it serves here so the UI can list and switch between them - but a board cloned onto a fresh machine has never been served, so it wouldn’t appear. scan closes that gap by walking the disk for .wipe directories and registering whatever it finds, so serving from anywhere surfaces every board you have locally.

Structs§

ProjectEntry
One registered project.

Functions§

default_scan_roots
Default roots to scan when none are configured: the user’s home directory.
list
List all registered projects that still have a .wipe board, annotating each with its current board name.
prune
Remove any registered projects whose .wipe no longer exists on disk.
register
Record a project root in the registry (idempotent). Best-effort: persistence failures are ignored so serving never breaks over a registry issue. Returns true if it was newly added.
scan
Walk roots (to max_depth levels) for .wipe boards and register each one. Returns the newly-registered roots. Heavy/generated directories are skipped and a board directory is never descended into (boards don’t nest). A visit cap bounds the worst case on very large trees.