1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 02:10:04 +08:00
This commit is contained in:
2020-04-12 14:37:47 +08:00
parent ae565909df
commit 0667b3d481
5 changed files with 22 additions and 38 deletions

View File

@@ -76,11 +76,11 @@ pub fn create_build_json(args: &[String]) {
format!("me.hatter:commons:{}", ver).as_str()
]
},
};
}
match fs::write(BUILD_JSON, json::stringify_pretty(build_json_object, 4)) {
Ok(_) => print_message(MessageType::OK, &format!("Write file success: {}", BUILD_JSON)),
Err(err) => print_message(MessageType::ERROR, &format!("Write file failed: {}, error message: {}", BUILD_JSON, err)),
};
}
}
pub fn find_build_json_in_current() -> Option<String> {