added async stuff not pushed in the last commit

This commit is contained in:
2023-03-12 21:17:51 +01:00
parent cc77e4ef9c
commit f0007394c3
3 changed files with 6 additions and 6 deletions

View File

@@ -25,14 +25,14 @@ impl BuildExecution {
};
}
pub fn execute(&mut self) -> Result<(), String> {
pub async fn execute(&mut self) -> Result<(), String> {
let path = "./docs/".to_string();
if !Self::directory_exists(&path) {
return Err("docs directory does not exist it. Create it or use the template".to_string())
}
if let Err(error) = Self::prepare() {
if let Err(error) = Self::prepare().await {
return Err(error);
}
@@ -100,7 +100,7 @@ impl BuildExecution {
self.build_file_and_status(&self.doc_builder, in_path, out_path, "doc");
}
fn prepare() -> Result<(), String> {
async fn prepare() -> Result<(), String> {
let reveal_version = "3.9.2";
let target = format!("https://github.com/hakimel/reveal.js/archive/{reveal_version}.zip");