MCPcopy Create free account
hub / github.com/PerroEngine/Perro / scripts_command

Function scripts_command

perro_source/devtools/perro_cli/src/project.rs:159–177  ·  view source on GitHub ↗
(args: &[String], cwd: &Path)

Source from the content-addressed store, hash-verified

157 Ok(trimmed.to_string())
158}
159
160pub(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
180pub(crate) fn dlc_command(args: &[String], cwd: &Path) -> Result<(), String> {

Callers 2

mainFunction · 0.85
doctor_commandFunction · 0.85

Calls 8

log_stepFunction · 0.85
log_doneFunction · 0.85
parse_flag_valueFunction · 0.70
resolve_local_pathFunction · 0.70
workspace_rootFunction · 0.70

Tested by

no test coverage detected