Removes the TUI in favor of event based logging #15

Merged
Neshura merged 17 commits from remove_tui into main 2023-12-30 00:28:47 +00:00
Showing only changes of commit a66180d817 - Show all commits

View file

@ -13,7 +13,7 @@ pub(crate) struct Config {
} }
impl Config { impl Config {
pub(crate) fn load() -> Result<Self, String> { pub(crate) fn load() -> Self {
let cfg: Self = match confy::load(env!("CARGO_PKG_NAME"), "config") { let cfg: Self = match confy::load(env!("CARGO_PKG_NAME"), "config") {
Ok(data) => data, Ok(data) => data,
Err(e) => panic!("config.toml not found: {e}"), Err(e) => panic!("config.toml not found: {e}"),
@ -36,7 +36,7 @@ impl Config {
panic!("'Description' type Post Body only supported for Volumes!") panic!("'Description' type Post Body only supported for Volumes!")
} }
}); });
Ok(cfg) cfg
} }
} }