Add factory_reset Rust command

Tears down all per-user stores, clears credentials from keyring,
then removes ~/.local/share/qbz/, ~/.cache/qbz/, and ~/.config/qbz/.
Makes teardown_type_alias_state public for reuse.
This commit is contained in:
vicrodh committed 2026-02-08 14:03:38 -06:00
1 parent 2d94430c0a
commit 2c0dc66b17
4 files changed
+148 -1

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ where
}
/// Helper to teardown a type-alias state
fn teardown_type_alias_state<S>(state: &Arc<Mutex<Option<S>>>) {
pub fn teardown_type_alias_state<S>(state: &Arc<Mutex<Option<S>>>) {
if let Ok(mut guard) = state.lock() {
*guard = None;
}