Event logging
This commit is contained in:
parent
e815e5b439
commit
239484c3bc
5 changed files with 187 additions and 17 deletions
|
@ -2,6 +2,7 @@ use config::Config;
|
|||
use std::path::PathBuf;
|
||||
|
||||
pub mod config;
|
||||
pub mod log;
|
||||
|
||||
pub fn load_config() -> Config {
|
||||
if let Ok(path_str) = std::env::var("XDG_CONFIG_HOME") {
|
||||
|
@ -10,5 +11,5 @@ pub fn load_config() -> Config {
|
|||
path.push("config.toml");
|
||||
return Config::load(path);
|
||||
}
|
||||
Config::new()
|
||||
Config::new(PathBuf::from("./config.toml"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue