Skip to main content

Crate plugmem_cli

Crate plugmem_cli 

Source
Expand description

plugmem — the command-line surface over the temporal-memory engine, a thin wrapper around plugmem_host::Database. Parse the arguments, call one engine verb, render the result — human text by default, --json for tooling and agents. No memory logic lives here; that is the engine’s.

Exit codes: 0 success; 1 a soft miss (the target fact does not exist, or the database is locked by another process); 2 a usage or runtime error. This makes the binary scriptable as a gate.

The logic is in this library (not main.rs) so it is unit-testable: run wires argv and the database, and execute runs one command against an open Database into any writer.

Functions§

run
Parses argv and runs one command, mapping the result to a process exit code. The binary’s main is a one-liner over this; the wiring itself is [run_parsed], which is unit-testable (only Cli::parse is not).