Skip to main content

resolve_registry_spec

Function resolve_registry_spec 

Source
pub fn resolve_registry_spec(
    cli_url: Option<&str>,
    cli_ref: Option<&str>,
    cli_section: Option<&str>,
    base_config: Option<&BaseConfig>,
) -> Option<RegistrySpec>
Expand description

Determine which registry to use, applying CLI > ENV > config precedence.

Returns None when no registry is configured from any source.