MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / resolve_cli_project_root

Function resolve_cli_project_root

src/main.rs:375–384  ·  view source on GitHub ↗
(
    path: Option<String>,
    project_id: Option<String>,
    project_path: Option<String>,
)

Source from the content-addressed store, hash-verified

373}
374
375pub(crate) async fn resolve_cli_project_root(
376 path: Option<String>,
377 project_id: Option<String>,
378 project_path: Option<String>,
379) -> tracedecay::errors::Result<PathBuf> {
380 if let Some(root) = resolve_registered_project_root(project_id, project_path).await? {
381 return Ok(root);
382 }
383 Ok(tracedecay::config::resolve_path_with_discovery(path))
384}
385
386pub(crate) fn parse_lcm_scope_arg(
387 value: &str,

Callers 8

dispatch_commandFunction · 0.85
handle_sessions_actionFunction · 0.85
run_git_backfillFunction · 0.85
handle_status_commandFunction · 0.85

Calls 2

Tested by

no test coverage detected