added serial-out support to emulator + serial lib & command line mode for dsa emulator
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use dsa_rs::emulator::{config::Config, misc::rpc::get_rpc_client_or_none};
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
if env::args().any(|arg| arg == "--cli") {
|
||||
dsa_rs::emulator::cli::run_cli()?;
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
// Initialize channels and read in configuration.
|
||||
let (cmd_sender, cmd_receiver) = std::sync::mpsc::channel();
|
||||
let (state_sender, state_reciever) = std::sync::mpsc::channel();
|
||||
|
||||
Reference in New Issue
Block a user