Smoothing out the cli output a bit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use cli::{parse_args, Commands};
|
||||
|
||||
pub(crate) mod cli;
|
||||
pub(crate) mod init;
|
||||
pub(crate) mod websocket;
|
||||
|
||||
#[tokio::main]
|
||||
@@ -9,11 +10,11 @@ async fn main() {
|
||||
|
||||
match &args.command {
|
||||
Some(Commands::Init {}) => {
|
||||
println!("Initializing Side Node")
|
||||
init::init();
|
||||
}
|
||||
Some(Commands::Run {}) => {
|
||||
websocket::start().await.unwrap();
|
||||
}
|
||||
None => todo!(),
|
||||
None => println!("No command provided. Exiting. See --help for more information."),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user