···4949 keys: Vec<String>,
5050 },
51515252- /// Sets the mode for Safir (KV-file store or SQLite store - active on next run)
5353- Mode { mode: SafirMode },
5252+ /// Sets the mode for Safir (active on the next run of Safir)
5353+ Mode {
5454+ /// Mode to set (KV-file store or SQLite DB store)
5555+ mode: SafirMode,
5656+ },
54575558 /// List all values in the store
5659 List,
···55 path::{Path, PathBuf},
66};
7788+/// Debug flag for testing without affecting my existing store
99+const DEBUG: bool = true;
1010+811/// Confirmation dialog for important calls
912pub fn confirm_entry(msg: &str) -> bool {
1013 let mut answer = String::new();
···54575558/// Create the .safirstore directory in the user HOME
5659pub fn create_safir_workspace() -> PathBuf {
6060+ let store_dir = if DEBUG {
6161+ ".safirstore_debug"
6262+ } else {
6363+ ".safirstore"
6464+ };
6565+6666+ if DEBUG {
6767+ println!("DEBUG: Creating safir store at debug location");
6868+ }
6969+5770 match dirs::home_dir() {
5871 Some(home) => {
5959- let working_dir = home.join(".safirstore");
7272+ let working_dir = home.join(store_dir);
6073 fs::create_dir_all(&working_dir).expect("unable to create main directory");
61746275 working_dir