test: config search path (using docker)

This commit is contained in:
2023-11-23 09:42:17 +11:00
parent 1b5c48071c
commit 6e85e12993
8 changed files with 23 additions and 1 deletions

View File

@@ -6,5 +6,6 @@ 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")])?;
dbg!(_config);
daemon::start().await
}

View File

@@ -4,11 +4,13 @@ use std::error as std_error;
use crate::init::error as wingmate_error;
use nix::unistd::{access, AccessFlags};
#[derive(Debug)]
pub enum Command {
ShellPrefixed(String),
Direct(String)
}
#[derive(Debug)]
pub struct Config {
pub services: Vec<Command>,
}