14 lines
220 B
Rust
14 lines
220 B
Rust
use inventur_db::*;
|
|
use std::env::args;
|
|
|
|
fn main() {
|
|
let uid = args()
|
|
.nth(1)
|
|
.expect("Missing argument.")
|
|
.parse::<i32>()
|
|
.expect("");
|
|
|
|
let conn = &mut establish_connection();
|
|
delete_user(conn, uid);
|
|
}
|