Expand description
Implementation of the seshat decisions subcommands.
Implementation of the seshat decisions subcommands.
Exposes seshat decisions list (US-013), seshat decisions forget
(US-014), and seshat decisions export / seshat decisions import
(US-015).
Structs§
- Import
Summary - Outcome of an import operation.
Functions§
- export_
decisions_ to_ string - Read all decisions from
databaseand serialise them as a pretty-printed JSON array. Matches the wire shape used byseshat decisions list --format jsonso a round-trip viadecisions importis lossless. - forget_
decision_ with_ database - Resolve and hard-delete a decision by hash or prefix, returning the
removed
Decision. Public seam for the integration test (tests/decisions_forget.rs) that exercises the full “scan → confirm → forget → rescan re-emits” flow without involving stdin. - import_
decisions_ from_ str - Parse
jsonas aVec<DecisionJsonOwned>and apply each row againstdatabaseper the conflict policy: - run_
decisions - Dispatch a
seshat decisions <subcommand>invocation.