feat(cli): implements subcommands

This commit is contained in:
Alexander Navarro 2024-07-17 14:37:54 -04:00
parent 7382b06bdf
commit 3fefadd5b5
5 changed files with 37 additions and 50 deletions

View file

@ -86,17 +86,3 @@ impl JunoServices for GRPCServer {
Ok(Response::new(StatusResponse {}))
}
}
#[async_trait]
impl super::Connection for GRPCServer {
async fn connect(&self) -> Result<(), Box<dyn Error>> {
println!("Starting server on: \"{}\"", CONFIG.address.to_string());
Server::builder()
.add_service(JunoServicesServer::new(GRPCServer::default()))
.serve(CONFIG.address)
.await?;
Ok(())
}
}