Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    target: &Utf8Path,
    forge_flag: Option<&str>,
    repo_flag: Option<&str>,
) -> Result<Resolved, RkError>
Expand description

Resolve forge and repository in one pass: the flags override, the origin remote answers otherwise.

An unrecognized host refuses rather than defaulting — landing one forge’s files into the other forge’s project is a half-configured repository that looks done.

§Errors

Returns RkError::Usage for an unknown --forge value, and a refusal naming the override when no forge resolves.