(os: &Os, scope: Option<Scope>)
| 479 | } |
| 480 | |
| 481 | fn resolve_scope_profile(os: &Os, scope: Option<Scope>) -> Result<PathBuf> { |
| 482 | Ok(match scope { |
| 483 | Some(Scope::Global) => global_mcp_config_path(os)?, |
| 484 | _ => workspace_mcp_config_path(os)?, |
| 485 | }) |
| 486 | } |
| 487 | |
| 488 | fn expand_path(os: &Os, p: &str) -> Result<PathBuf> { |
| 489 | let p = shellexpand::tilde(p); |