pub fn resolve_path(path: &str) -> Result<PathBuf, String>
Expand description
Resolves a path that might contain special prefixes to an actual filesystem path.
Currently supported formats:
- “go:github.com/user/repo” - Resolves to the Go module’s filesystem path
- “js:express” - Resolves to the JavaScript/Node.js package’s filesystem path
- “rust:serde” - Resolves to the Rust crate’s filesystem path
- “/dep/go/fmt” - Alternative notation for “go:fmt”
- “/dep/js/express” - Alternative notation for “js:express”
- “/dep/rust/serde” - Alternative notation for “rust:serde”
§Arguments
path
- The path to resolve, which might contain special prefixes
§Returns
Ok(PathBuf)
- The resolved filesystem pathErr(String)
- An error message if resolution fails