pub fn forget_decision_with_database(
database: &Database,
hash: &str,
) -> Result<Decision, CliError>Expand description
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.
This bypasses both project resolution and the interactive prompt: the
caller supplies an already-open Database, and the helper performs
the same resolve-then-delete sequence the --yes path uses.