feat: add logger and config structure
This commit is contained in:
1 parent
15abd84501
commit
d9c827b3ef
11 files changed
+906
-19
No files matched your search
@@ -0,0 +1,28 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct Variables {
|
||||
pub debug: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct Paths {
|
||||
pub log_dir: String,
|
||||
pub config_dir: String,
|
||||
pub save_dir: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct Colors {
|
||||
pub background: String,
|
||||
pub foreground: String,
|
||||
pub highlight: String,
|
||||
pub focused: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct Config {
|
||||
pub variables: Variables,
|
||||
pub paths: Paths,
|
||||
pub colors: Colors,
|
||||
}
|
||||
Reference in new issue
Block a user