diff options
author | Canop <cano.petrole@gmail.com> | 2022-07-04 20:49:55 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-07-04 20:49:55 +0200 |
commit | 5666e6b9fb827c07c6c21fbe0fc60f538e1aaf60 (patch) | |
tree | c5e271b91edcde4da7dcfd8f0d9f0899ca2a16bd /src/conf/mod.rs | |
parent | c688a083b46628f1a9c7a23d1765016177514be4 (diff) |
default conf is now a directory
and not just a file, thanks to imports. And it contains
skin files.
Fix #431
Fix #340
Diffstat (limited to 'src/conf/mod.rs')
-rw-r--r-- | src/conf/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/conf/mod.rs b/src/conf/mod.rs index 8a9f1f6..1b8db40 100644 --- a/src/conf/mod.rs +++ b/src/conf/mod.rs @@ -4,12 +4,14 @@ use { }; mod conf; +mod default; mod format; mod import; mod verb_conf; pub use { conf::Conf, + default::write_default_conf_in, format::*, import::*, once_cell::sync::Lazy, @@ -17,12 +19,6 @@ pub use { }; -/// the content of the conf.hjson file broot creates when there's none. -/// -/// It features some default configuration and many sections the user -/// can uncomment then edit. -pub const DEFAULT_CONF_FILE: &str = include_str!("../../resources/default-conf.hjson"); - /// return the instance of ProjectDirs holding broot's specific paths pub fn app_dirs() -> directories::ProjectDirs { directories::ProjectDirs::from("org", "dystroy", "broot") |