added lib to export structs + func to init listener in noxis-rs
parent
b6ecb10a77
commit
6469130662
|
|
@ -0,0 +1,3 @@
|
|||
mod cli;
|
||||
|
||||
pub use cli::*;
|
||||
|
|
@ -3,14 +3,16 @@ mod utils;
|
|||
|
||||
use clap::Parser;
|
||||
use log::{error, info};
|
||||
use options::{config::*, preboot};
|
||||
use options::config::*;
|
||||
use options::logger::setup_logger;
|
||||
use options::signals::set_valid_destructor;
|
||||
use options::structs::Processes;
|
||||
use options::cli_pipeline::init_cli_pipeline;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tokio::sync::mpsc;
|
||||
use utils::*;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use options::preboot::PrebootParams;
|
||||
|
||||
|
|
@ -87,6 +89,11 @@ async fn main() {
|
|||
let _ = subscribe_config_stream(Arc::new(processes)).await;
|
||||
}));
|
||||
|
||||
// cli pipeline
|
||||
handler.push(tokio::spawn(async move {
|
||||
let _ = init_cli_pipeline().await;
|
||||
}));
|
||||
|
||||
for i in handler {
|
||||
let _ = i.await;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue