Skip to main content

resolve_url

Function resolve_url 

Source
pub fn resolve_url(local_config: &Config) -> Option<String>
Expand description

Fetch remote config and merge it into the provided local config.

Returns the merged config. If fetch fails for any reason, returns the original config unchanged (with a warning printed to stderr).

§Arguments

Resolved remote-config URL from env var or [remote_config] config block. Returns None if neither source provides a non-empty URL.

Used by devboy doctor and devboy context list to detect the “thin client / proxy” mode regardless of whether the URL came from the env var (which fetch_and_merge honours but doesn’t write into Config) or the on-disk config file.