wip: config find

This commit is contained in:
2023-11-22 23:45:00 +11:00
parent 3cf595f08e
commit e1e0caf6c3
6 changed files with 104 additions and 3 deletions

View File

@@ -1 +1,10 @@
pub mod daemon;
mod daemon;
mod config;
pub(crate) mod error;
use std::error as std_err;
pub async fn start() -> Result<(), Box<dyn std_err::Error>> {
let _config = config::Config::find(vec![String::from("/etc/wingmate")])?;
daemon::start().await
}