Skip to main content

resolve_path_to_binding

Function resolve_path_to_binding 

Source
pub async fn resolve_path_to_binding(
    path: &Path,
    org_slug: &str,
    client: &ApiClient,
) -> Result<Option<RepoBinding>, Box<dyn Error>>
Expand description

Resolve a filesystem path to a registered-repo binding: read its origin remote URL and ask the server. Ok(None) when the path has no remote or the server has no matching repo (pre-registered-only).