Expand description
Command implementations for the gonzalo admin CLI.
Structs§
- Debouncer
- Coalesces a burst of filesystem change notifications so a rapid series of
edits triggers a single re-index rather than one per event. The clock is
injected (
now), so the logic is deterministic and unit-testable without real sleeps — the seam the watcher loop drives withInstant::now(). - GcSummary
- Summary returned by
gc. - Ignored
Counts - How many paths a walk declined to index.
- Index
Filter - Decides which repo-relative paths are eligible for indexing.
- Index
Summary - Summary returned by
index. - Migrate
Summary - Summary returned by
migrate. - Sync
Summary - Summary returned by
sync_stores. - Ticket
Sync Report - Per-connection ingest result.
- Watch
Config - Timing knobs for
watch.
Functions§
- gc
- Sweep orphaned code-graph slices from the store at
root. - get
- Fetch a single record, or
Noneif it does not exist. - index
- Index the source files under
srcinto the(repo, view)code-graph view: parse each file into a content-addressed slice, then reconcile the view’s manifest to the tree (ADR 0012). Re-running updates the view. - index_
with index, with control over which paths enter the view.- index_
with_ gc indexthe(repo, view)view, then — whengc_after— sweep orphaned slices. The opt-in post-index trigger of gonzalo#104: the sweep runs only after a successful index and always goes throughgc, which marks against every live view’s manifest (never a per-view subset), so a slice the just- indexed view dropped but another view still references is preserved.- index_
with_ gc_ filtered index_with_gc, with control over which paths enter the view (#209).- list
- Return all record keys in the store, optionally filtered by namespace / collection.
- migrate
- Recursively import every file under
srcas a record in the fs store atroot. Idempotent: if the key already exists, skip it. - status
- Count of records grouped by
"namespace/collection". - sync_
stores - Sync two filesystem stores via [
gonzalo_core::sync]. - ticket_
move - Move a board card to the column for
category. Selects the connection namedconnection, or the sole connection if there is exactly one. - ticket_
sync - Load the ticket config, build each connection’s source, and ingest its
tickets into the fs store at
root. - watch
- Watch
srcand keep the(repo, view)code-graph view in sync until Ctrl-C. Runs one index up front, then re-indexes on a debounced burst of filesystem changes and on a periodic full-reconcile tick. Long-running: returnsOk(())on graceful shutdown.