pub fn write_profile_tenant_id( path: &Path, profile: &str, tenant_id: &str, ) -> Result<()>
Update a profile’s tenant_id in the file and persist atomically.