mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-10 11:23:41 +02:00
feat: customizable data storage path
This commit is contained in:
@@ -9,6 +9,12 @@ pub struct AppConfig {
|
||||
pub surrealdb_password: String,
|
||||
pub surrealdb_namespace: String,
|
||||
pub surrealdb_database: String,
|
||||
// #[serde(default = "default_data_dir")]
|
||||
pub data_dir: String,
|
||||
}
|
||||
|
||||
fn default_data_dir() -> String {
|
||||
"./data".to_string()
|
||||
}
|
||||
|
||||
pub fn get_config() -> Result<AppConfig, ConfigError> {
|
||||
|
||||
Reference in New Issue
Block a user