use talos_api_rs::{TalosClient, TalosClientConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = TalosClientConfig::new("http://127.0.0.1:50000");
println!("Connecting to {}...", config.endpoint);
match TalosClient::new(config).await {
Ok(_client) => {
println!("Connected! (Version call not fully implemented in example)");
}
Err(e) => {
eprintln!("Failed to connect: {}", e);
}
}
Ok(())
}