pub fn write_profile( path: &Path, profile: &str, url: &str, token: &str, ) -> Result<(), HaError>
Write or update a single profile in the config file.