30 lines
792 B
Rust
30 lines
792 B
Rust
use color_eyre::eyre::{self};
|
|
use vapore::client::SteamClient;
|
|
|
|
#[tokio::main]
|
|
pub async fn main() -> eyre::Result<()> {
|
|
env_logger::init();
|
|
color_eyre::install()?;
|
|
|
|
let servers = vapore::selection::bootstrap_find_servers().await?;
|
|
log::debug!("Found servers: {:?}", servers);
|
|
|
|
let client = SteamClient::connect(&servers).await?;
|
|
|
|
let username = dialoguer::Input::<String>::new()
|
|
.with_prompt("Username")
|
|
.interact_text()?;
|
|
let password = dialoguer::Password::new()
|
|
.with_prompt("Password")
|
|
.interact()?;
|
|
let guard_code = dialoguer::Input::<String>::new()
|
|
.with_prompt("Steam Guard Code")
|
|
.interact_text()?;
|
|
|
|
client
|
|
.auth_password(username, password, Some(guard_code))
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|