load manifest and generate code

This commit is contained in:
Carson McManus 2021-03-27 08:39:26 -04:00
parent e9d9b61024
commit 52b40ab582

View file

@ -31,6 +31,19 @@ fn main() {
let path = Path::new("test_maFiles/manifest.json"); let path = Path::new("test_maFiles/manifest.json");
let manifest = accountmanager::Manifest::load(path); let manifest = accountmanager::Manifest::load(path);
println!("{:?}", manifest); println!("{:?}", manifest);
match manifest {
Ok(mut m) => {
m.load_accounts();
for account in m.accounts {
println!("{:?}", account);
let server_time = steamapi::get_server_time();
let code = account.generate_code(server_time);
println!("{}", code);
}
}
Err(e) => {
println!("{}", e)
}
}
} }