From 52b40ab582e66e523b02f9977e752698a2ea52b3 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sat, 27 Mar 2021 08:39:26 -0400 Subject: [PATCH] load manifest and generate code --- src/main.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0a52188..96a7f54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,19 @@ fn main() { let path = Path::new("test_maFiles/manifest.json"); let manifest = accountmanager::Manifest::load(path); - 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) + } + } }