intial commit

This commit is contained in:
2026-02-25 22:53:25 +01:00
commit 054c3ff1f8
12 changed files with 1164 additions and 0 deletions

29
src/main.rs Normal file
View File

@@ -0,0 +1,29 @@
#![feature(seek_stream_len)]
use std::fs::File;
use clap::Parser;
use crate::ext::FileExt;
pub mod args;
pub mod auth;
pub mod conf;
pub mod ext;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let args = args::Args::parse();
let conf = if let Some(conf) = File::try_open(&args.conf) {
conf::Config::from_toml_file(&mut conf?)?
} else {
conf::Config::default()
};
println!("{conf:#?}");
let res = auth::authenticate(&args, "javalsai", "test").await;
println!("{res:?}");
Ok(())
}