2023-11-22 12:45:00 +00:00
|
|
|
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")])?;
|
2023-11-22 22:42:17 +00:00
|
|
|
dbg!(_config);
|
2023-11-22 12:45:00 +00:00
|
|
|
daemon::start().await
|
|
|
|
}
|