feat(01-01): add Phase 1 deps and implement config/CLI loading

- Add signal-hook 0.4.3, toml 1.0.3, serde 1.0, clap 4.5 to Cargo.toml
- Create src/config.rs with Config struct (deny_unknown_fields, serde defaults)
- Implement load_config() with vault_path resolution relative to config file dir
- Implement resolve_config_path() using binary-adjacent bbs.toml as default
- Implement print_config_error() with BBS-themed error messages
- Implement detect_login_shell() and parse_cli() with argv[0] dash stripping
- Create src/terminal.rs with init_terminal(), restore_terminal(), install_panic_hook()
- Wire early startup path in src/main.rs before terminal initialization
This commit is contained in:
2026-02-28 21:12:29 +01:00
parent b258b6d262
commit 65313eac31
4 changed files with 2077 additions and 0 deletions
Generated
+1905
View File
File diff suppressed because it is too large Load Diff