pub fn add_cache_mirror(url: &str) -> Result<(), Error>
Adds a cache mirror URL to the user-specific configuration.
Returns an error if the mirror already exists or the configuration cannot be written.