Added owning games and not willing to travel with them.

This commit is contained in:
2025-12-30 21:18:16 +01:00
parent ff88029a4b
commit 0c256846f6
45 changed files with 595 additions and 92 deletions

View File

@@ -3,6 +3,7 @@ use std::{
io::Write,
process::Command,
};
use std::fs::create_dir;
fn main() {
println!("cargo::rerun-if-changed=gamenight-api.yaml");
@@ -11,6 +12,8 @@ fn main() {
remove_dir_all("src/models").unwrap();
}
create_dir("src/models/").unwrap();
let _ = Command::new("openapi-generator")
.args([
"generate",
@@ -24,7 +27,7 @@ fn main() {
.output()
.expect("Failed to generate models sources for the gamenight API");
let mut file = File::create("src/models/mod.rs").unwrap();
let mut file = File::create("./src/models/mod.rs").unwrap();
let paths = read_dir("./src/models").unwrap();
for path in paths {
let path = path.unwrap();