Files
bft-crdt-experiment/side-node/src/main.rs

20 lines
390 B
Rust
Raw Normal View History

use cli::{parse_args, Commands};
2024-05-29 12:44:52 +01:00
2024-05-29 13:17:16 +01:00
pub(crate) mod cli;
pub(crate) mod websocket;
2024-05-29 13:17:16 +01:00
2024-05-29 12:44:52 +01:00
#[tokio::main]
async fn main() {
let args = parse_args();
2024-05-29 12:44:52 +01:00
match &args.command {
Some(Commands::Init {}) => {
println!("Initializing Side Node")
}
Some(Commands::Run {}) => {
websocket::start().await.unwrap();
}
None => todo!(),
2024-05-29 12:44:52 +01:00
}
2024-05-29 08:32:40 +01:00
}