Create labadoor binary crate calling each librarie's main()

This commit is contained in:
George Kaklamanos 2023-06-30 17:12:24 +03:00
parent 3abf7106fc
commit ed628b2ee3
6 changed files with 48 additions and 4 deletions

View file

@ -62,7 +62,7 @@ fn auth_user(username: String, resource: String) -> Result<(), ()> {
return ret;
}
fn main() {
pub fn main() {
let args: Vec<String> = std::env::args().collect();
let method = String::from(&args[1]);
let identifier = String::from(&args[2]);