now just using ./ isntead of the project cwd works as intended

This commit is contained in:
2023-01-21 18:05:23 +01:00
parent 5a656bdfcb
commit 42bc620506
2 changed files with 8 additions and 8 deletions

BIN
docki

Binary file not shown.

View File

@@ -53,15 +53,15 @@ impl Build {
impl Command for Build { impl Command for Build {
fn execute(&self, _args: &HashMap<String, String>) -> Result<(), String> { fn execute(&self, _args: &HashMap<String, String>) -> Result<(), String> {
let Ok(project_cwd_object) = env::current_dir() else { // let Ok(project_cwd_object) = env::current_dir() else {
return Err("current dirctory does not seem to exist".to_string()) // return Err("current dirctory does not seem to exist".to_string())
}; // };
//
// let Some(project_cwd) = project_cwd_object.to_str() else {
// return Err("invalid path".to_string());
// };
let Some(project_cwd) = project_cwd_object.to_str() else { let path = format!("./docs/");
return Err("invalid path".to_string());
};
let path = format!("{project_cwd}/docs/");
let mut error_count = 0; let mut error_count = 0;
if !self.docs_directory_exists(&path) { if !self.docs_directory_exists(&path) {