Skip to main content

Crate gonzalo_cli

Crate gonzalo_cli 

Source
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 with Instant::now().
GcSummary
Summary returned by gc.
IgnoredCounts
How many paths a walk declined to index.
IndexFilter
Decides which repo-relative paths are eligible for indexing.
IndexSummary
Summary returned by index.
MigrateSummary
Summary returned by migrate.
SyncSummary
Summary returned by sync_stores.
TicketSyncReport
Per-connection ingest result.
WatchConfig
Timing knobs for watch.

Functions§

gc
Sweep orphaned code-graph slices from the store at root.
get
Fetch a single record, or None if it does not exist.
index
Index the source files under src into 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
index the (repo, view) view, then — when gc_after — sweep orphaned slices. The opt-in post-index trigger of gonzalo#104: the sweep runs only after a successful index and always goes through gc, 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 src as a record in the fs store at root. 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 named connection, 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 src and 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: returns Ok(()) on graceful shutdown.