Expand description
init — create the encrypted vault (Vault::create), initialize the core event schema + CLI
config table (via Session::create), and FORCE the §8 key-backup step. The key-backup path is a
required argument: a vault with no backed-up key is unrecoverable, so init never skips it.
Functions§
- run
- Create the vault and force a key backup. Delegates to
run_with_repair(.., false). The ~24 existing callers (tests + main.rs) use this 3-arg form and are UNCHANGED (R0-I1). - run_
with_ repair - Like
run, but whenrepairis true delegates toSession::repairto clear a half-created vault (orphan key + no pgp/bak) before initializing fresh. Called bymain.rsinit --repair.