pub fn set_registry(url_or_keyword: &str) -> Result<()>
Set the default registry URL or use a pre-defined keyword.
Returns an error if the configuration cannot be updated.