16 lines
334 B
Rust
16 lines
334 B
Rust
|
|
use std::path::PathBuf;
|
||
|
|
|
||
|
|
use crate::commands::McpArgs;
|
||
|
|
|
||
|
|
pub fn execute(args: &McpArgs) {
|
||
|
|
let project_dir = args
|
||
|
|
.path
|
||
|
|
.as_deref()
|
||
|
|
.map(PathBuf::from)
|
||
|
|
.unwrap_or_else(|| PathBuf::from("."));
|
||
|
|
|
||
|
|
if let Err(err) = crate::mcp::run_blocking(project_dir) {
|
||
|
|
eprintln!("Error: {}", err);
|
||
|
|
}
|
||
|
|
}
|