Added owning games and not willing to travel with them.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user