MCPcopy
hub / github.com/deadc0de6/dotdrop / del_dotfile

Method del_dotfile

dotdrop/cfg_yaml.py:476–488  ·  view source on GitHub ↗

remove this dotfile from config

(self, key)

Source from the content-addressed store, hash-verified

474 return True
475
476 def del_dotfile(self, key):
477 """remove this dotfile from config"""
478 if key not in self._yaml_dict[self.key_dotfiles]:
479 self._log.err(f'key not in dotfiles: {key}')
480 return False
481 if self._debug:
482 self._dbg(f'remove dotfile: {key}')
483 del self._yaml_dict[self.key_dotfiles][key]
484 if self._debug:
485 dfs = self._yaml_dict[self.key_dotfiles]
486 self._dbg(f'new dotfiles: {dfs}')
487 self._dirty = True
488 return True
489
490 def del_dotfile_from_profile(self, df_key, pro_key):
491 """remove this dotfile from that profile"""

Callers 1

cmd_removeFunction · 0.45

Calls 2

_dbgMethod · 0.95
errMethod · 0.80

Tested by

no test coverage detected