pub fn registry_logout( gctx: &GlobalContext, reg_or_index: Option<RegistryOrIndex> ) -> CargoResult<()>