use std::path::Path;
use crate::Result;
use crate::repo::NaviWorkspace;
use crate::types::WorkspaceName;
pub fn run_remove(path: &Path, workspace: &str) -> Result<()> {
let workspace = WorkspaceName::new(workspace.to_owned())?;
let repo = NaviWorkspace::open(path)?;
let removed = repo.forget_workspace(&workspace)?;
println!("forgot workspace '{removed}'");
Ok(())
}