(os: &Os, p: &str)
| 486 | } |
| 487 | |
| 488 | fn expand_path(os: &Os, p: &str) -> Result<PathBuf> { |
| 489 | let p = shellexpand::tilde(p); |
| 490 | let mut path = PathBuf::from(p.as_ref() as &str); |
| 491 | if path.is_relative() { |
| 492 | path = os.env.current_dir()?.join(path); |
| 493 | } |
| 494 | Ok(path) |
| 495 | } |
| 496 | |
| 497 | async fn ensure_config_file(os: &Os, path: &PathBuf, output: &mut impl Write) -> Result<McpServerConfig> { |
| 498 | if !os.fs.exists(path) { |
no test coverage detected