pub(crate) fn local_workspace( command: &Option<Command>, current_dir: impl FnOnce() -> Result<PathBuf>, ) -> Result<Option<PathBuf>>