extern crate codewars_api;
extern crate tokio;
use codewars_api::rest_api::client::RestCodewarsClient;
#[tokio::main]
async fn main() {
let client = RestCodewarsClient::new();
let mut username = String::new();
std::io::stdin().read_line(&mut username).unwrap();
println!("Skills of user:");
client
.get_user(&username.trim())
.await
.unwrap()
.skills
.iter()
.for_each(|s| println!("- {}", s));
}