fn handle_set(type_: RegistryType, path: Option<String>) -> Result<()>