(args: &[String], cwd: &Path)
| 157 | Ok(trimmed.to_string()) |
| 158 | } |
| 159 | |
| 160 | pub(crate) fn scripts_command(args: &[String], cwd: &Path) -> Result<(), String> { |
| 161 | let project_dir = parse_flag_value(args, "--path") |
| 162 | .map(|p| resolve_local_path(&p, cwd)) |
| 163 | .unwrap_or_else(|| cwd.to_path_buf()); |
| 164 | let project_dir = project_dir.canonicalize().unwrap_or(project_dir); |
| 165 | update_workspace_vscode_linked_projects(&workspace_root(), &project_dir)?; |
| 166 | update_project_vscode_linked_projects(&project_dir)?; |
| 167 | log_step("Building Scripts"); |
| 168 | compile_scripts_with_profile(&project_dir, ScriptsBuildProfile::Debug) |
| 169 | .map(|_| { |
| 170 | log_done("Scripts Built"); |
| 171 | }) |
| 172 | .map_err(|err| { |
| 173 | format!( |
| 174 | "scripts pipeline failed for {}: {err}", |
| 175 | project_dir.display() |
| 176 | ) |
| 177 | }) |
| 178 | } |
| 179 | |
| 180 | pub(crate) fn dlc_command(args: &[String], cwd: &Path) -> Result<(), String> { |
no test coverage detected