test: config search path (using docker)
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user