Skip to main content

Module init

Module init 

Source
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 when repair is true delegates to Session::repair to clear a half-created vault (orphan key + no pgp/bak) before initializing fresh. Called by main.rs init --repair.